team: refine IFF_XMIT_DST_RELEASE capability
authorJiri Pirko <jiri@resnulli.us>
Wed, 18 Jul 2012 07:39:38 +0000 (07:39 +0000)
committerDavid S. Miller <davem@davemloft.net>
Wed, 18 Jul 2012 18:28:46 +0000 (11:28 -0700)
commitdc9059512c09d09b99de6cd3a8bc842507934cbb
treeb74ea66d7e0b80a359082e080a8ff4c5d0504970
parentf150bd7f8cf742c4cdd0c929aa494ef72f7f5b13
team: refine IFF_XMIT_DST_RELEASE capability

Cloned patch of Eric Dumazet for bonding.

Some workloads greatly benefit of IFF_XMIT_DST_RELEASE capability
on output net device, avoiding dirtying dst refcount.

team currently disables IFF_XMIT_DST_RELEASE unconditionally.

If all ports have the IFF_XMIT_DST_RELEASE bit set, then
team dev can also have it in its priv_flags.

Signed-off-by: Jiri Pirko <jiri@resnulli.us>
Acked-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/team/team.c