Skip to content

Commit 5ac066b

Browse files
skotur-brcmPaolo Abeni
authored andcommitted
bnxt_en: Fix queue start to update vnic RSS table
HWRM_RING_FREE followed by a HWRM_RING_ALLOC is not guaranteed to have the same FW ring ID as before. So we must reinitialize the RSS table with the correct ring IDs. Otherwise, traffic may not resume properly if the restarted ring ID is stale. Since this feature is only supported on P5_PLUS chips, we call bnxt_vnic_set_rss_p5() to update the HW RSS table. Fixes: 2d694c2 ("bnxt_en: implement netdev_queue_mgmt_ops") Cc: David Wei <[email protected]> Reviewed-by: Kalesh AP <[email protected]> Reviewed-by: Andy Gospodarek <[email protected]> Signed-off-by: Somnath Kotur <[email protected]> Signed-off-by: Michael Chan <[email protected]> Signed-off-by: Paolo Abeni <[email protected]>
1 parent 5007991 commit 5ac066b

File tree

1 file changed

+7
-0
lines changed
  • drivers/net/ethernet/broadcom/bnxt

1 file changed

+7
-0
lines changed

drivers/net/ethernet/broadcom/bnxt/bnxt.c

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15477,6 +15477,13 @@ static int bnxt_queue_start(struct net_device *dev, void *qmem, int idx)
1547715477

1547815478
for (i = 0; i <= BNXT_VNIC_NTUPLE; i++) {
1547915479
vnic = &bp->vnic_info[i];
15480+
15481+
rc = bnxt_hwrm_vnic_set_rss_p5(bp, vnic, true);
15482+
if (rc) {
15483+
netdev_err(bp->dev, "hwrm vnic %d set rss failure rc: %d\n",
15484+
vnic->vnic_id, rc);
15485+
return rc;
15486+
}
1548015487
vnic->mru = bp->dev->mtu + ETH_HLEN + VLAN_HLEN;
1548115488
bnxt_hwrm_vnic_update(bp, vnic,
1548215489
VNIC_UPDATE_REQ_ENABLES_MRU_VALID);

0 commit comments

Comments
 (0)