From patchwork Fri Dec 10 09:57:55 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Shirley Ma X-Patchwork-Id: 397902 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter1.kernel.org (8.14.4/8.14.3) with ESMTP id oBA9wYjt007178 for ; Fri, 10 Dec 2010 09:58:34 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752171Ab0LJJ6B (ORCPT ); Fri, 10 Dec 2010 04:58:01 -0500 Received: from e5.ny.us.ibm.com ([32.97.182.145]:43470 "EHLO e5.ny.us.ibm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751114Ab0LJJ6A (ORCPT ); Fri, 10 Dec 2010 04:58:00 -0500 Received: from d01dlp02.pok.ibm.com (d01dlp02.pok.ibm.com [9.56.224.85]) by e5.ny.us.ibm.com (8.14.4/8.13.1) with ESMTP id oBA9ZjhL026654; Fri, 10 Dec 2010 04:35:45 -0500 Received: from d01relay01.pok.ibm.com (d01relay01.pok.ibm.com [9.56.227.233]) by d01dlp02.pok.ibm.com (Postfix) with ESMTP id 9F9974DE803E; Fri, 10 Dec 2010 04:56:03 -0500 (EST) Received: from d01av02.pok.ibm.com (d01av02.pok.ibm.com [9.56.224.216]) by d01relay01.pok.ibm.com (8.13.8/8.13.8/NCO v10.0) with ESMTP id oBA9vx4C386676; Fri, 10 Dec 2010 04:57:59 -0500 Received: from d01av02.pok.ibm.com (loopback [127.0.0.1]) by d01av02.pok.ibm.com (8.14.4/8.13.1/NCO v10.0 AVout) with ESMTP id oBA9vwdv009458; Fri, 10 Dec 2010 07:57:59 -0200 Received: from [9.65.207.31] (sig-9-65-207-31.mts.ibm.com [9.65.207.31]) by d01av02.pok.ibm.com (8.14.4/8.13.1/NCO v10.0 AVin) with ESMTP id oBA9vuX9009418; Fri, 10 Dec 2010 07:57:57 -0200 Subject: [RFC PATCH V2 2/5] Add a new device flag for zero copy From: Shirley Ma To: Avi Kivity , Arnd Bergmann , mst@redhat.com Cc: xiaohui.xin@intel.com, netdev@vger.kernel.org, kvm@vger.kernel.org, linux-kernel@vger.kernel.org Date: Fri, 10 Dec 2010 01:57:55 -0800 Message-ID: <1291975075.2167.31.camel@localhost.localdomain> Mime-Version: 1.0 X-Mailer: Evolution 2.28.3 (2.28.3-1.fc12) X-Content-Scanned: Fidelis XPS MAILER Sender: kvm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: kvm@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.3 (demeter1.kernel.org [140.211.167.41]); Fri, 10 Dec 2010 09:58:35 +0000 (UTC) diff --git a/include/linux/netdevice.h b/include/linux/netdevice.h index d8fd2c2..7207665 100644 --- a/include/linux/netdevice.h +++ b/include/linux/netdevice.h @@ -857,6 +857,9 @@ struct net_device { #define NETIF_F_NTUPLE (1 << 27) /* N-tuple filters supported */ #define NETIF_F_RXHASH (1 << 28) /* Receive hashing offload */ +/* bit 29 is for device to map userspace buffers -- zerocopy */ +#define NETIF_F_ZEROCOPY (1 << 29) + /* Segmentation offload features */ #define NETIF_F_GSO_SHIFT 16 #define NETIF_F_GSO_MASK 0x00ff0000