]> git.baikalelectronics.ru Git - kernel.git/commit
ibmvnic: Modify buffer size and number of queues on failover
authorJohn Allen <jallen@linux.vnet.ibm.com>
Thu, 18 Jan 2018 22:26:31 +0000 (16:26 -0600)
committerDavid S. Miller <davem@davemloft.net>
Mon, 22 Jan 2018 20:46:55 +0000 (15:46 -0500)
commit70f82b80dd9d953d11e90b214cc883fe5808c702
treecd848bdd315319c4324631b77635fada13cabbf1
parent11a1a76e085fd3257f004fe5fd2db92ab08f1b02
ibmvnic: Modify buffer size and number of queues on failover

Using newer backing devices can cause the required padding at the end of
buffer as well as the number of queues to change after a failover.
Since we currently assume that these values never change, after a
failover to a backing device with different capabilities, we can get
errors from the vnic server, attempt to free long term buffers that are
no longer there, or not free long term buffers that should be freed.

This patch resolves the issue by checking whether any of these values
change, and if so perform the necessary re-allocations.

Signed-off-by: John Allen <jallen@linux.vnet.ibm.com>
Reviewed-by: Nathan Fontenot <nfont@linux.vnet.ibm.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/ibm/ibmvnic.c
drivers/net/ethernet/ibm/ibmvnic.h