]> git.baikalelectronics.ru Git - kernel.git/commit
net: hns3: don't allow user to change vlan filter state
authorJian Shen <shenjian15@huawei.com>
Sat, 2 Feb 2019 14:39:35 +0000 (22:39 +0800)
committerDavid S. Miller <davem@davemloft.net>
Sat, 2 Feb 2019 16:24:09 +0000 (08:24 -0800)
commitd9fa3f748c3a1e31b4e46da285f50ffa3d1cd34b
tree066d11bd434930f23ad17a47a2dedd71772869cd
parent3678caf18b3de6e5197d41b8e7dc49c9a0fe044c
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>
drivers/net/ethernet/hisilicon/hns3/hns3_enet.c