[PATCHv2-RFC 0/6] tun zerocopy support

From: Michael S. Tsirkin
Date: Wed May 16 2012 - 17:36:14 EST


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
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/