Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit c3e53b9a authored by Thomas Falcon's avatar Thomas Falcon Committed by David S. Miller
Browse files

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: default avatarThomas Falcon <tlfalcon@linux.vnet.ibm.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 7e9191c5
Loading
Loading
Loading
Loading
+1 −0
Original line number Original line Diff line number Diff line
@@ -383,6 +383,7 @@ static int reset_rx_pools(struct ibmvnic_adapter *adapter)
		atomic_set(&rx_pool->available, 0);
		atomic_set(&rx_pool->available, 0);
		rx_pool->next_alloc = 0;
		rx_pool->next_alloc = 0;
		rx_pool->next_free = 0;
		rx_pool->next_free = 0;
		rx_pool->active = 1;
	}
	}


	return 0;
	return 0;