]> git.proxmox.com Git - mirror_ubuntu-kernels.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)
commit896d86959fee58113fc510c70cd8d10e82aa3e6a
treecd848bdd315319c4324631b77635fada13cabbf1
parentb589513e6354a5fd6934823b7fd66bffad41137a
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