Skip to content

Commit

Permalink
cxgbe/tom: Fix the rx channel selection in options2.
Browse files Browse the repository at this point in the history
This affects TOE operation when multiple rx c-channels are in use for
offload, which is an unusual configuration.

MFC after:	1 week
Sponsored by:	Chelsio Communications
  • Loading branch information
np-2020 committed May 1, 2024
1 parent 7f10048 commit c6c6d4a
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions sys/dev/cxgbe/tom/t4_tom.c
Original file line number Diff line number Diff line change
Expand Up @@ -1200,12 +1200,14 @@ calc_options2(struct vi_info *vi, struct conn_params *cp)
MPASS(cp->ecn == 0 || cp->ecn == 1);
opt2 |= V_CCTRL_ECN(cp->ecn);

/* XXX: F_RX_CHANNEL for multiple rx c-chan support goes here. */

opt2 |= V_TX_QUEUE(TX_MODQ(pi->tx_chan));
opt2 |= V_PACE(0);
opt2 |= F_RSS_QUEUE_VALID;
opt2 |= V_RSS_QUEUE(sc->sge.ofld_rxq[cp->rxq_idx].iq.abs_id);
if (chip_id(sc) <= CHELSIO_T6) {
MPASS(pi->rx_chan == 0 || pi->rx_chan == 1);
opt2 |= V_RX_CHANNEL(pi->rx_chan);
}

MPASS(cp->cong_algo >= 0 && cp->cong_algo <= M_CONG_CNTRL);
opt2 |= V_CONG_CNTRL(cp->cong_algo);
Expand Down

0 comments on commit c6c6d4a

Please sign in to comment.