cxgbe(4): Fix a bug (introduced in r362905) where some tx traffic wasn't

being reported to BPF.
This commit is contained in:
Navdeep Parhar 2020-07-05 05:14:33 +00:00
parent 1cbad9d72b
commit 3bbb68f0e3
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=362938

View File

@ -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