]> git.baikalelectronics.ru Git - kernel.git/commit
ibmvnic: Initialize SCRQ's during login renegotiation
authorThomas Falcon <tlfalcon@linux.vnet.ibm.com>
Tue, 1 Aug 2017 20:04:36 +0000 (15:04 -0500)
committerDavid S. Miller <davem@davemloft.net>
Wed, 2 Aug 2017 17:47:45 +0000 (10:47 -0700)
commit366f620f5df835d31288c0eb0f06a6efa2b70fdc
tree4fe5102645ec82dae67e485b6b335ff3f1756334
parent30429408eebe0516e293b5ea668a7e03297bba83
ibmvnic: Initialize SCRQ's during login renegotiation

SCRQ resources are freed during renegotiation, but they are not
re-allocated afterwards due to some changes in the initialization
process. Fix that by re-allocating the memory after renegotation.

SCRQ's can also be freed if a server capabilities request fails.
If this were encountered during a device reset for example,
SCRQ's may not be re-allocated. This operation is not necessary
anymore so remove it.

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