summaryrefslogtreecommitdiffstats
path: root/sys/netgraph/bluetooth
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/netgraph/bluetooth
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/netgraph/bluetooth')
-rw-r--r--sys/netgraph/bluetooth/drivers/bt3c/ng_bt3c_pccard.c2
-rw-r--r--sys/netgraph/bluetooth/drivers/h4/ng_h4.c1
2 files changed, 0 insertions, 3 deletions
diff --git a/sys/netgraph/bluetooth/drivers/bt3c/ng_bt3c_pccard.c b/sys/netgraph/bluetooth/drivers/bt3c/ng_bt3c_pccard.c
index f2930ab..9b174bb 100644
--- a/sys/netgraph/bluetooth/drivers/bt3c/ng_bt3c_pccard.c
+++ b/sys/netgraph/bluetooth/drivers/bt3c/ng_bt3c_pccard.c
@@ -560,7 +560,6 @@ ng_bt3c_rcvdata(hook_p hook, item_p item)
NG_BT3C_ERR(sc->dev,
"Outgoing queue is full. Dropping mbuf, len=%d\n", m->m_pkthdr.len);
- _IF_DROP(&sc->outq);
NG_BT3C_STAT_OERROR(sc->stat);
NG_FREE_M(m);
@@ -939,7 +938,6 @@ bt3c_receive(bt3c_softc_p sc)
NG_BT3C_ERR(sc->dev,
"Incoming queue is full. Dropping mbuf, len=%d\n", sc->m->m_pkthdr.len);
- _IF_DROP(&sc->inq);
NG_BT3C_STAT_IERROR(sc->stat);
NG_FREE_M(sc->m);
diff --git a/sys/netgraph/bluetooth/drivers/h4/ng_h4.c b/sys/netgraph/bluetooth/drivers/h4/ng_h4.c
index 97cee2e..5cb0386 100644
--- a/sys/netgraph/bluetooth/drivers/h4/ng_h4.c
+++ b/sys/netgraph/bluetooth/drivers/h4/ng_h4.c
@@ -798,7 +798,6 @@ ng_h4_rcvdata(hook_p hook, item_p item)
NG_NODE_NAME(sc->node), m->m_pkthdr.len);
NG_H4_STAT_OERROR(sc->stat);
- _IF_DROP(&sc->outq);
NG_H4_UNLOCK(sc);
OpenPOWER on IntegriCloud