mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-12-24 11:34:50 +08:00
net: hns3: don't allow user to change vlan filter state
When user disables vlan filter, and adds vlan device, it won't notify the driver the update the vlan filter. In this case, when user enables vlan filter again, the packets with new vlan tag will be filtered by vlan filter. Signed-off-by: Jian Shen <shenjian15@huawei.com> Signed-off-by: Peng Li <lipeng321@huawei.com> Signed-off-by: Huazhong Tan <tanhuazhong@huawei.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
f9f07091b4
commit
77af09c678
@ -1929,8 +1929,7 @@ static void hns3_set_default_feature(struct net_device *netdev)
|
||||
NETIF_F_GSO_UDP_TUNNEL_CSUM | NETIF_F_SCTP_CRC;
|
||||
|
||||
if (pdev->revision >= 0x21) {
|
||||
netdev->hw_features |= NETIF_F_HW_VLAN_CTAG_FILTER |
|
||||
NETIF_F_GRO_HW;
|
||||
netdev->hw_features |= NETIF_F_GRO_HW;
|
||||
netdev->features |= NETIF_F_GRO_HW;
|
||||
|
||||
if (!(h->flags & HNAE3_SUPPORT_VF)) {
|
||||
|
Loading…
Reference in New Issue
Block a user