]> git.baikalelectronics.ru Git - kernel.git/commit
vlan: turn on unicast filtering on vlan device
authorZhang Shengju <zhangshengju@cmss.chinamobile.com>
Thu, 18 Feb 2016 10:00:11 +0000 (10:00 +0000)
committerDavid S. Miller <davem@davemloft.net>
Mon, 22 Feb 2016 02:54:05 +0000 (21:54 -0500)
commitf70c6f6221a474ed9c819bc1adfd245bdbf4e99b
tree7c209b4685df3ec5fbbf1f78c1f658c0e9927130
parent017c4e3ff996a55aa8d11457e613a977e82f9e18
vlan: turn on unicast filtering on vlan device

Currently vlan device inherits unicast filtering flag from underlying
device. If underlying device doesn't support unicast filter, this will
put vlan device into promiscuous mode when it's stacked.

Tun on IFF_UNICAST_FLT on the vlan device in any case so that it does
not go into promiscuous mode needlessly. If underlying device does not
support unicast filtering, that device will enter promiscuous mode.

Signed-off-by: Zhang Shengju <zhangshengju@cmss.chinamobile.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/8021q/vlan.c
net/8021q/vlan_dev.c