]> asedeno.scripts.mit.edu Git - linux.git/commit
net: hns3: clear command queue's registers when unloading VF driver
authorHuazhong Tan <tanhuazhong@huawei.com>
Wed, 20 Feb 2019 02:32:51 +0000 (10:32 +0800)
committerDavid S. Miller <davem@davemloft.net>
Fri, 22 Feb 2019 00:29:05 +0000 (16:29 -0800)
commit34f81f049e354082f638820afe5e59bbd243fb18
treeacfb0dbb09b205debed8f09a510c7822b786f89b
parent232d0d55fca6ab589d5267c74a376210f341d71e
net: hns3: clear command queue's registers when unloading VF driver

According to the hardware's description, the driver should clear
the command queue's registers when uloading VF driver. Otherwise,
these existing value may lead the IMP get into a wrong state.

Fixes: fedd0c15d288 ("net: hns3: Add HNS3 VF IMP(Integrated Management Proc) cmd interface")
Signed-off-by: Huazhong Tan <tanhuazhong@huawei.com>
Signed-off-by: Peng Li <lipeng321@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/hisilicon/hns3/hns3vf/hclgevf_cmd.c