Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 17 Jul 2024 14:24:46 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: 9cdafb024d3e - stable/13 - cxgbe(4): sc->port is indexed by port_id and not tx_chan.
Message-ID:  <202407171424.46HEOkda033511@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=9cdafb024d3ea8dbc169a556863ef7c1e516719f

commit 9cdafb024d3ea8dbc169a556863ef7c1e516719f
Author:     Navdeep Parhar <np@FreeBSD.org>
AuthorDate: 2024-05-02 23:47:18 +0000
Commit:     Navdeep Parhar <np@FreeBSD.org>
CommitDate: 2024-07-17 07:16:55 +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 f7e2e168880a..d343b75a614f 100644
--- a/sys/dev/cxgbe/t4_sched.c
+++ b/sys/dev/cxgbe/t4_sched.c
@@ -335,7 +335,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.



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