[net-next,0/2] XDP transmission for tuntap
mbox series

Message ID 1514541604-12728-1-git-send-email-jasowang@redhat.com
Headers show
Series
  • XDP transmission for tuntap
Related show

Message

Jason Wang Dec. 29, 2017, 10 a.m. UTC
Hi all:

This series tries to implement XDP transmission (ndo_xdp_xmit) for
tuntap. Pointer ring was used for queuing both XDP buffers and
sk_buff, this is done by encoding the type into lowest bit of the
pointer and storin XDP metadata in the headroom of XDP buff.

Tests gets 3.05 Mpps when doing xdp_redirect_map from ixgbe to VM
(testpmd + virtio-net in guest).

Please review.

Thanks

Jason Wang (2):
  tun/tap: use ptr_ring instead of skb_array
  tuntap: XDP transmission

 drivers/net/tap.c      |  41 ++++-----
 drivers/net/tun.c      | 233 ++++++++++++++++++++++++++++++++++++++-----------
 drivers/vhost/net.c    |  52 ++++++-----
 include/linux/if_tap.h |   6 +-
 include/linux/if_tun.h |  21 ++++-
 5 files changed, 258 insertions(+), 95 deletions(-)