OSDN Git Service

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)
commit1e6e76101fd9f51319a742991778bdc3b2d992d9
tree0f51777f03d54f98b09fcce3a358c4e1ccd01978
parent62f148d8dde6239199af49e52ae43d0820765a65
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