]> git.baikalelectronics.ru Git - kernel.git/commitdiff
Revert "ibmvnic: check failover_pending in login response"
authorDesnes A. Nunes do Rosario <desnesn@linux.ibm.com>
Sat, 25 Sep 2021 15:14:18 +0000 (12:14 -0300)
committerDavid S. Miller <davem@davemloft.net>
Mon, 27 Sep 2021 12:21:53 +0000 (13:21 +0100)
This reverts commit d437f5aa23aa2b7bd07cd44b839d7546cc17166f.

Code has been duplicated through commit <273c29e944bd> "ibmvnic: check
failover_pending in login response"

Signed-off-by: Desnes A. Nunes do Rosario <desnesn@linux.ibm.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/ibm/ibmvnic.c

index a4579b3401204fe0698baf65a79842922112b4ee..6aa6ff89a76511ff840e545e3bd0dc9ec5c4faff 100644 (file)
@@ -4708,14 +4708,6 @@ static int handle_login_rsp(union ibmvnic_crq *login_rsp_crq,
                return 0;
        }
 
-       if (adapter->failover_pending) {
-               adapter->init_done_rc = -EAGAIN;
-               netdev_dbg(netdev, "Failover pending, ignoring login response\n");
-               complete(&adapter->init_done);
-               /* login response buffer will be released on reset */
-               return 0;
-       }
-
        netdev->mtu = adapter->req_mtu - ETH_HLEN;
 
        netdev_dbg(adapter->netdev, "Login Response Buffer:\n");