net: hns3: add support for setting VF trust
This patch adds supports for setting VF trust by host. If specified VF is trusted, then it can enable promisc(include allmulti mode). If a trusted VF enabled promisc, and being untrusted, host will disable promisc mode for this VF. For VF will update its promisc mode from set_rx_mode now, so it's unnecessary to set broadcst promisc mode when initialization or reset. Signed-off-by:Jian Shen <shenjian15@huawei.com> Signed-off-by:
Huazhong Tan <tanhuazhong@huawei.com> Signed-off-by:
Jakub Kicinski <jakub.kicinski@netronome.com>
Showing
- drivers/net/ethernet/hisilicon/hns3/hclge_mbx.h 1 addition, 0 deletionsdrivers/net/ethernet/hisilicon/hns3/hclge_mbx.h
- drivers/net/ethernet/hisilicon/hns3/hnae3.h 4 additions, 0 deletionsdrivers/net/ethernet/hisilicon/hns3/hnae3.h
- drivers/net/ethernet/hisilicon/hns3/hns3_enet.c 11 additions, 0 deletionsdrivers/net/ethernet/hisilicon/hns3/hns3_enet.c
- drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_cmd.h 0 additions, 3 deletionsdrivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_cmd.h
- drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c 51 additions, 9 deletionsdrivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
- drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.h 5 additions, 3 deletionsdrivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.h
- drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_mbx.c 31 additions, 5 deletionsdrivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_mbx.c
- drivers/net/ethernet/hisilicon/hns3/hns3vf/hclgevf_main.c 14 additions, 20 deletionsdrivers/net/ethernet/hisilicon/hns3/hns3vf/hclgevf_main.c
- drivers/net/ethernet/hisilicon/hns3/hns3vf/hclgevf_mbx.c 12 additions, 0 deletionsdrivers/net/ethernet/hisilicon/hns3/hns3vf/hclgevf_mbx.c
Please register or sign in to comment