summaryrefslogtreecommitdiffstats
path: root/sys/dev/sge
diff options
context:
space:
mode:
authorglebius <glebius@FreeBSD.org>2014-08-30 19:55:54 +0000
committerglebius <glebius@FreeBSD.org>2014-08-30 19:55:54 +0000
commit9b93b159b3ea9f280f03355c9555fe9aae9622fb (patch)
tree10a1db7d40e40b24cd3293b6609aa460c86abb49 /sys/dev/sge
parent33a1752aec9dcba5feb0388b71cccd219230df03 (diff)
downloadFreeBSD-src-9b93b159b3ea9f280f03355c9555fe9aae9622fb.zip
FreeBSD-src-9b93b159b3ea9f280f03355c9555fe9aae9622fb.tar.gz
Use define from if_var.h to access a field inside struct if_data,
that resides in struct ifnet. Sponsored by: Nginx, Inc.
Diffstat (limited to 'sys/dev/sge')
-rw-r--r--sys/dev/sge/if_sge.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/dev/sge/if_sge.c b/sys/dev/sge/if_sge.c
index 0774406..32773fd 100644
--- a/sys/dev/sge/if_sge.c
+++ b/sys/dev/sge/if_sge.c
@@ -641,7 +641,7 @@ sge_attach(device_t dev)
IFCAP_VLAN_HWTSO | IFCAP_VLAN_MTU;
ifp->if_capenable = ifp->if_capabilities;
/* 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);
/* Hook interrupt last to avoid having to lock softc */
error = bus_setup_intr(dev, sc->sge_irq, INTR_TYPE_NET | INTR_MPSAFE,
OpenPOWER on IntegriCloud