summaryrefslogtreecommitdiffstats
path: root/sys/mips/cavium/octe/ethernet-tx.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/mips/cavium/octe/ethernet-tx.c')
-rw-r--r--sys/mips/cavium/octe/ethernet-tx.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/sys/mips/cavium/octe/ethernet-tx.c b/sys/mips/cavium/octe/ethernet-tx.c
index 887d771..7ef77b5 100644
--- a/sys/mips/cavium/octe/ethernet-tx.c
+++ b/sys/mips/cavium/octe/ethernet-tx.c
@@ -247,6 +247,9 @@ int cvm_oct_xmit(struct mbuf *m, struct ifnet *ifp)
/* Pass it to any BPF listeners. */
ETHER_BPF_MTAP(ifp, m);
+
+ ifp->if_opackets++;
+ ifp->if_obytes += m->m_pkthdr.len;
}
/* Free mbufs not in use by the hardware */
OpenPOWER on IntegriCloud