]> git.baikalelectronics.ru Git - kernel.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)
commitec83740f907e38aaa108a54a84c1a70ba9665a27
treeacfb0dbb09b205debed8f09a510c7822b786f89b
parentc715a992e673c24759ac6db3be2addd5ca1b6c1d
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: 9fc9a0988963 ("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