diff options
Diffstat (limited to 'include/uapi/linux/virtio_net.h')
-rw-r--r-- | include/uapi/linux/virtio_net.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/include/uapi/linux/virtio_net.h b/include/uapi/linux/virtio_net.h index fc353b518288..5de6ed37695b 100644 --- a/include/uapi/linux/virtio_net.h +++ b/include/uapi/linux/virtio_net.h | |||
@@ -57,6 +57,8 @@ | |||
57 | * Steering */ | 57 | * Steering */ |
58 | #define VIRTIO_NET_F_CTRL_MAC_ADDR 23 /* Set MAC address */ | 58 | #define VIRTIO_NET_F_CTRL_MAC_ADDR 23 /* Set MAC address */ |
59 | 59 | ||
60 | #define VIRTIO_NET_F_SPEED_DUPLEX 63 /* Device set linkspeed and duplex */ | ||
61 | |||
60 | #ifndef VIRTIO_NET_NO_LEGACY | 62 | #ifndef VIRTIO_NET_NO_LEGACY |
61 | #define VIRTIO_NET_F_GSO 6 /* Host handles pkts w/ any GSO type */ | 63 | #define VIRTIO_NET_F_GSO 6 /* Host handles pkts w/ any GSO type */ |
62 | #endif /* VIRTIO_NET_NO_LEGACY */ | 64 | #endif /* VIRTIO_NET_NO_LEGACY */ |
@@ -76,6 +78,17 @@ struct virtio_net_config { | |||
76 | __u16 max_virtqueue_pairs; | 78 | __u16 max_virtqueue_pairs; |
77 | /* Default maximum transmit unit advice */ | 79 | /* Default maximum transmit unit advice */ |
78 | __u16 mtu; | 80 | __u16 mtu; |
81 | /* | ||
82 | * speed, in units of 1Mb. All values 0 to INT_MAX are legal. | ||
83 | * Any other value stands for unknown. | ||
84 | */ | ||
85 | __u32 speed; | ||
86 | /* | ||
87 | * 0x00 - half duplex | ||
88 | * 0x01 - full duplex | ||
89 | * Any other value stands for unknown. | ||
90 | */ | ||
91 | __u8 duplex; | ||
79 | } __attribute__((packed)); | 92 | } __attribute__((packed)); |
80 | 93 | ||
81 | /* | 94 | /* |