diff options
author | Thomas Falcon <tlfalcon@linux.vnet.ibm.com> | 2017-06-14 23:50:05 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2017-06-15 14:28:59 -0400 |
commit | c3e53b9a3efe300a7864ab1ccfbae239d50d0002 (patch) | |
tree | b072dda808a6cca969852357cfc80eb117134761 /drivers/net/ethernet | |
parent | 7e9191c54a36c864b901ea8ce56dc42f10c2f5ae (diff) | |
download | blackbird-op-linux-c3e53b9a3efe300a7864ab1ccfbae239d50d0002.tar.gz blackbird-op-linux-c3e53b9a3efe300a7864ab1ccfbae239d50d0002.zip |
ibmvnic: Activate disabled RX buffer pools on reset
RX buffer pools are disabled while awaiting a device
reset if firmware indicates that the resource is closed.
This patch fixes a bug where pools were not being
subsequently enabled after the device reset, causing
the device to become inoperable.
Signed-off-by: Thomas Falcon <tlfalcon@linux.vnet.ibm.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet')
-rw-r--r-- | drivers/net/ethernet/ibm/ibmvnic.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/ethernet/ibm/ibmvnic.c b/drivers/net/ethernet/ibm/ibmvnic.c index 78fdd4f0e341..99c552a79e9d 100644 --- a/drivers/net/ethernet/ibm/ibmvnic.c +++ b/drivers/net/ethernet/ibm/ibmvnic.c @@ -383,6 +383,7 @@ static int reset_rx_pools(struct ibmvnic_adapter *adapter) atomic_set(&rx_pool->available, 0); rx_pool->next_alloc = 0; rx_pool->next_free = 0; + rx_pool->active = 1; } return 0; |