git: 307639c1e93f - stable/14 - cxgbe(4): sc->port is indexed by port_id and not tx_chan.
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Wed, 17 Jul 2024 14:21:50 UTC
The branch stable/14 has been updated by np:
URL: https://cgit.FreeBSD.org/src/commit/?id=307639c1e93f7948359f157cfd47c6aeadf77719
commit 307639c1e93f7948359f157cfd47c6aeadf77719
Author: Navdeep Parhar <np@FreeBSD.org>
AuthorDate: 2024-05-02 23:47:18 +0000
Commit: Navdeep Parhar <np@FreeBSD.org>
CommitDate: 2024-07-17 06:39:32 +0000
cxgbe(4): sc->port is indexed by port_id and not tx_chan.
Sponsored by: Chelsio Communications
(cherry picked from commit cca3506dc15464baf9b09b143879ed13fb5684c7)
---
sys/dev/cxgbe/t4_sched.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/sys/dev/cxgbe/t4_sched.c b/sys/dev/cxgbe/t4_sched.c
index 46638a086a0d..2186c8aa2ac0 100644
--- a/sys/dev/cxgbe/t4_sched.c
+++ b/sys/dev/cxgbe/t4_sched.c
@@ -334,7 +334,7 @@ bind_txq_to_traffic_class(struct adapter *sc, struct sge_txq *txq, int idx)
goto done;
}
- tc0 = &sc->port[txq->eq.tx_chan]->sched_params->cl_rl[0];
+ tc0 = &sc->port[txq->eq.port_id]->sched_params->cl_rl[0];
if (idx != -1) {
/*
* Bind to a different class at index idx.