]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commitdiff
ionic: ignore EBUSY on queue start
authorShannon Nelson <snelson@pensando.io>
Wed, 7 Apr 2021 23:19:59 +0000 (16:19 -0700)
committerDavid S. Miller <davem@davemloft.net>
Thu, 8 Apr 2021 20:18:49 +0000 (13:18 -0700)
When starting the queues in the link-check, don't go into
the BROKEN state if the return was EBUSY.

Signed-off-by: Shannon Nelson <snelson@pensando.io>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/pensando/ionic/ionic_lif.c

index 8cf6477b9899c61b1f34e789a224e1f1798715cf..eae774c0a2d9f0fc44a6717fccf4ca859d4e0a48 100644 (file)
@@ -135,7 +135,7 @@ static void ionic_link_status_check(struct ionic_lif *lif)
                if (netdev->flags & IFF_UP && netif_running(netdev)) {
                        mutex_lock(&lif->queue_lock);
                        err = ionic_start_queues(lif);
-                       if (err) {
+                       if (err && err != -EBUSY) {
                                netdev_err(lif->netdev,
                                           "Failed to start queues: %d\n", err);
                                set_bit(IONIC_LIF_F_BROKEN, lif->state);