[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20210406034752.12840-1-drt@linux.ibm.com>
Date: Mon, 5 Apr 2021 22:47:52 -0500
From: Dany Madden <drt@...ux.ibm.com>
To: davem@...emloft.net
Cc: netdev@...r.kernel.org, sukadev@...ux.ibm.com, ljp@...ux.ibm.com,
ricklind@...ux.ibm.com, Dany Madden <drt@...ux.ibm.com>
Subject: [PATCH] ibmvnic: Continue with reset if set link down failed
When an adapter is going thru a reset, it maybe in an unstable state that
makes a request to set link down fail. In such a case, the adapter needs
to continue on with reset to bring itself back to a stable state.
Fixes: ed651a10875f ("ibmvnic: Updated reset handling")
Signed-off-by: Dany Madden <drt@...ux.ibm.com>
---
drivers/net/ethernet/ibm/ibmvnic.c | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/drivers/net/ethernet/ibm/ibmvnic.c b/drivers/net/ethernet/ibm/ibmvnic.c
index 9c6438d3b3a5..e4f01a7099a0 100644
--- a/drivers/net/ethernet/ibm/ibmvnic.c
+++ b/drivers/net/ethernet/ibm/ibmvnic.c
@@ -1976,8 +1976,10 @@ static int do_reset(struct ibmvnic_adapter *adapter,
rtnl_unlock();
rc = set_link_state(adapter, IBMVNIC_LOGICAL_LNK_DN);
rtnl_lock();
- if (rc)
- goto out;
+ if (rc) {
+ netdev_dbg(netdev,
+ "Setting link down failed rc=%d. Continue anyway\n", rc);
+ }
if (adapter->state == VNIC_OPEN) {
/* When we dropped rtnl, ibmvnic_open() got
--
2.26.2
Powered by blists - more mailing lists