aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/ffec/if_ffec.c
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/ffec/if_ffec.c
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/ffec/if_ffec.c')
-rw-r--r--sys/dev/ffec/if_ffec.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/dev/ffec/if_ffec.c b/sys/dev/ffec/if_ffec.c
index 8a4984e01c15..ce8b43537b13 100644
--- a/sys/dev/ffec/if_ffec.c
+++ b/sys/dev/ffec/if_ffec.c
@@ -1676,7 +1676,7 @@ ffec_attach(device_t dev)
IFQ_SET_MAXLEN(&ifp->if_snd, TX_DESC_COUNT - 1);
ifp->if_snd.ifq_drv_maxlen = TX_DESC_COUNT - 1;
IFQ_SET_READY(&ifp->if_snd);
- ifp->if_data.ifi_hdrlen = sizeof(struct ether_vlan_header);
+ ifp->if_hdrlen = sizeof(struct ether_vlan_header);
#if 0 /* XXX The hardware keeps stats we could use for these. */
ifp->if_linkmib = &sc->mibdata;