diff options
author | Paolo Abeni <pabeni@redhat.com> | 2016-04-14 18:39:39 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2016-04-18 14:36:26 -0400 |
commit | 2a2bbf170054e2525f11e08bb36d4027d76b7bff (patch) | |
tree | 7190ee48c0ec5310fef9d7380019a5cd0ab5e634 /net/core/ethtool.c | |
parent | 110361f41c17d1f565e2fd03a0af044c29e6513a (diff) | |
download | linux-stable-2a2bbf170054e2525f11e08bb36d4027d76b7bff.tar.gz linux-stable-2a2bbf170054e2525f11e08bb36d4027d76b7bff.tar.bz2 linux-stable-2a2bbf170054e2525f11e08bb36d4027d76b7bff.zip |
tun: don't require serialization lock on tx
The current tun_net_xmit() implementation don't need any external
lock since it relies on rcu protection for the tun data structure
and on socket queue lock for skb queuing.
This patch set the NETIF_F_LLTX feature bit in the tun device, so
that on xmit, in absence of qdisc, no serialization lock is acquired
by the caller.
The user space can remove the default tun qdisc with:
tc qdisc replace dev <tun device name> root noqueue
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
Acked-by: Hannes Frederic Sowa <hannes@stressinduktion.org>
Acked-by: Eric Dumazet <edumazet@google.com>
Acked-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/core/ethtool.c')
0 files changed, 0 insertions, 0 deletions