mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-27 10:25:05 +07:00
ibmvnic: handle inconsistent login with reset
Inconsistent login with the vnicserver is causing the device to be
removed. This does not give the device a chance to recover from error
state. This patch schedules a FATAL reset instead to bring the adapter
up.
Fixes: 032c5e8284
("Driver for IBM System i/p VNIC protocol")
Signed-off-by: Dany Madden <drt@linux.ibm.com>
Signed-off-by: Lijun Pan <ljp@linux.ibm.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
This commit is contained in:
parent
bd2d5c54dc
commit
31d6b40360
@ -4414,7 +4414,7 @@ static int handle_login_rsp(union ibmvnic_crq *login_rsp_crq,
|
|||||||
adapter->req_rx_add_queues !=
|
adapter->req_rx_add_queues !=
|
||||||
be32_to_cpu(login_rsp->num_rxadd_subcrqs))) {
|
be32_to_cpu(login_rsp->num_rxadd_subcrqs))) {
|
||||||
dev_err(dev, "FATAL: Inconsistent login and login rsp\n");
|
dev_err(dev, "FATAL: Inconsistent login and login rsp\n");
|
||||||
ibmvnic_remove(adapter->vdev);
|
ibmvnic_reset(adapter, VNIC_RESET_FATAL);
|
||||||
return -EIO;
|
return -EIO;
|
||||||
}
|
}
|
||||||
size_array = (u64 *)((u8 *)(adapter->login_rsp_buf) +
|
size_array = (u64 *)((u8 *)(adapter->login_rsp_buf) +
|
||||||
|
Loading…
Reference in New Issue
Block a user