From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Michael S. Tsirkin" Subject: [PATCHv2-RFC 0/6] tun zerocopy support Date: Thu, 17 May 2012 00:15:49 +0300 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: Jason Wang , eric.dumazet@gmail.com, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, ebiederm@xmission.com, davem@davemloft.net To: "Michael S. Tsirkin" Return-path: Content-Disposition: inline Sender: linux-kernel-owner@vger.kernel.org List-Id: netdev.vger.kernel.org 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