aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNavdeep Parhar <np@FreeBSD.org>2023-04-02 00:16:02 +0000
committerNavdeep Parhar <np@FreeBSD.org>2024-01-11 05:06:58 +0000
commit0e3fce67f1e5899be93f334022803ce9a52e7a13 (patch)
tree33a07fae9381571f696af7fc71b502ede6ba85da
parent3368fcf147a7190018eb342dae90490915d9d219 (diff)
downloadsrc-0e3fce67f1e5899be93f334022803ce9a52e7a13.tar.gz
src-0e3fce67f1e5899be93f334022803ce9a52e7a13.zip
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)
-rw-r--r--sys/dev/cxgbe/t4_tracer.c3
1 files changed, 2 insertions, 1 deletions
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) {