From cca3506dc15464baf9b09b143879ed13fb5684c7 Mon Sep 17 00:00:00 2001 From: Navdeep Parhar Date: Thu, 2 May 2024 16:47:18 -0700 Subject: [PATCH] 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 46638a086a0..2186c8aa2ac 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.