diff options
author | jhb <jhb@FreeBSD.org> | 2016-11-04 21:02:33 +0000 |
---|---|---|
committer | jhb <jhb@FreeBSD.org> | 2016-11-04 21:02:33 +0000 |
commit | fcd0752232f1d6e2f643cb33ced40ed7901f1934 (patch) | |
tree | 8f532c18e0353aa7969abfb38b2f9aa0cc2f7406 | |
parent | 5338a780ee984a9041fc6ace725f8c43215c4ed5 (diff) | |
download | FreeBSD-src-fcd0752232f1d6e2f643cb33ced40ed7901f1934.zip FreeBSD-src-fcd0752232f1d6e2f643cb33ced40ed7901f1934.tar.gz |
MFC 297194:
cxgbe(4): Be consistent and call ETHER_BPF_MTAP before writing anything
to the descriptor ring no matter what path the frame takes within the
driver's tx.
-rw-r--r-- | sys/dev/cxgbe/t4_sge.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/dev/cxgbe/t4_sge.c b/sys/dev/cxgbe/t4_sge.c index 33d9a5e..68d8ecb 100644 --- a/sys/dev/cxgbe/t4_sge.c +++ b/sys/dev/cxgbe/t4_sge.c @@ -2362,8 +2362,8 @@ eth_tx(struct mp_ring *r, u_int cidx, u_int pidx) } else { total++; remaining--; - n = write_txpkt_wr(txq, (void *)wr, m0, available); ETHER_BPF_MTAP(ifp, m0); + n = write_txpkt_wr(txq, (void *)wr, m0, available); } MPASS(n >= 1 && n <= available && n <= SGE_MAX_WR_NDESC); |