aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/virtio
diff options
context:
space:
mode:
authorGleb Smirnoff <glebius@FreeBSD.org>2014-08-30 19:55:54 +0000
committerGleb Smirnoff <glebius@FreeBSD.org>2014-08-30 19:55:54 +0000
commit1bffa9511fe94125820858b0ead796db54ac019d (patch)
tree10a1db7d40e40b24cd3293b6609aa460c86abb49 /sys/dev/virtio
parent04da7226c469a47bc86886be7751e31542e19095 (diff)
downloadsrc-1bffa9511fe94125820858b0ead796db54ac019d.tar.gz
src-1bffa9511fe94125820858b0ead796db54ac019d.zip
Use define from if_var.h to access a field inside struct if_data,
that resides in struct ifnet. Sponsored by: Nginx, Inc.
Notes
Notes: svn path=/head/; revision=270856
Diffstat (limited to 'sys/dev/virtio')
-rw-r--r--sys/dev/virtio/network/if_vtnet.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/dev/virtio/network/if_vtnet.c b/sys/dev/virtio/network/if_vtnet.c
index 3e5b728a4e30..38de48e37bef 100644
--- a/sys/dev/virtio/network/if_vtnet.c
+++ b/sys/dev/virtio/network/if_vtnet.c
@@ -947,7 +947,7 @@ vtnet_setup_interface(struct vtnet_softc *sc)
ifp->if_capabilities |= IFCAP_LINKSTATE;
/* Tell the upper layer(s) we support long frames. */
- ifp->if_data.ifi_hdrlen = sizeof(struct ether_vlan_header);
+ ifp->if_hdrlen = sizeof(struct ether_vlan_header);
ifp->if_capabilities |= IFCAP_JUMBO_MTU | IFCAP_VLAN_MTU;
if (virtio_with_feature(dev, VIRTIO_NET_F_CSUM)) {