From 3bbb68f0e3c497dce2e4f0ae4a4cd3f24675ad31 Mon Sep 17 00:00:00 2001 From: Navdeep Parhar Date: Sun, 5 Jul 2020 05:14:33 +0000 Subject: [PATCH] cxgbe(4): Fix a bug (introduced in r362905) where some tx traffic wasn't being reported to BPF. --- sys/dev/cxgbe/t4_sge.c | 1 + 1 file changed, 1 insertion(+) diff --git a/sys/dev/cxgbe/t4_sge.c b/sys/dev/cxgbe/t4_sge.c index e84a49930650..65f616b1ea45 100644 --- a/sys/dev/cxgbe/t4_sge.c +++ b/sys/dev/cxgbe/t4_sge.c @@ -3013,6 +3013,7 @@ eth_tx(struct mp_ring *r, u_int cidx, u_int pidx, bool *coalescing) if (avail < n) break; /* out of descriptors */ } + ETHER_BPF_MTAP(ifp, m0); if (sc->flags & IS_VF) n = write_txpkt_vm_wr(sc, txq, m0); else