Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 5 Jul 2020 05:14:33 +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: r362938 - head/sys/dev/cxgbe
Message-ID:  <202007050514.0655EXfr074216@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: np
Date: Sun Jul  5 05:14:33 2020
New Revision: 362938
URL: https://svnweb.freebsd.org/changeset/base/362938

Log:
  cxgbe(4): Fix a bug (introduced in r362905) where some tx traffic wasn't
  being reported to BPF.

Modified:
  head/sys/dev/cxgbe/t4_sge.c

Modified: head/sys/dev/cxgbe/t4_sge.c
==============================================================================
--- head/sys/dev/cxgbe/t4_sge.c	Sun Jul  5 00:19:08 2020	(r362937)
+++ head/sys/dev/cxgbe/t4_sge.c	Sun Jul  5 05:14:33 2020	(r362938)
@@ -3013,6 +3013,7 @@ eth_tx(struct mp_ring *r, u_int cidx, u_int pidx, bool
 				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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202007050514.0655EXfr074216>