net: hns3: configure promisc mode for VF asynchronously
driver inclusion category: bugfix bugzilla: NA CVE: NA ---------------------------- 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 fix it by change promisc mode for VF asynchronously. With this change, the promisc mode of VF can be restored when the VF being trusted again. Fixes: 5c1f0ff21058 ("net: hns3: add support for setting VF trust") Signed-off-by:Jian Shen <shenjian15@huawei.com> Signed-off-by:
Yonglong Liu <liuyonglong@huawei.com> Reviewed-by:
li yongxin <liyongxin1@huawei.com> Signed-off-by:
Yang Yingliang <yangyingliang@huawei.com>
Showing
- drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c 29 additions, 13 deletionsdrivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
- drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.h 4 additions, 2 deletionsdrivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.h
- drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_mbx.c 9 additions, 31 deletionsdrivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_mbx.c
Please register or sign in to comment