History

virtio_net: correct tags for config space fields

Tag config space fields as having virtio endian-ness.

Michael S. Tsirkin committed 6 years ago

Commit 577e6771 parent 79268951 file · +4 −4Browse files

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

Unified · Split

include/uapi/linux/virtio_net.h+4−4
@@ -87,19 +87,19 @@ struct virtio_net_config { · 86 unmodified lines
87 /* The config defining mac address (if VIRTIO_NET_F_MAC) */87 /* The config defining mac address (if VIRTIO_NET_F_MAC) */
88 __u8 mac[ETH_ALEN];88 __u8 mac[ETH_ALEN];
89 /* See VIRTIO_NET_F_STATUS and VIRTIO_NET_S_* above */89 /* See VIRTIO_NET_F_STATUS and VIRTIO_NET_S_* above */
90 __u16 status;90 __virtio16 status;
91 /* Maximum number of each of transmit and receive queues;91 /* Maximum number of each of transmit and receive queues;
92 * see VIRTIO_NET_F_MQ and VIRTIO_NET_CTRL_MQ.92 * see VIRTIO_NET_F_MQ and VIRTIO_NET_CTRL_MQ.
93 * Legal values are between 1 and 0x800093 * Legal values are between 1 and 0x8000
94 */94 */
95 __u16 max_virtqueue_pairs;95 __virtio16 max_virtqueue_pairs;
96 /* Default maximum transmit unit advice */96 /* Default maximum transmit unit advice */
97 __u16 mtu;97 __virtio16 mtu;
98 /*98 /*
99 * speed, in units of 1Mb. All values 0 to INT_MAX are legal.99 * speed, in units of 1Mb. All values 0 to INT_MAX are legal.
100 * Any other value stands for unknown.100 * Any other value stands for unknown.
101 */101 */
102 __u32 speed;102 __virtio32 speed;
103 /*103 /*
104 * 0x00 - half duplex104 * 0x00 - half duplex
105 * 0x01 - full duplex105 * 0x01 - full duplex

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