summaryrefslogtreecommitdiffstats
path: root/sys/net/if_ethersubr.c
diff options
context:
space:
mode:
authormarkm <markm@FreeBSD.org>2013-10-09 21:03:34 +0000
committermarkm <markm@FreeBSD.org>2013-10-09 21:03:34 +0000
commita9d73bef6411194603d9e7e775055b1eecf81f72 (patch)
tree3f1ae2032445c25f67a5b6645cd165067d0b8a93 /sys/net/if_ethersubr.c
parent512bff9c9fd0cf3326b33cd3e68ca57b094887b5 (diff)
parent4ab5163697ae354915222d0ef65a54ceebe7a0ee (diff)
downloadFreeBSD-src-a9d73bef6411194603d9e7e775055b1eecf81f72.zip
FreeBSD-src-a9d73bef6411194603d9e7e775055b1eecf81f72.tar.gz
MFC - tracking commit.
Diffstat (limited to 'sys/net/if_ethersubr.c')
-rw-r--r--sys/net/if_ethersubr.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/net/if_ethersubr.c b/sys/net/if_ethersubr.c
index f1a1666..26e6edb 100644
--- a/sys/net/if_ethersubr.c
+++ b/sys/net/if_ethersubr.c
@@ -528,7 +528,8 @@ ether_input_internal(struct ifnet *ifp, struct mbuf *m)
m->m_flags &= ~M_HASFCS;
}
- ifp->if_ibytes += m->m_pkthdr.len;
+ if (!(ifp->if_capenable & IFCAP_HWSTATS))
+ ifp->if_ibytes += m->m_pkthdr.len;
/* Allow monitor mode to claim this frame, after stats are updated. */
if (ifp->if_flags & IFF_MONITOR) {
OpenPOWER on IntegriCloud