Commit 3103b6fe authored by Shannon Nelson's avatar Shannon Nelson Committed by David S. Miller
Browse files

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: 987c0871 ("ionic: check for linkup in watchdog")
Signed-off-by: default avatarShannon Nelson <snelson@pensando.io>
Acked-by: default avatarJonathan Toppins <jtoppins@redhat.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent e869e7a1
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -96,7 +96,8 @@ static void ionic_link_status_check(struct ionic_lif *lif)
	u16 link_status;
	bool link_up;

	if (!test_bit(IONIC_LIF_F_LINK_CHECK_REQUESTED, lif->state))
	if (!test_bit(IONIC_LIF_F_LINK_CHECK_REQUESTED, lif->state) ||
	    test_bit(IONIC_LIF_F_QUEUE_RESET, lif->state))
		return;

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