aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZhenlei Huang <zlei@FreeBSD.org>2026-02-06 17:52:54 +0000
committerZhenlei Huang <zlei@FreeBSD.org>2026-02-06 17:56:16 +0000
commit968647502ec21464ad3aecc7577ff0e8dfd41693 (patch)
tree9ae75e80e8f318a829b98cc2be42e5d89cbcd614
parent45b1718fadae7d56051ba04ef9d7a175a602a226 (diff)
qlnxe: Allow tapping the TX packets
Currently only the packets in the RX path can be captured by tcpdump as the ETHER_BPF_MTAP call in the TX path is missing. Add it so that packets in both directions can be captured. PR: 290973 Reviewed by: kbowling MFC after: 5 days Differential Revision: https://reviews.freebsd.org/D54891
-rw-r--r--sys/dev/qlnx/qlnxe/qlnx_os.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/dev/qlnx/qlnxe/qlnx_os.c b/sys/dev/qlnx/qlnxe/qlnx_os.c
index bc7ff63fe783..5f6f336aab8d 100644
--- a/sys/dev/qlnx/qlnxe/qlnx_os.c
+++ b/sys/dev/qlnx/qlnxe/qlnx_os.c
@@ -2993,6 +2993,7 @@ qlnx_transmit_locked(if_t ifp, struct qlnx_fastpath *fp, struct mbuf *mp)
drbr_advance(ifp, fp->tx_br);
fp->tx_pkts_transmitted++;
fp->tx_pkts_processed++;
+ ETHER_BPF_MTAP(ifp, mp);
}
mp = drbr_peek(ifp, fp->tx_br);