git: cca3506dc154 - main - cxgbe(4): sc->port is indexed by port_id and not tx_chan.

From: Navdeep Parhar <np_at_FreeBSD.org>
Date: Fri, 17 May 2024 22:46:10 UTC
The branch main has been updated by np:

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

commit cca3506dc15464baf9b09b143879ed13fb5684c7
Author:     Navdeep Parhar <np@FreeBSD.org>
AuthorDate: 2024-05-02 23:47:18 +0000
Commit:     Navdeep Parhar <np@FreeBSD.org>
CommitDate: 2024-05-17 22:42:23 +0000

    cxgbe(4): sc->port is indexed by port_id and not tx_chan.
    
    MFC after:      1 week
    Sponsored by:   Chelsio Communications
---
 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.