]> git.baikalelectronics.ru Git - kernel.git/commit
ibmvnic: Clean actual number of RX or TX pools
authorThomas Falcon <tlfalcon@linux.vnet.ibm.com>
Fri, 20 Apr 2018 19:25:32 +0000 (14:25 -0500)
committerDavid S. Miller <davem@davemloft.net>
Mon, 23 Apr 2018 01:13:30 +0000 (21:13 -0400)
commit5f34f518203bfad63011d3591c8296da8b5faf41
tree803aa75c2f4e9ab169f09ee2f8a43620610feb17
parent3e23ac234aafdb8f4ceb061616795952eef6555d
ibmvnic: Clean actual number of RX or TX pools

Avoid using value stored in the login response buffer when
cleaning TX and RX buffer pools since these could be inconsistent
depending on the device state. Instead use the field in the driver's
private data that tracks the number of active pools.

Signed-off-by: Thomas Falcon <tlfalcon@linux.vnet.ibm.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/ibm/ibmvnic.c