From patchwork Wed Apr 20 19:42:25 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Shirley Ma X-Patchwork-Id: 722821 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 p3KJhQOp030293 for ; Wed, 20 Apr 2011 19:43:26 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755826Ab1DTTnJ (ORCPT ); Wed, 20 Apr 2011 15:43:09 -0400 Received: from e35.co.us.ibm.com ([32.97.110.153]:34528 "EHLO e35.co.us.ibm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755734Ab1DTTnI (ORCPT ); Wed, 20 Apr 2011 15:43:08 -0400 Received: from d03relay03.boulder.ibm.com (d03relay03.boulder.ibm.com [9.17.195.228]) by e35.co.us.ibm.com (8.14.4/8.13.1) with ESMTP id p3KJQph8001668; Wed, 20 Apr 2011 13:26:51 -0600 Received: from d01av04.pok.ibm.com (d01av04.pok.ibm.com [9.56.224.64]) by d03relay03.boulder.ibm.com (8.13.8/8.13.8/NCO v10.0) with ESMTP id p3KJglaK101632; Wed, 20 Apr 2011 13:42:51 -0600 Received: from d01av04.pok.ibm.com (loopback [127.0.0.1]) by d01av04.pok.ibm.com (8.14.4/8.13.1/NCO v10.0 AVout) with ESMTP id p3KJgZTo011852; Wed, 20 Apr 2011 15:42:45 -0400 Received: from [9.65.196.155] (sig-9-65-196-155.mts.ibm.com [9.65.196.155]) by d01av04.pok.ibm.com (8.14.4/8.13.1/NCO v10.0 AVin) with ESMTP id p3KJgU23011295; Wed, 20 Apr 2011 15:42:31 -0400 Subject: [PATCH V3 1/8] Add a new sock zerocopy flag From: Shirley Ma To: David Miller Cc: mst@redhat.com, Eric Dumazet , Avi Kivity , Arnd Bergmann , netdev@vger.kernel.org, kvm@vger.kernel.org, linux-kernel@vger.kernel.org In-Reply-To: <1303328216.19336.18.camel@localhost.localdomain> References: <1303328216.19336.18.camel@localhost.localdomain> Date: Wed, 20 Apr 2011 12:42:25 -0700 Message-ID: <1303328545.19336.22.camel@localhost.localdomain> Mime-Version: 1.0 X-Mailer: Evolution 2.28.3 (2.28.3-1.fc12) 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.6 (demeter1.kernel.org [140.211.167.41]); Wed, 20 Apr 2011 19:43:27 +0000 (UTC) This sock zerocopy flag is used to support lower level device DMA userspace buffers. Signed-off-by: Shirley Ma --- include/net/sock.h | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) -- To unsubscribe from this list: send the line "unsubscribe kvm" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html diff --git a/include/net/sock.h b/include/net/sock.h index 01810a3..daa0a80 100644 --- a/include/net/sock.h +++ b/include/net/sock.h @@ -562,6 +562,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)