netpoll: Respect NETIF_F_LLTX
authorEric W. Biederman <ebiederm@xmission.com>
Thu, 27 Mar 2014 22:42:20 +0000 (15:42 -0700)
committerDavid S. Miller <davem@davemloft.net>
Sat, 29 Mar 2014 21:58:37 +0000 (17:58 -0400)
commit5efeac44cfca62f66a1b2919fc8ec7f7c726d15b
treeb4d7d338f3ace293b905014afc70afc3189a89ff
parent080b3c19a4ffe4677d7449880f4d0cea07182474
netpoll: Respect NETIF_F_LLTX

Stop taking the transmit lock when a network device has specified
NETIF_F_LLTX.

If no locks needed to trasnmit a packet this is the ideal scenario for
netpoll as all packets can be trasnmitted immediately.

Even if some locks are needed in ndo_start_xmit skipping any unnecessary
serialization is desirable for netpoll as it makes it more likely a
debugging packet may be trasnmitted immediately instead of being
deferred until later.

Signed-off-by: "Eric W. Biederman" <ebiederm@xmission.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/linux/netdevice.h
net/core/netpoll.c