dpaa2: allow tapping of tx packets in dpni
Packet capturing on dpni is only half-working given the BPF_MTAP call in the TX path is missing. Add it to see packets in both directions. MFC after: 3 days Reviewed by: dsl Differential Revision: https://reviews.freebsd.org/D47103
This commit is contained in:
@@ -2936,6 +2936,8 @@ dpaa2_ni_tx(struct dpaa2_ni_softc *sc, struct dpaa2_channel *ch,
|
||||
KASSERT(btx->fq->chan == ch, ("%s: unexpected channel", __func__));
|
||||
#endif /* INVARIANTS */
|
||||
|
||||
BPF_MTAP(sc->ifp, m);
|
||||
|
||||
error = bus_dmamap_load_mbuf_sg(buf->dmat, buf->dmap, m, segs, &nsegs,
|
||||
BUS_DMA_NOWAIT);
|
||||
if (__predict_false(error != 0)) {
|
||||
|
||||
Reference in New Issue
Block a user