]> git.baikalelectronics.ru Git - kernel.git/commit
add support of IFF_XMIT_DST_RELEASE bit in vlan
authorVadim Fedorenko <vfedorenko@yandex-team.ru>
Thu, 2 Nov 2017 12:49:08 +0000 (15:49 +0300)
committerDavid S. Miller <davem@davemloft.net>
Sat, 4 Nov 2017 13:33:06 +0000 (22:33 +0900)
commitaf28c363f2f4c271b7397697d01fc13d8b313e45
treeb87648881864fac1f099712b10b8a32f2b19d2fd
parentf402a80e7b29b00ce78c77431b697aa75ff02753
add support of IFF_XMIT_DST_RELEASE bit in vlan

Some time ago Eric Dumazet suggested a "hack the IFF_XMIT_DST_RELEASE
flag on the vlan netdev". But the last comment was "does not support
properly bonding/team.(If the real_dev->privflags IFF_XMIT_DST_RELEASE
bit changes, we want to update all the vlans at the same time )"

I've extended that patch to support changes of IFF_XMIT_DST_RELEASE in
bonding/team.
Both bonding and team call netdev_change_features() after recalculation
of features including priv_flags IFF_XMIT_DST_RELEASE bit. So the only
thing needed to support is to recheck this bit in
vlan_transfer_features().

Suggested-by: Eric Dumazet <eric.dumazet@gmail.com>
Signed-off-by: Vadim Fedorenko <vfedorenko@yandex-team.ru>
Reviewed-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/8021q/vlan.c
net/8021q/vlan_netlink.c