Skip to content

Commit 49563be

Browse files
committed
Merge branch 'bnxt_en-fixes'
Michael Chan says: ==================== bnxt_en: Bug fixes The first 2 patches fix 2 potential issues in the aux bus initialization and error recovery paths. The 3rd patch fixes a potential PTP TX timestamp issue during error recovery. ==================== Signed-off-by: David S. Miller <[email protected]>
2 parents 58effa3 + faa12ca commit 49563be

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11758,6 +11758,8 @@ static int __bnxt_open_nic(struct bnxt *bp, bool irq_re_init, bool link_re_init)
1175811758
/* VF-reps may need to be re-opened after the PF is re-opened */
1175911759
if (BNXT_PF(bp))
1176011760
bnxt_vf_reps_open(bp);
11761+
if (bp->ptp_cfg)
11762+
atomic_set(&bp->ptp_cfg->tx_avail, BNXT_MAX_TX_TS);
1176111763
bnxt_ptp_init_rtc(bp, true);
1176211764
bnxt_ptp_cfg_tstamp_filters(bp);
1176311765
bnxt_cfg_usr_fltrs(bp);

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

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -210,6 +210,9 @@ void bnxt_ulp_start(struct bnxt *bp, int err)
210210
if (err)
211211
return;
212212

213+
if (edev->ulp_tbl->msix_requested)
214+
bnxt_fill_msix_vecs(bp, edev->msix_entries);
215+
213216
if (aux_priv) {
214217
struct auxiliary_device *adev;
215218

@@ -392,12 +395,13 @@ void bnxt_rdma_aux_device_init(struct bnxt *bp)
392395
if (!edev)
393396
goto aux_dev_uninit;
394397

398+
aux_priv->edev = edev;
399+
395400
ulp = kzalloc(sizeof(*ulp), GFP_KERNEL);
396401
if (!ulp)
397402
goto aux_dev_uninit;
398403

399404
edev->ulp_tbl = ulp;
400-
aux_priv->edev = edev;
401405
bp->edev = edev;
402406
bnxt_set_edev_info(edev, bp);
403407

0 commit comments

Comments
 (0)