net/bnxt: fix default Rx queue for Thor
Use first receive queue assigned to VNIC as the default receive queue when configuring Thor VNICs. This is necessary e.g. in order for flow redirection to a specific receive queue to work correctly. Fixes: f8168ca0e690 ("net/bnxt: support thor controller") Cc: stable@dpdk.org Signed-off-by: Lance Richardson <lance.richardson@broadcom.com> Reviewed-by: Ajit Khaparde <ajit.khaparde@broadcom.com>
This commit is contained in:
parent
74721ba062
commit
13d3780df6
@ -1692,7 +1692,8 @@ int bnxt_hwrm_vnic_cfg(struct bnxt *bp, struct bnxt_vnic_info *vnic)
|
||||
HWRM_PREP(req, VNIC_CFG, BNXT_USE_CHIMP_MB);
|
||||
|
||||
if (BNXT_CHIP_THOR(bp)) {
|
||||
struct bnxt_rx_queue *rxq = bp->eth_dev->data->rx_queues[0];
|
||||
struct bnxt_rx_queue *rxq =
|
||||
bp->eth_dev->data->rx_queues[vnic->start_grp_id];
|
||||
struct bnxt_rx_ring_info *rxr = rxq->rx_ring;
|
||||
struct bnxt_cp_ring_info *cpr = rxq->cp_ring;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user