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

MFC after:	1 week
Sponsored by:	Chelsio Communications
This commit is contained in:
Navdeep Parhar 2024-05-02 16:47:18 -07:00
parent 61ad1ddc5a
commit cca3506dc1

View file

@ -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.