X-Git-Url: http://pileus.org/git/?a=blobdiff_plain;f=include%2Fuapi%2Flinux%2Fvirtio_net.h;h=172a7f00780cc41398e54bd1e5c4314c6b1c9627;hb=3942c07ccf98e66b8893f396dca98f5b076f905f;hp=c520203fac2f4b466f062e49f743e45391ac2f93;hpb=2436e8aa8abef2536dc3bfb554f8dcb3a8b07560;p=~andy%2Flinux diff --git a/include/uapi/linux/virtio_net.h b/include/uapi/linux/virtio_net.h index c520203fac2..172a7f00780 100644 --- a/include/uapi/linux/virtio_net.h +++ b/include/uapi/linux/virtio_net.h @@ -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