Skip to content

Commit faa12ca

Browse files
Pavan Chebbidavem330
authored andcommitted
bnxt_en: Reset PTP tx_avail after possible firmware reset
It is possible that during error recovery and firmware reset, there is a pending TX PTP packet waiting for the timestamp. We need to reset this condition so that after recovery, the tx_avail count for PTP is reset back to the initial value. Otherwise, we may not accept any PTP TX timestamps after recovery. Fixes: 118612d ("bnxt_en: Add PTP clock APIs, ioctls, and ethtool methods") Reviewed-by: Kalesh AP <[email protected]> Signed-off-by: Pavan Chebbi <[email protected]> Signed-off-by: Michael Chan <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent b5ea7d3 commit faa12ca

File tree

1 file changed

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

1 file changed

+2
-0
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);

0 commit comments

Comments
 (0)