mirror of https://gitee.com/openkylin/linux.git
bnxt_en: Return from timer if interface is not in open state.
This will avoid many uneccessary error logs when driver or firmware is
in reset.
Fixes: 230d1f0de7
("bnxt_en: Handle firmware reset.")
Signed-off-by: Vasundhara Volam <vasundhara-v.volam@broadcom.com>
Signed-off-by: Michael Chan <michael.chan@broadcom.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
6e2f83884c
commit
e000940473
|
@ -10037,7 +10037,7 @@ static void bnxt_timer(struct timer_list *t)
|
|||
struct bnxt *bp = from_timer(bp, t, timer);
|
||||
struct net_device *dev = bp->dev;
|
||||
|
||||
if (!netif_running(dev))
|
||||
if (!netif_running(dev) || !test_bit(BNXT_STATE_OPEN, &bp->state))
|
||||
return;
|
||||
|
||||
if (atomic_read(&bp->intr_sem) != 0)
|
||||
|
|
Loading…
Reference in New Issue