summaryrefslogtreecommitdiff
path: root/scripts/patch-kernel
diff options
context:
space:
mode:
authorHuazhong Tan <tanhuazhong@huawei.com>2019-08-01 06:55:43 +0300
committerDavid S. Miller <davem@davemloft.net>2019-08-01 20:32:13 +0300
commit6b428b4fbf986077d218287dd6f805f371cdf48f (patch)
tree84948689e6dc4bab827ba86d242ef3b15b6c4579 /scripts/patch-kernel
parent6e6e7680630c1b80042a79f62509aab5f49e3e88 (diff)
downloadlinux-6b428b4fbf986077d218287dd6f805f371cdf48f.tar.xz
net: hns3: fix some reset handshake issue
Currently, the driver sets handshake status to tell the hardware that the driver have downed the netdev and it can continue with reset process. The driver will clear the handshake status when re-initializing the CMDQ, and does not recover this status when reset fail, which may cause the hardware to wait for the handshake status to be set and not being able to continue with reset process. So this patch delays clearing handshake status just before UP, and recovers this status when reset fail. BTW, this patch adds a new function hclge(vf)_reset_handshake() to deal with the reset handshake issue, and renames HCLGE(VF)_NIC_CMQ_ENABLE to HCLGE(VF)_NIC_SW_RST_RDY which represents this register bit more accurately. Fixes: ada13ee3db7b ("net: hns3: add handshake with hardware while doing reset") Signed-off-by: Huazhong Tan <tanhuazhong@huawei.com> Reviewed-by: Peng Li <lipeng321@huawei.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'scripts/patch-kernel')
0 files changed, 0 insertions, 0 deletions