linux_dsm_epyc7002/drivers/net/ethernet/hisilicon/hns3/hns3vf
Jian Shen 92f11ea177 net: hns3: fix set port based VLAN issue for VF
In original codes, ndo_set_vf_vlan() in hns3 driver was implemented
wrong. It adds or removes VLAN into VLAN filter for VF, but VF is
unaware of it.

This patch fixes it. When VF loads up, it firstly queries the port
based VLAN state from PF. When user change port based VLAN state
from PF, PF firstly checks whether the VF is alive. If the VF is
alive, then PF notifies the VF the modification; otherwise PF
configure the port based VLAN state directly.

Fixes: 46a3df9f97 ("net: hns3: Add HNS3 Acceleration Engine & Compatibility Layer Support")
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>
2019-04-14 13:47:35 -07:00
..
hclgevf_cmd.c net: hns3: add error handler for initializing command queue 2019-04-08 15:30:49 -07:00
hclgevf_cmd.h net: hns3: Enable HW GRO for Rev B(=0x21) HNS3 hardware 2018-11-15 09:44:46 -08:00
hclgevf_main.c net: hns3: fix set port based VLAN issue for VF 2019-04-14 13:47:35 -07:00
hclgevf_main.h net: hns3: fix set port based VLAN issue for VF 2019-04-14 13:47:35 -07:00
hclgevf_mbx.c net: hns3: fix set port based VLAN issue for VF 2019-04-14 13:47:35 -07:00
Makefile net: hns3: fix compile error 2019-03-27 22:47:58 -07:00