]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/blobdiff - drivers/net/ns83820.c
igbvf: Allow VF driver to correctly recognize failure to set mac
[mirror_ubuntu-bionic-kernel.git] / drivers / net / ns83820.c
index 940962ae8f230fe865acfa6cad4dc9a5f10697e0..1576ac07216ec9bb7a65576336945804a4353168 100644 (file)
@@ -1097,7 +1097,7 @@ again:
        if (unlikely(dev->CFG_cache & CFG_LNKSTS)) {
                netif_stop_queue(ndev);
                if (unlikely(dev->CFG_cache & CFG_LNKSTS))
-                       return 1;
+                       return NETDEV_TX_BUSY;
                netif_start_queue(ndev);
        }
 
@@ -1115,7 +1115,7 @@ again:
                        netif_start_queue(ndev);
                        goto again;
                }
-               return 1;
+               return NETDEV_TX_BUSY;
        }
 
        if (free_idx == dev->tx_intr_idx) {