mirror of
https://github.com/freebsd/freebsd-src
synced 2024-07-21 18:27:22 +00:00
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:
parent
61ad1ddc5a
commit
cca3506dc1
|
@ -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.
|
||||
|
|
Loading…
Reference in a new issue