Skip to content

Commit e009b2e

Browse files
Michael Chandavem330
authored andcommitted
bnxt_en: Remove mis-applied code from bnxt_cfg_ntp_filters()
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 <andrew.gospodarek@broadcom.com> Signed-off-by: Michael Chan <michael.chan@broadcom.com> Signed-off-by: David S. Miller <davem@davemloft.net>
1 parent 9039cd4 commit e009b2e

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
@@ -12093,6 +12093,8 @@ static void bnxt_sp_task(struct work_struct *work)
1209312093
bnxt_cfg_ntp_filters(bp);
1209412094
if (test_and_clear_bit(BNXT_HWRM_EXEC_FWD_REQ_SP_EVENT, &bp->sp_event))
1209512095
bnxt_hwrm_exec_fwd_req(bp);
12096+
if (test_and_clear_bit(BNXT_HWRM_PF_UNLOAD_SP_EVENT, &bp->sp_event))
12097+
netdev_info(bp->dev, "Receive PF driver unload event!\n");
1209612098
if (test_and_clear_bit(BNXT_PERIODIC_STATS_SP_EVENT, &bp->sp_event)) {
1209712099
bnxt_hwrm_port_qstats(bp, 0);
1209812100
bnxt_hwrm_port_qstats_ext(bp, 0);
@@ -13093,8 +13095,6 @@ static void bnxt_cfg_ntp_filters(struct bnxt *bp)
1309313095
}
1309413096
}
1309513097
}
13096-
if (test_and_clear_bit(BNXT_HWRM_PF_UNLOAD_SP_EVENT, &bp->sp_event))
13097-
netdev_info(bp->dev, "Receive PF driver unload event!\n");
1309813098
}
1309913099

1310013100
#else

0 commit comments

Comments
 (0)