netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH net-next 0/2] XDP transmission for tuntap
@ 2017-12-29 10:00 Jason Wang
  2017-12-29 10:00 ` [PATCH net-next 1/2] tun/tap: use ptr_ring instead of skb_array Jason Wang
  2017-12-29 10:00 ` [PATCH net-next 2/2] tuntap: XDP transmission Jason Wang
  0 siblings, 2 replies; 10+ messages in thread
From: Jason Wang @ 2017-12-29 10:00 UTC (permalink / raw)
  To: netdev, linux-kernel; +Cc: mst, jbrouer, Jason Wang

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(-)

-- 
2.7.4

^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2018-01-02  3:32 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-12-29 10:00 [PATCH net-next 0/2] XDP transmission for tuntap Jason Wang
2017-12-29 10:00 ` [PATCH net-next 1/2] tun/tap: use ptr_ring instead of skb_array Jason Wang
2017-12-29 10:00 ` [PATCH net-next 2/2] tuntap: XDP transmission Jason Wang
2017-12-29 12:32   ` Jesper Dangaard Brouer
2018-01-02  3:00     ` Jason Wang
2018-01-01  3:48   ` kbuild test robot
2018-01-01  3:55     ` Joe Perches
2018-01-02  3:32       ` Jason Wang
2018-01-01  4:09   ` kbuild test robot
2018-01-01  8:27   ` kbuild test robot

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).