Skip to content

Commit dbe80d4

Browse files
Michael Chandavem330
authored andcommitted
bnxt_en: Fix VNIC reservations on the PF.
The enables bit for VNIC was set wrong when calling the HWRM_FUNC_CFG firmware call to reserve VNICs. This has the effect that the firmware will keep a large number of VNICs for the PF, and having very few for VFs. DPDK driver running on the VFs, which requires more VNICs, may not work properly as a result. Fixes: 674f50a ("bnxt_en: Implement new method to reserve rings.") Signed-off-by: Michael Chan <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent 471b83b commit dbe80d4

File tree

1 file changed

+1
-1
lines changed
  • drivers/net/ethernet/broadcom/bnxt

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4650,7 +4650,7 @@ __bnxt_hwrm_reserve_pf_rings(struct bnxt *bp, struct hwrm_func_cfg_input *req,
46504650
FUNC_CFG_REQ_ENABLES_NUM_STAT_CTXS : 0;
46514651
enables |= ring_grps ?
46524652
FUNC_CFG_REQ_ENABLES_NUM_HW_RING_GRPS : 0;
4653-
enables |= vnics ? FUNC_VF_CFG_REQ_ENABLES_NUM_VNICS : 0;
4653+
enables |= vnics ? FUNC_CFG_REQ_ENABLES_NUM_VNICS : 0;
46544654

46554655
req->num_rx_rings = cpu_to_le16(rx_rings);
46564656
req->num_hw_ring_grps = cpu_to_le16(ring_grps);

0 commit comments

Comments
 (0)