Date: Tue, 22 Mar 2016 18:56:23 +0000 (UTC) From: Navdeep Parhar <np@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r297194 - head/sys/dev/cxgbe Message-ID: <201603221856.u2MIuNmG023504@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
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);
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201603221856.u2MIuNmG023504>