Skip to content

Commit 701b03f

Browse files
Michael Changregkh
authored andcommitted
bnxt_en: Remove mis-applied code from bnxt_cfg_ntp_filters()
[ Upstream commit e009b2e ] The 2 lines to check for the BNXT_HWRM_PF_UNLOAD_SP_EVENT bit was mis-applied to bnxt_cfg_ntp_filters() and should have been applied to bnxt_sp_task(). Fixes: 1924136 ("bnxt_en: Send PF driver unload notification to all VFs.") Reviewed-by: Andy Gospodarek <[email protected]> Signed-off-by: Michael Chan <[email protected]> Signed-off-by: David S. Miller <[email protected]> Signed-off-by: Sasha Levin <[email protected]>
1 parent cfbf618 commit 701b03f

File tree

1 file changed

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

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11143,6 +11143,8 @@ static void bnxt_sp_task(struct work_struct *work)
1114311143
bnxt_cfg_ntp_filters(bp);
1114411144
if (test_and_clear_bit(BNXT_HWRM_EXEC_FWD_REQ_SP_EVENT, &bp->sp_event))
1114511145
bnxt_hwrm_exec_fwd_req(bp);
11146+
if (test_and_clear_bit(BNXT_HWRM_PF_UNLOAD_SP_EVENT, &bp->sp_event))
11147+
netdev_info(bp->dev, "Receive PF driver unload event!\n");
1114611148
if (test_and_clear_bit(BNXT_PERIODIC_STATS_SP_EVENT, &bp->sp_event)) {
1114711149
bnxt_hwrm_port_qstats(bp, 0);
1114811150
bnxt_hwrm_port_qstats_ext(bp, 0);
@@ -12097,8 +12099,6 @@ static void bnxt_cfg_ntp_filters(struct bnxt *bp)
1209712099
}
1209812100
}
1209912101
}
12100-
if (test_and_clear_bit(BNXT_HWRM_PF_UNLOAD_SP_EVENT, &bp->sp_event))
12101-
netdev_info(bp->dev, "Receive PF driver unload event!\n");
1210212102
}
1210312103

1210412104
#else

0 commit comments

Comments
 (0)