]> git.baikalelectronics.ru Git - kernel.git/commit
net: hns3: configure promisc mode for VF asynchronously
authorJian Shen <shenjian15@huawei.com>
Mon, 24 May 2021 09:30:42 +0000 (17:30 +0800)
committerDavid S. Miller <davem@davemloft.net>
Mon, 24 May 2021 20:24:09 +0000 (13:24 -0700)
commit76e93adc379d9881d066400752d1c10a7c615003
tree0f51777f03d54f98b09fcce3a358c4e1ccd01978
parent83eb46a4790d4380907e19098f5549f5350be615
net: hns3: configure promisc mode for VF asynchronously

Currently, when host set VF untrusted, the driver will disable
the promisc mode of VF. It may be conflicted when the VF requests
the host to set promisc mode. So refactor it by changing promisc
mode for VF asynchronously. With this change, the promisc mode of
VF can be restored when the VF being trusted again.

Signed-off-by: Jian Shen <shenjian15@huawei.com>
Signed-off-by: Huazhong Tan <tanhuazhong@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.h
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_mbx.c