svn commit: r297194 - head/sys/dev/cxgbe
Navdeep Parhar
np at FreeBSD.org
Tue Mar 22 18:56:24 UTC 2016
Author: np
Date: Tue Mar 22 18:56:23 2016
New Revision: 297194
URL: https://svnweb.freebsd.org/changeset/base/297194
Log:
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.
Modified:
head/sys/dev/cxgbe/t4_sge.c
Modified: head/sys/dev/cxgbe/t4_sge.c
==============================================================================
--- head/sys/dev/cxgbe/t4_sge.c Tue Mar 22 15:55:17 2016 (r297193)
+++ head/sys/dev/cxgbe/t4_sge.c Tue Mar 22 18:56:23 2016 (r297194)
@@ -2343,8 +2343,8 @@ eth_tx(struct mp_ring *r, u_int cidx, u_
} 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);
More information about the svn-src-head
mailing list