]> git.baikalelectronics.ru Git - kernel.git/commit
pktgen: be friendly to LLTX devices
authorDaniel Borkmann <dborkman@redhat.com>
Fri, 11 Apr 2014 11:22:00 +0000 (13:22 +0200)
committerDavid S. Miller <davem@davemloft.net>
Sat, 12 Apr 2014 05:59:38 +0000 (01:59 -0400)
commitcedd74b8ef83bc7e274fde2abe65cab5e5195b90
tree0d1b66aac812f1e2fa01f0e311e66d48dd747442
parent92446d840a2b4effca716b215f12c1d6a9231150
pktgen: be friendly to LLTX devices

Similarly to commit 57364bc3e2c5 ("packet: respect devices with
LLTX flag in direct xmit"), we can basically apply the very same
to pktgen. This will help testing against LLTX devices such as
dummy driver (or others), which only have a single netdevice txq
and would otherwise require locking their txq from pktgen side
while e.g. in dummy case, we would not need any locking. Fix this
by making use of HARD_TX_{UN,}LOCK API, so that NETIF_F_LLTX will
be respected.

Signed-off-by: Daniel Borkmann <dborkman@redhat.com>
Signed-off-by: Jesper Dangaard Brouer <brouer@redhat.com>
Cc: Eric Dumazet <edumazet@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/core/pktgen.c