aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/netfpga10g
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/netfpga10g
parent04da7226c469a47bc86886be7751e31542e19095 (diff)
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/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 6a13b281f567..e8e877788687 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