Skip to content

Commit

Permalink
ehea: Fix a DLPAR bug on ehea_rereg_mrs().
Browse files Browse the repository at this point in the history
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: Breno Leitao <leitao@linux.vnet.ibm.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Breno Leitao authored and David S. Miller committed Apr 20, 2011
1 parent c6914a6 commit 6f4d6dc
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions drivers/net/ehea/ehea_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -3040,11 +3040,14 @@ static void ehea_rereg_mrs(void)

if (dev->flags & IFF_UP) {
mutex_lock(&port->port_lock);
port_napi_enable(port);
ret = ehea_restart_qps(dev);
check_sqs(port);
if (!ret)
if (!ret) {
check_sqs(port);
port_napi_enable(port);
netif_wake_queue(dev);
} else {
netdev_err(dev, "Unable to restart QPS\n");
}
mutex_unlock(&port->port_lock);
}
}
Expand Down

0 comments on commit 6f4d6dc

Please sign in to comment.