Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 11 Jan 2024 05:34:26 GMT
From:      Navdeep Parhar <np@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org
Subject:   git: 0e3fce67f1e5 - stable/13 - cxgbe(4): Allow tracing filters on loopback ports.
Message-ID:  <202401110534.40B5YQxb009762@gitrepo.freebsd.org>

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

URL: https://cgit.FreeBSD.org/src/commit/?id=0e3fce67f1e5899be93f334022803ce9a52e7a13

commit 0e3fce67f1e5899be93f334022803ce9a52e7a13
Author:     Navdeep Parhar <np@FreeBSD.org>
AuthorDate: 2023-04-02 00:16:02 +0000
Commit:     Navdeep Parhar <np@FreeBSD.org>
CommitDate: 2024-01-11 05:06:58 +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.
    
    Sponsored by:   Chelsio Communications
    
    (cherry picked from commit 9f354cd3d0170f0deba2a548e7894d48aa67ee23)
---
 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 db5b1d27becb..adb6d89b6362 100644
--- a/sys/dev/cxgbe/t4_tracer.c
+++ b/sys/dev/cxgbe/t4_tracer.c
@@ -387,7 +387,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?202401110534.40B5YQxb009762>