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)
commit4d96f12a072c669d48dc3a2c6b539a9faeca138d
tree4fe5102645ec82dae67e485b6b335ff3f1756334
parentbed9ff165960921303a100228585f2d1691b42eb
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