diff mbox

[1/5,net-next] ibmvnic: Activate disabled RX buffer pools on reset

Message ID 1497497748-14075-1-git-send-email-tlfalcon@linux.vnet.ibm.com
State Changes Requested, archived
Delegated to: David Miller
Headers show

Commit Message

Thomas Falcon June 15, 2017, 3:35 a.m. UTC
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>

---
 drivers/net/ethernet/ibm/ibmvnic.c | 1 +
 1 file changed, 1 insertion(+)

Comments

David Miller June 15, 2017, 3:42 a.m. UTC | #1
Please always provide a proper "[PATCH 0/N ...] " header posting
explaining what the patch series is doing, how it is doing it, and why
it is doing it that way.

I am getting kind of tired asking people for this FWIW...
Thomas Falcon June 15, 2017, 3:47 a.m. UTC | #2
On 06/14/2017 10:42 PM, David Miller wrote:
> Please always provide a proper "[PATCH 0/N ...] " header posting
> explaining what the patch series is doing, how it is doing it, and why
> it is doing it that way.
>
> I am getting kind of tired asking people for this FWIW...
>
Sorry, I will send a v2 with a proper header patch shortly.  Thanks for the prompt feedback.
diff mbox

Patch

diff --git a/drivers/net/ethernet/ibm/ibmvnic.c b/drivers/net/ethernet/ibm/ibmvnic.c
index 7e585fd..000cd15 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;