L4Re Operating System Framework
Interface and Usage Documentation
Loading...
Searching...
No Matches
virtio_net.h
1/* SPDX-License-Identifier: MIT */
2/*
3 * Copyright (C) 2022 Kernkonzept GmbH.
4 * Author(s): Stephan Gerhold <stephan.gerhold@kernkonzept.com>
5 */
6
7#pragma once
8
15#include <l4/sys/types.h>
16
21{
22 l4_uint8_t flags;
23 l4_uint8_t gso_type;
24 l4_uint16_t hdr_len;
25 l4_uint16_t gso_size;
26 l4_uint16_t csum_start;
27 l4_uint16_t csum_offset;
28 l4_uint16_t num_buffers;
30
35{
36 l4_uint8_t mac[6];
37 l4_uint16_t status;
38 l4_uint16_t max_virtqueue_pairs;
39 l4_uint16_t mtu;
40 l4_uint32_t speed;
41 l4_uint8_t duplex;
43
46{
47 L4VIRTIO_NET_F_CSUM = 0,
48 L4VIRTIO_NET_F_GUEST_CSUM = 1,
49 L4VIRTIO_NET_F_MTU = 3,
50 L4VIRTIO_NET_F_MAC = 5,
51 L4VIRTIO_NET_F_GUEST_TSO4 = 7,
52 L4VIRTIO_NET_F_GUEST_TSO6 = 8,
53 L4VIRTIO_NET_F_GUEST_ECN = 9,
54 L4VIRTIO_NET_F_GUEST_UFO = 10,
55 L4VIRTIO_NET_F_HOST_TSO4 = 11,
56 L4VIRTIO_NET_F_HOST_TSO6 = 12,
57 L4VIRTIO_NET_F_HOST_ECN = 13,
58 L4VIRTIO_NET_F_HOST_UFO = 14,
59 L4VIRTIO_NET_F_MRG_RXBUF = 15,
60 L4VIRTIO_NET_F_STATUS = 16,
61 L4VIRTIO_NET_F_CTRL_VQ = 17,
62 L4VIRTIO_NET_F_CTRL_RX = 18,
63 L4VIRTIO_NET_F_CTRL_VLAN = 19,
64 L4VIRTIO_NET_F_GUEST_ANNOUNCE = 21,
65 L4VIRTIO_NET_F_MQ = 22,
66 L4VIRTIO_NET_F_CTRL_MAC_ADDR = 23,
67};
68
unsigned char l4_uint8_t
Unsigned 8bit value.
Definition l4int.h:36
unsigned int l4_uint32_t
Unsigned 32bit value.
Definition l4int.h:40
unsigned short int l4_uint16_t
Unsigned 16bit value.
Definition l4int.h:38
L4virtio_net_feature_bits
Network device feature bits.
Definition virtio_net.h:46
Common L4 ABI Data Types.
Device configuration for network devices.
Definition virtio_net.h:35
Header structure of a request for a network device.
Definition virtio_net.h:21