aboutsummaryrefslogtreecommitdiff
path: root/sys/net/if.c
diff options
context:
space:
mode:
authorGleb Smirnoff <glebius@FreeBSD.org>2014-09-19 09:01:19 +0000
committerGleb Smirnoff <glebius@FreeBSD.org>2014-09-19 09:01:19 +0000
commit56b61ca27ace61b1f30aaeb54138d8114df56d00 (patch)
tree2346dc2a57057cf36e1f65ce69915934b9e9b825 /sys/net/if.c
parent35163b6c157757c0b30811a9d9b03ff8b790de0e (diff)
downloadsrc-56b61ca27ace61b1f30aaeb54138d8114df56d00.tar.gz
src-56b61ca27ace61b1f30aaeb54138d8114df56d00.zip
Remove ifq_drops from struct ifqueue. Now queue drops are accounted in
struct ifnet if_oqdrops. Some netgraph modules used ifqueue w/o ifnet. Accounting of queue drops is simply removed from them. There were no API to read this statistic. Sponsored by: Netflix Sponsored by: Nginx, Inc.
Notes
Notes: svn path=/head/; revision=271856
Diffstat (limited to 'sys/net/if.c')
-rw-r--r--sys/net/if.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/net/if.c b/sys/net/if.c
index 0f33726e5d6e..1b41b7e56155 100644
--- a/sys/net/if.c
+++ b/sys/net/if.c
@@ -3521,8 +3521,8 @@ if_handoff(struct ifqueue *ifq, struct mbuf *m, struct ifnet *ifp, int adjust)
IF_LOCK(ifq);
if (_IF_QFULL(ifq)) {
- _IF_DROP(ifq);
IF_UNLOCK(ifq);
+ ifp->if_oqdrops++;
m_freem(m);
return (0);
}