History

virtio_net: Update the feature bit to comply with spec

A draft version of the MTU Advice feature bit was specified as 25. This bit is not within the allowed range for network device feature bits, and should be changed to be feature bit 3 to fully comply with the spec. Fixes 14de9d114a82 ('virtio-net: Add initial MTU advice feature') Signed-off-by: Aaron Conole <aconole@redhat.com> Suggested-by: "Michael S. Tsirkin" <mst@redhat.com> Signed-off-by: David S. Miller <davem@davemloft.net>

Aaron Conole committed 10 years ago

Commit 7d84e371 parent e4348631 file · +1 −1Browse files

Showing the changes to include/uapi/linux (1 of 1 file). Show all

Unified · Split

include/uapi/linux/virtio_net.h+1−1
@@ -35,6 +35,7 @@ · 34 unmodified lines
3535 #define VIRTIO_NET_F_CSUM 0 /* Host handles pkts w/ partial csum */
3636 #define VIRTIO_NET_F_GUEST_CSUM 1 /* Guest handles pkts w/ partial csum */
3737 #define VIRTIO_NET_F_CTRL_GUEST_OFFLOADS 2 /* Dynamic offload configuration. */
38+#define VIRTIO_NET_F_MTU 3 /* Initial MTU advice */
3839 #define VIRTIO_NET_F_MAC 5 /* Host has given MAC address. */
3940 #define VIRTIO_NET_F_GUEST_TSO4 7 /* Guest can handle TSOv4 in. */
4041 #define VIRTIO_NET_F_GUEST_TSO6 8 /* Guest can handle TSOv6 in. */
@@ -55,7 +56,6 @@ · 14 unmodified lines
5556 #define VIRTIO_NET_F_MQ 22 /* Device supports Receive Flow
5657 * Steering */
5758 #define VIRTIO_NET_F_CTRL_MAC_ADDR 23 /* Set MAC address */
58−#define VIRTIO_NET_F_MTU 25 /* Initial MTU advice */
5959
6060 #ifndef VIRTIO_NET_NO_LEGACY
6161 #define VIRTIO_NET_F_GSO 6 /* Host handles pkts w/ any GSO type */

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t