summaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.h
diff options
context:
space:
mode:
authorJian Shen2018-10-05 19:03:25 +0200
committerDavid S. Miller2018-10-05 21:01:54 +0200
commitf05e21097121b24cad92b15b570386bc68574d68 (patch)
tree10a94efb5c1aa0c01e2d5888ddc53e421019db9f /drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.h
parentnet: hns3: Remove the default mask configuration for mac vlan table (diff)
downloadkernel-qcow2-linux-f05e21097121b24cad92b15b570386bc68574d68.tar.gz
kernel-qcow2-linux-f05e21097121b24cad92b15b570386bc68574d68.tar.xz
kernel-qcow2-linux-f05e21097121b24cad92b15b570386bc68574d68.zip
net: hns3: Clear mac vlan table entries when unload driver or function reset
In original codes, the mac vlan table entries are not cleared when unload hns3 driver. The dirty mac vlan table entries will make the result of looking up mac vlan table being unexpected. When doing core reset or global reset, the firmware will clear all the tables for driver, and driver shouldn't send any commands to firmware during reset. But when doing function reset, the driver needs to clear the tables itself. This patch clears the mac vlan table entries for each client when unload driver or reset. Signed-off-by: Jian Shen <shenjian15@huawei.com> Signed-off-by: Salil Mehta <salil.mehta@huawei.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.h')
0 files changed, 0 insertions, 0 deletions