diff options
author | glebius <glebius@FreeBSD.org> | 2014-09-19 09:01:19 +0000 |
---|---|---|
committer | glebius <glebius@FreeBSD.org> | 2014-09-19 09:01:19 +0000 |
commit | 72f04611ecabbe285f19e3d4976b5a12fda23dc0 (patch) | |
tree | 2346dc2a57057cf36e1f65ce69915934b9e9b825 /sys/net/rtsock.c | |
parent | 85e6d8134a2e10b38acdc198135c6a72083ac01c (diff) | |
download | FreeBSD-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/net/rtsock.c')
-rw-r--r-- | sys/net/rtsock.c | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/sys/net/rtsock.c b/sys/net/rtsock.c index a4d8148..6fcbbc6 100644 --- a/sys/net/rtsock.c +++ b/sys/net/rtsock.c @@ -1577,9 +1577,6 @@ sysctl_iflist_ifml(struct ifnet *ifp, struct rt_addrinfo *info, if_data_copy(ifp, ifd); - /* Some drivers still use ifqueue(9), add its stats. */ - ifd->ifi_oqdrops += ifp->if_snd.ifq_drops; - return (SYSCTL_OUT(w->w_req, (caddr_t)ifm, len)); } @@ -1612,9 +1609,6 @@ sysctl_iflist_ifm(struct ifnet *ifp, struct rt_addrinfo *info, if_data_copy(ifp, ifd); - /* Some drivers still use ifqueue(9), add its stats. */ - ifd->ifi_oqdrops += ifp->if_snd.ifq_drops; - return (SYSCTL_OUT(w->w_req, (caddr_t)ifm, len)); } |