diff options
author | markm <markm@FreeBSD.org> | 2013-10-09 21:03:34 +0000 |
---|---|---|
committer | markm <markm@FreeBSD.org> | 2013-10-09 21:03:34 +0000 |
commit | a9d73bef6411194603d9e7e775055b1eecf81f72 (patch) | |
tree | 3f1ae2032445c25f67a5b6645cd165067d0b8a93 /sys/net/if_ethersubr.c | |
parent | 512bff9c9fd0cf3326b33cd3e68ca57b094887b5 (diff) | |
parent | 4ab5163697ae354915222d0ef65a54ceebe7a0ee (diff) | |
download | FreeBSD-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.c | 3 |
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) { |