diff options
author | Gleb Smirnoff <glebius@FreeBSD.org> | 2014-08-30 19:55:54 +0000 |
---|---|---|
committer | Gleb Smirnoff <glebius@FreeBSD.org> | 2014-08-30 19:55:54 +0000 |
commit | 1bffa9511fe94125820858b0ead796db54ac019d (patch) | |
tree | 10a1db7d40e40b24cd3293b6609aa460c86abb49 /sys/dev/virtio | |
parent | 04da7226c469a47bc86886be7751e31542e19095 (diff) | |
download | src-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.c | 2 |
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)) { |