summaryrefslogtreecommitdiffstats
path: root/include/uapi/linux/virtio_net.h
diff options
context:
space:
mode:
authorJoe Perches2013-08-02 01:17:47 +0200
committerDavid S. Miller2013-08-02 21:33:54 +0200
commite216975ad97cfcfc436789aa66d59a0e93f337f7 (patch)
tree663a82d6e67757a80f51d4e9dda1c714bb92d6a6 /include/uapi/linux/virtio_net.h
parentMerge branch 'qlcnic' (diff)
downloadkernel-qcow2-linux-e216975ad97cfcfc436789aa66d59a0e93f337f7.tar.gz
kernel-qcow2-linux-e216975ad97cfcfc436789aa66d59a0e93f337f7.tar.xz
kernel-qcow2-linux-e216975ad97cfcfc436789aa66d59a0e93f337f7.zip
uapi: Convert some uses of 6 to ETH_ALEN
Use the #define where appropriate. Add #include <linux/if_ether.h> where appropriate too. Signed-off-by: Joe Perches <joe@perches.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/uapi/linux/virtio_net.h')
-rw-r--r--include/uapi/linux/virtio_net.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/uapi/linux/virtio_net.h b/include/uapi/linux/virtio_net.h
index 227d4ce84e79..172a7f00780c 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;