summaryrefslogtreecommitdiffstats
path: root/sys/dev/lmc/if_lmc.c
diff options
context:
space:
mode:
authorglebius <glebius@FreeBSD.org>2014-09-19 09:01:19 +0000
committerglebius <glebius@FreeBSD.org>2014-09-19 09:01:19 +0000
commit72f04611ecabbe285f19e3d4976b5a12fda23dc0 (patch)
tree2346dc2a57057cf36e1f65ce69915934b9e9b825 /sys/dev/lmc/if_lmc.c
parent85e6d8134a2e10b38acdc198135c6a72083ac01c (diff)
downloadFreeBSD-src-72f04611ecabbe285f19e3d4976b5a12fda23dc0.zip
FreeBSD-src-72f04611ecabbe285f19e3d4976b5a12fda23dc0.tar.gz
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.
Diffstat (limited to 'sys/dev/lmc/if_lmc.c')
-rw-r--r--sys/dev/lmc/if_lmc.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/dev/lmc/if_lmc.c b/sys/dev/lmc/if_lmc.c
index 766fdae..f7cdac5 100644
--- a/sys/dev/lmc/if_lmc.c
+++ b/sys/dev/lmc/if_lmc.c
@@ -4635,6 +4635,7 @@ lmc_raw_output(struct ifnet *ifp, struct mbuf *m,
{
m_freem(m);
sc->status.cntrs.odiscards++;
+ ifp->if_oqdrops++;
if (DRIVER_DEBUG)
printf("%s: lmc_raw_output: IFQ_ENQUEUE() failed; error %d\n",
NAME_UNIT, error);
OpenPOWER on IntegriCloud