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)
commit9d917c207d6b212eb5fb4d8ca31826e5b75b4d28
treeb87648881864fac1f099712b10b8a32f2b19d2fd
parent1ec6e53029e7fddd73bb92500a2dca05fc393e8d
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