tuntap: XDP_TX can use native XDP
authorJason Wang <jasowang@redhat.com>
Wed, 14 Mar 2018 03:23:40 +0000 (11:23 +0800)
committerDavid S. Miller <davem@davemloft.net>
Wed, 14 Mar 2018 17:20:48 +0000 (13:20 -0400)
commit59655a5b6c837e392e873629591069c898585592
tree0088c7be13366a70f1a87ace645447a9a97a020e
parent815df9ac6c993c526c6ef82d970890a1f4b51f2f
tuntap: XDP_TX can use native XDP

Now we have ndo_xdp_xmit, switch to use it instead of the slow generic
XDP TX routine. XDP_TX on TAP gets ~20% improvements from ~1.5Mpps to
~1.8Mpps on 2.60GHz Core(TM) i7-5600U.

Signed-off-by: Jason Wang <jasowang@redhat.com>
Acked-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/tun.c