]> git.baikalelectronics.ru Git - kernel.git/commit
net: hns3: fix rx VLAN offload state inconsistent issue
authorJian Shen <shenjian15@huawei.com>
Mon, 19 Jul 2021 09:13:08 +0000 (17:13 +0800)
committerJakub Kicinski <kuba@kernel.org>
Tue, 20 Jul 2021 11:12:50 +0000 (13:12 +0200)
commit63377b6cd068e3ae770dac20e3cdb78c859c30f0
treedb151dad698d03c539d0da7d84a78e1a52460de3
parentbbf6c765f4ada92dd1c55216f03931f5e8310478
net: hns3: fix rx VLAN offload state inconsistent issue

Currently, VF doesn't enable rx VLAN offload when initializating,
and PF does it for VFs. If user disable the rx VLAN offload for
VF with ethtool -K, and reload the VF driver, it may cause the
rx VLAN offload state being inconsistent between hardware and
software.

Fixes it by enabling rx VLAN offload when VF initializing.

Fixes: efa29b6d502b ("net: hns3: Add HNS3 VF HCL(Hardware Compatibility Layer) Support")
Signed-off-by: Jian Shen <shenjian15@huawei.com>
Signed-off-by: Guangbin Huang <huangguangbin2@huawei.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/hisilicon/hns3/hns3vf/hclgevf_main.c