]> Pileus Git - ~andy/linux/blobdiff - include/uapi/linux/virtio_net.h
fs: bump inode and dentry counters to long
[~andy/linux] / include / uapi / linux / virtio_net.h
index c520203fac2f4b466f062e49f743e45391ac2f93..172a7f00780cc41398e54bd1e5c4314c6b1c9627 100644 (file)
@@ -60,7 +60,7 @@
 
 struct virtio_net_config {
        /* The config defining mac address (if VIRTIO_NET_F_MAC) */
-       __u8 mac[6];
+       __u8 mac[ETH_ALEN];
        /* See VIRTIO_NET_F_STATUS and VIRTIO_NET_S_* above */
        __u16 status;
        /* Maximum number of each of transmit and receive queues;
@@ -70,7 +70,9 @@ struct virtio_net_config {
        __u16 max_virtqueue_pairs;
 } __attribute__((packed));
 
-/* This is the first element of the scatter-gather list.  If you don't
+/* This header comes first in the scatter-gather list.
+ * If VIRTIO_F_ANY_LAYOUT is not negotiated, it must
+ * be the first element of the scatter-gather list.  If you don't
  * specify GSO or CSUM features, you can simply ignore the header. */
 struct virtio_net_hdr {
 #define VIRTIO_NET_HDR_F_NEEDS_CSUM    1       // Use csum_start, csum_offset