Skip to content

Commit 3103b6f

Browse files
emuslndavem330
authored andcommitted
ionic: no link check while resetting queues
If the driver is busy resetting queues after a change in MTU or queue parameters, don't bother checking the link, wait until the next watchdog cycle. Fixes: 987c087 ("ionic: check for linkup in watchdog") Signed-off-by: Shannon Nelson <[email protected]> Acked-by: Jonathan Toppins <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent e869e7a commit 3103b6f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

drivers/net/ethernet/pensando/ionic/ionic_lif.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,8 @@ static void ionic_link_status_check(struct ionic_lif *lif)
9696
u16 link_status;
9797
bool link_up;
9898

99-
if (!test_bit(IONIC_LIF_F_LINK_CHECK_REQUESTED, lif->state))
99+
if (!test_bit(IONIC_LIF_F_LINK_CHECK_REQUESTED, lif->state) ||
100+
test_bit(IONIC_LIF_F_QUEUE_RESET, lif->state))
100101
return;
101102

102103
link_status = le16_to_cpu(lif->info->status.link_status);

0 commit comments

Comments
 (0)