cxgbe(4): Fix a bug (introduced in r362905) where some tx traffic wasn't
being reported to BPF.
This commit is contained in:
parent
1cbad9d72b
commit
3bbb68f0e3
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=362938
@ -3013,6 +3013,7 @@ eth_tx(struct mp_ring *r, u_int cidx, u_int pidx, bool *coalescing)
|
|||||||
if (avail < n)
|
if (avail < n)
|
||||||
break; /* out of descriptors */
|
break; /* out of descriptors */
|
||||||
}
|
}
|
||||||
|
ETHER_BPF_MTAP(ifp, m0);
|
||||||
if (sc->flags & IS_VF)
|
if (sc->flags & IS_VF)
|
||||||
n = write_txpkt_vm_wr(sc, txq, m0);
|
n = write_txpkt_vm_wr(sc, txq, m0);
|
||||||
else
|
else
|
||||||
|
Loading…
Reference in New Issue
Block a user