Skip to content

Commit b6a258c

Browse files
committed
Merge branch 'bnxt_en-fixes'
Michael Chan says: ==================== bnxt_en: Bug fixes This patchset includes 3 small bug fixes to reinitialize PHY capabilities after firmware reset, setup the chip's internal TQM fastpath ring backing memory properly for RoCE traffic, and to free ethtool related memory if driver probe fails. ==================== Signed-off-by: David S. Miller <[email protected]>
2 parents 39eb028 + 03400aa commit b6a258c

File tree

1 file changed

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

1 file changed

+7
-1
lines changed

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

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7308,7 +7308,7 @@ static int bnxt_alloc_ctx_mem(struct bnxt *bp)
73087308
entries_sp = ctx->vnic_max_vnic_entries + ctx->qp_max_l2_entries +
73097309
2 * (extra_qps + ctx->qp_min_qp1_entries) + min;
73107310
entries_sp = roundup(entries_sp, ctx->tqm_entries_multiple);
7311-
entries = ctx->qp_max_l2_entries + extra_qps + ctx->qp_min_qp1_entries;
7311+
entries = ctx->qp_max_l2_entries + 2 * (extra_qps + ctx->qp_min_qp1_entries);
73127312
entries = roundup(entries, ctx->tqm_entries_multiple);
73137313
entries = clamp_t(u32, entries, min, ctx->tqm_max_entries_per_ring);
73147314
for (i = 0; i < ctx->tqm_fp_rings_count + 1; i++) {
@@ -11750,6 +11750,8 @@ static void bnxt_fw_init_one_p3(struct bnxt *bp)
1175011750
bnxt_hwrm_coal_params_qcaps(bp);
1175111751
}
1175211752

11753+
static int bnxt_probe_phy(struct bnxt *bp, bool fw_dflt);
11754+
1175311755
static int bnxt_fw_init_one(struct bnxt *bp)
1175411756
{
1175511757
int rc;
@@ -11764,6 +11766,9 @@ static int bnxt_fw_init_one(struct bnxt *bp)
1176411766
netdev_err(bp->dev, "Firmware init phase 2 failed\n");
1176511767
return rc;
1176611768
}
11769+
rc = bnxt_probe_phy(bp, false);
11770+
if (rc)
11771+
return rc;
1176711772
rc = bnxt_approve_mac(bp, bp->dev->dev_addr, false);
1176811773
if (rc)
1176911774
return rc;
@@ -13155,6 +13160,7 @@ static int bnxt_init_one(struct pci_dev *pdev, const struct pci_device_id *ent)
1315513160
bnxt_hwrm_func_drv_unrgtr(bp);
1315613161
bnxt_free_hwrm_short_cmd_req(bp);
1315713162
bnxt_free_hwrm_resources(bp);
13163+
bnxt_ethtool_free(bp);
1315813164
kfree(bp->fw_health);
1315913165
bp->fw_health = NULL;
1316013166
bnxt_cleanup_pci(bp);

0 commit comments

Comments
 (0)