Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1697835

[PATCH net-next 0/3] XDP support for tap

From Jason Wang <jasowang@redhat.com>
Newsgroups linux.kernel
Subject [PATCH net-next 0/3] XDP support for tap
Date 2017-07-27 11:30 +0200
Message-ID <u7Nhf-4j3-1@gated-at.bofh.it> (permalink)
Organization linux.* mail to news gateway

Show all headers | View raw


Hi all:

This series tries to implement XDP support for tap. Two path were
implemented:

- fast path: small & non-gso packet, For performance reason we do it
  at page level and use build_skb() to create skb if necessary.
- slow path: big or gso packet, we don't want to lose the capability
  compared to generic XDP, so we export some generic xdp helpers and
  do it after skb was created.

xdp1 shows about 47% improvement.

Please review.

Jason Wang (3):
  tap: use build_skb() for small packet
  net: export some generic xdp helpers
  tap: XDP support

 drivers/net/tun.c         | 247 ++++++++++++++++++++++++++++++++++++++++++----
 include/linux/netdevice.h |   2 +
 net/core/dev.c            |  14 +--
 3 files changed, 236 insertions(+), 27 deletions(-)

-- 
2.7.4

Back to linux.kernel | Previous | NextNext in thread | Find similar | Unroll thread


Thread

[PATCH net-next 0/3] XDP support for tap Jason Wang <jasowang@redhat.com> - 2017-07-27 11:30 +0200
  [PATCH net-next 1/3] tap: use build_skb() for small packet Jason Wang <jasowang@redhat.com> - 2017-07-27 11:30 +0200
  [PATCH net-next 2/3] net: export some generic xdp helpers Jason Wang <jasowang@redhat.com> - 2017-07-27 11:30 +0200
  [PATCH net-next 3/3] tap: XDP support Jason Wang <jasowang@redhat.com> - 2017-07-27 11:30 +0200
    Re: [PATCH net-next 3/3] tap: XDP support Jason Wang <jasowang@redhat.com> - 2017-07-28 05:30 +0200
      Re: [PATCH net-next 3/3] tap: XDP support "Michael S. Tsirkin" <mst@redhat.com> - 2017-07-28 05:50 +0200
        Re: [PATCH net-next 3/3] tap: XDP support Jakub Kicinski <kubakici@wp.pl> - 2017-07-28 06:00 +0200
        Re: [PATCH net-next 3/3] tap: XDP support Jason Wang <jasowang@redhat.com> - 2017-07-28 06:00 +0200
          Re: [PATCH net-next 3/3] tap: XDP support "Michael S. Tsirkin" <mst@redhat.com> - 2017-07-28 06:10 +0200
        Re: [PATCH net-next 3/3] tap: XDP support Daniel Borkmann <daniel@iogearbox.net> - 2017-07-28 17:20 +0200
    Re: [PATCH net-next 3/3] tap: XDP support Jakub Kicinski <kubakici@wp.pl> - 2017-07-28 05:30 +0200

csiph-web