Commit 6f4d6dc1 authored by Breno Leitao's avatar Breno Leitao Committed by David S. Miller

ehea: Fix a DLPAR bug on ehea_rereg_mrs().

We are currently continuing if ehea_restart_qps() fails, when we
do a memory DLPAR (remove or add more memory to the system).

This patch just let the NAPI disabled if the ehea_restart_qps()
fails.
Signed-off-by: default avatarBreno Leitao <leitao@linux.vnet.ibm.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent c6914a6f
...@@ -3040,11 +3040,14 @@ static void ehea_rereg_mrs(void) ...@@ -3040,11 +3040,14 @@ static void ehea_rereg_mrs(void)
if (dev->flags & IFF_UP) { if (dev->flags & IFF_UP) {
mutex_lock(&port->port_lock); mutex_lock(&port->port_lock);
port_napi_enable(port);
ret = ehea_restart_qps(dev); ret = ehea_restart_qps(dev);
check_sqs(port); if (!ret) {
if (!ret) check_sqs(port);
port_napi_enable(port);
netif_wake_queue(dev); netif_wake_queue(dev);
} else {
netdev_err(dev, "Unable to restart QPS\n");
}
mutex_unlock(&port->port_lock); mutex_unlock(&port->port_lock);
} }
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment