netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCHv2-RFC 0/6] tun zerocopy support
@ 2012-05-16 21:15 Michael S. Tsirkin
  2012-05-16 21:15 ` [PATCHv2-RFC 1/6] skbuff: add an api to orphan frags Michael S. Tsirkin
                   ` (5 more replies)
  0 siblings, 6 replies; 7+ messages in thread
From: Michael S. Tsirkin @ 2012-05-16 21:15 UTC (permalink / raw)
  To: Michael S. Tsirkin
  Cc: Jason Wang, eric.dumazet, netdev, linux-kernel, ebiederm, davem

So this still triggers some failures under stress
but I thought it might be helpful to post here
since people expressed interest.

This uses some patches from Ian's patchset
to support zerocopy with tun.
We are still trying to figure out how to make
everything work properly with tcp but tun seems
easier, and it's helpful since not everyone can
use macvtap.

There's some code duplication between tun and macvtap
now: common code could move to net/core/datagram.c,
this patch does not do this yet.

-- 
MST


Michael S. Tsirkin (6):
  skbuff: add an api to orphan frags
  skbuff: convert to skb_orphan_frags
  skbuff: export skb_copy_ubufs
  tun: orphan frags on xmit
  net: orphan frags on receive
  tun: experimental zero copy tx support

 drivers/net/tun.c      |  134 ++++++++++++++++++++++++++++++++++++++++++++++--
 include/linux/skbuff.h |   16 ++++++
 net/core/dev.c         |    2 +
 net/core/skbuff.c      |   24 +++-----
 4 files changed, 156 insertions(+), 20 deletions(-)

-- 
MST

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

end of thread, other threads:[~2012-05-16 22:08 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-05-16 21:15 [PATCHv2-RFC 0/6] tun zerocopy support Michael S. Tsirkin
2012-05-16 21:15 ` [PATCHv2-RFC 1/6] skbuff: add an api to orphan frags Michael S. Tsirkin
2012-05-16 21:16 ` [PATCHv2-RFC 2/6] skbuff: convert to skb_orphan_frags Michael S. Tsirkin
2012-05-16 21:16 ` [PATCHv2-RFC 3/6] skbuff: export skb_copy_ubufs Michael S. Tsirkin
2012-05-16 21:16 ` [PATCHv2-RFC 4/6] tun: orphan frags on xmit Michael S. Tsirkin
2012-05-16 21:16 ` [PATCHv2-RFC 5/6] net: orphan frags on receive Michael S. Tsirkin
2012-05-16 21:16 ` [PATCHv2-RFC 6/6] tun: experimental zero copy tx support Michael S. Tsirkin

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