Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 2 Apr 2023 01:09:56 GMT
From:      Navdeep Parhar <np@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org
Subject:   git: 9f354cd3d017 - main - cxgbe(4): Allow tracing filters on loopback ports.
Message-ID:  <202304020109.33219uj4054569@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by np:

URL: https://cgit.FreeBSD.org/src/commit/?id=9f354cd3d0170f0deba2a548e7894d48aa67ee23

commit 9f354cd3d0170f0deba2a548e7894d48aa67ee23
Author:     Navdeep Parhar <np@FreeBSD.org>
AuthorDate: 2023-04-02 00:16:02 +0000
Commit:     Navdeep Parhar <np@FreeBSD.org>
CommitDate: 2023-04-02 00:50:46 +0000

    cxgbe(4): Allow tracing filters on loopback ports.
    
    Each physical port has an associated loopback tx channel and anything
    transmitted over that channel by the driver is looped back internally by
    the hardware as if received on that physical port.  This change allows
    tracing filters to be installed in this loopback path.
    
    MFC after:      1 week
    Sponsored by:   Chelsio Communications
---
 sys/dev/cxgbe/t4_tracer.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/sys/dev/cxgbe/t4_tracer.c b/sys/dev/cxgbe/t4_tracer.c
index 3d9d7038bf17..00c403b59bba 100644
--- a/sys/dev/cxgbe/t4_tracer.c
+++ b/sys/dev/cxgbe/t4_tracer.c
@@ -388,7 +388,8 @@ t4_set_tracer(struct adapter *sc, struct t4_tracer *t)
 			goto done;
 		}
 		tp.port = sc->port[t->tp.port - 4]->tx_chan + 4;
-	}
+	} else
+		tp.port = t->tp.port;
 	tpp = &tp;
 done:
 	if (rc == 0) {



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