Commit c3f22415 authored by Thomas Falcon's avatar Thomas Falcon Committed by David S. Miller

ibmvnic: Mark NAPI flag as disabled when released

Set adapter NAPI state as disabled if they are removed. This will allow
them to be enabled again if reallocated in case of a hard reset.
Signed-off-by: default avatarThomas Falcon <tlfalcon@linux.vnet.ibm.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 180f848b
...@@ -789,6 +789,7 @@ static void release_napi(struct ibmvnic_adapter *adapter) ...@@ -789,6 +789,7 @@ static void release_napi(struct ibmvnic_adapter *adapter)
kfree(adapter->napi); kfree(adapter->napi);
adapter->napi = NULL; adapter->napi = NULL;
adapter->num_active_rx_napi = 0; adapter->num_active_rx_napi = 0;
adapter->napi_enabled = false;
} }
static int ibmvnic_login(struct net_device *netdev) static int ibmvnic_login(struct net_device *netdev)
......
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