summaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/ibm
diff options
context:
space:
mode:
authorNathan Fontenot <nfont@linux.vnet.ibm.com>2017-06-13 02:47:45 +0200
committerDavid S. Miller <davem@davemloft.net>2017-06-13 18:53:36 +0200
commit61d3e1d9bc2a1910d773cbf4ed6f587a7a6166b5 (patch)
treedbfae9a751734a22997470be0f17c705284a8355 /drivers/net/ethernet/ibm
parentibmvnic: Client-initiated failover (diff)
downloadlinux-61d3e1d9bc2a1910d773cbf4ed6f587a7a6166b5.tar.xz
linux-61d3e1d9bc2a1910d773cbf4ed6f587a7a6166b5.zip
ibmvnic: Remove netdev notify for failover resets
When handling a driver reset due to a failover of the backing server on the vios, doing the netdev_notify_peers() can cause network traffic to stall or halt. Remove the netdev notify call for failover resets. Signed-off-by: Nathan Fontenot <nfont@linux.vnet.ibm.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/ibm')
-rw-r--r--drivers/net/ethernet/ibm/ibmvnic.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/net/ethernet/ibm/ibmvnic.c b/drivers/net/ethernet/ibm/ibmvnic.c
index fd3ef3005fb0..59ea7a5ae776 100644
--- a/drivers/net/ethernet/ibm/ibmvnic.c
+++ b/drivers/net/ethernet/ibm/ibmvnic.c
@@ -1364,7 +1364,9 @@ static int do_reset(struct ibmvnic_adapter *adapter,
for (i = 0; i < adapter->req_rx_queues; i++)
napi_schedule(&adapter->napi[i]);
- netdev_notify_peers(netdev);
+ if (adapter->reset_reason != VNIC_RESET_FAILOVER)
+ netdev_notify_peers(netdev);
+
return 0;
}