[Midnightbsd-cvs] src [8439] trunk/sys/dev: cleanup counting
laffer1 at midnightbsd.org
laffer1 at midnightbsd.org
Sun Sep 18 17:42:29 EDT 2016
Revision: 8439
http://svnweb.midnightbsd.org/src/?rev=8439
Author: laffer1
Date: 2016-09-18 17:42:29 -0400 (Sun, 18 Sep 2016)
Log Message:
-----------
cleanup counting
Modified Paths:
--------------
trunk/sys/dev/bxe/if_bxe.c
trunk/sys/dev/mxge/if_mxge.c
Modified: trunk/sys/dev/bxe/if_bxe.c
===================================================================
--- trunk/sys/dev/bxe/if_bxe.c 2016-09-18 21:40:47 UTC (rev 8438)
+++ trunk/sys/dev/bxe/if_bxe.c 2016-09-18 21:42:29 UTC (rev 8439)
@@ -9552,6 +9552,11 @@
/* The transmit frame was enqueued successfully. */
tx_count++;
+ /* Update stats */
+ ifp->if_obytes += next->m_pkthdr.len;
+ if (next->m_flags & M_MCAST)
+ ifp->if_omcasts++;
+
/* Send a copy of the frame to any BPF listeners. */
BPF_MTAP(ifp, next);
Modified: trunk/sys/dev/mxge/if_mxge.c
===================================================================
--- trunk/sys/dev/mxge/if_mxge.c 2016-09-18 21:40:47 UTC (rev 8438)
+++ trunk/sys/dev/mxge/if_mxge.c 2016-09-18 21:42:29 UTC (rev 8439)
@@ -47,8 +47,6 @@
#include <sys/sx.h>
#include <sys/taskqueue.h>
-/* count xmits ourselves, rather than via drbr */
-#define NO_SLOW_STATS
#include <net/if.h>
#include <net/if_arp.h>
#include <net/ethernet.h>
More information about the Midnightbsd-cvs
mailing list