]> git.baikalelectronics.ru Git - kernel.git/commit
ibmvnic: Fix error handling when registering long-term-mapped buffers
authorThomas Falcon <tlfalcon@linux.vnet.ibm.com>
Wed, 21 Jun 2017 19:53:01 +0000 (14:53 -0500)
committerDavid S. Miller <davem@davemloft.net>
Thu, 22 Jun 2017 15:31:34 +0000 (11:31 -0400)
commit9ab83e237e6c2d375586156f5084909a7b035251
tree70e34b48f7858b459ab4e4291452cde9ed4c958d
parent3b9c53449cf6d5839a3667fd20bd3f0e0d2b0ff0
ibmvnic: Fix error handling when registering long-term-mapped buffers

The patch stores the return code of the REQUEST_MAP_RSP sub-CRQ command
in the private data structure, where it can be later checked during
device open or a reset.

In the case of a reset, the mapping request to the vNIC Server may fail,
especially in the case of a partition migration. The driver attempts to
handle this by re-allocating the buffer and re-sending the mapping request.

The original error handling implementation was removed. The separate
function handling the REQUEST_MAP response message was also removed,
since it is now simple enough to be handled in the ibmvnic_handle_crq
function.

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
drivers/net/ethernet/ibm/ibmvnic.h