summaryrefslogtreecommitdiffstats
path: root/sys/dev/netfpga10g
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/netfpga10g
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/netfpga10g')
-rw-r--r--sys/dev/netfpga10g/nf10bmac/if_nf10bmac.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/dev/netfpga10g/nf10bmac/if_nf10bmac.c b/sys/dev/netfpga10g/nf10bmac/if_nf10bmac.c
index 6a13b28..e8e8777 100644
--- a/sys/dev/netfpga10g/nf10bmac/if_nf10bmac.c
+++ b/sys/dev/netfpga10g/nf10bmac/if_nf10bmac.c
@@ -819,7 +819,7 @@ nf10bmac_attach(device_t dev)
ether_ifattach(ifp, sc->nf10bmac_eth_addr);
/* Tell the upper layer(s) about vlan mtu support. */
- ifp->if_data.ifi_hdrlen = sizeof(struct ether_vlan_header);
+ ifp->if_hdrlen = sizeof(struct ether_vlan_header);
ifp->if_capabilities |= IFCAP_VLAN_MTU;
ifp->if_capenable = ifp->if_capabilities;
#ifdef DEVICE_POLLING
OpenPOWER on IntegriCloud