From patchwork Fri Dec 10 09:55:24 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Shirley Ma X-Patchwork-Id: 397882 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 oBA9u23O006979 for ; Fri, 10 Dec 2010 09:56:03 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751769Ab0LJJzb (ORCPT ); Fri, 10 Dec 2010 04:55:31 -0500 Received: from e3.ny.us.ibm.com ([32.97.182.143]:51210 "EHLO e3.ny.us.ibm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751115Ab0LJJza (ORCPT ); Fri, 10 Dec 2010 04:55:30 -0500 Received: from d01dlp01.pok.ibm.com (d01dlp01.pok.ibm.com [9.56.224.56]) by e3.ny.us.ibm.com (8.14.4/8.13.1) with ESMTP id oBA9bREK006219; Fri, 10 Dec 2010 04:37:28 -0500 Received: from d01relay04.pok.ibm.com (d01relay04.pok.ibm.com [9.56.227.236]) by d01dlp01.pok.ibm.com (Postfix) with ESMTP id 79181728047; Fri, 10 Dec 2010 04:55:29 -0500 (EST) Received: from d03av04.boulder.ibm.com (d03av04.boulder.ibm.com [9.17.195.170]) by d01relay04.pok.ibm.com (8.13.8/8.13.8/NCO v10.0) with ESMTP id oBA9tTsv187720; Fri, 10 Dec 2010 04:55:29 -0500 Received: from d03av04.boulder.ibm.com (loopback [127.0.0.1]) by d03av04.boulder.ibm.com (8.14.4/8.13.1/NCO v10.0 AVout) with ESMTP id oBA9tRhm025836; Fri, 10 Dec 2010 02:55:28 -0700 Received: from [9.65.207.31] (sig-9-65-207-31.mts.ibm.com [9.65.207.31]) by d03av04.boulder.ibm.com (8.14.4/8.13.1/NCO v10.0 AVin) with ESMTP id oBA9tPPO025695; Fri, 10 Dec 2010 02:55:25 -0700 Subject: [RFC PATCH V2 1/5] Add a new sock 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:55:24 -0800 Message-ID: <1291974924.2167.28.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:56:03 +0000 (UTC) diff --git a/include/net/sock.h b/include/net/sock.h index a6338d0..ff34ea7 100644 --- a/include/net/sock.h +++ b/include/net/sock.h @@ -543,6 +543,7 @@ enum sock_flags { SOCK_TIMESTAMPING_SYS_HARDWARE, /* %SOF_TIMESTAMPING_SYS_HARDWARE */ SOCK_FASYNC, /* fasync() active */ SOCK_RXQ_OVFL, + SOCK_ZEROCOPY, }; static inline void sock_copy_flags(struct sock *nsk, struct sock *osk)