Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752454Ab0LJJ6D (ORCPT ); Fri, 10 Dec 2010 04:58:03 -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 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 Content-Type: text/plain; charset="UTF-8" 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) Content-Transfer-Encoding: 7bit X-Content-Scanned: Fidelis XPS MAILER Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 928 Lines: 27 Signed-off-by: Shirley Ma --- include/linux/netdevice.h | 3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) 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 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/