From patchwork Mon Sep 13 20:47:01 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Shirley Ma X-Patchwork-Id: 64650 X-Patchwork-Delegate: davem@davemloft.net Return-Path: X-Original-To: patchwork-incoming@ozlabs.org Delivered-To: patchwork-incoming@ozlabs.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id 8EAB1B70A6 for ; Tue, 14 Sep 2010 06:47:39 +1000 (EST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755112Ab0IMUrI (ORCPT ); Mon, 13 Sep 2010 16:47:08 -0400 Received: from e3.ny.us.ibm.com ([32.97.182.143]:42821 "EHLO e3.ny.us.ibm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751018Ab0IMUrG (ORCPT ); Mon, 13 Sep 2010 16:47:06 -0400 Received: from d01relay07.pok.ibm.com (d01relay07.pok.ibm.com [9.56.227.147]) by e3.ny.us.ibm.com (8.14.4/8.13.1) with ESMTP id o8DKVEec009051; Mon, 13 Sep 2010 16:31:14 -0400 Received: from d01av02.pok.ibm.com (d01av02.pok.ibm.com [9.56.224.216]) by d01relay07.pok.ibm.com (8.13.8/8.13.8/NCO v10.0) with ESMTP id o8DKl4On1667278; Mon, 13 Sep 2010 16:47:04 -0400 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 o8DKl3lk000809; Mon, 13 Sep 2010 17:47:04 -0300 Received: from [9.49.128.78] (sig-9-49-128-78.mts.ibm.com [9.49.128.78]) by d01av02.pok.ibm.com (8.14.4/8.13.1/NCO v10.0 AVin) with ESMTP id o8DKl1nG000641; Mon, 13 Sep 2010 17:47:02 -0300 Subject: RFC PATCH 1/2] macvtap: A new sock zero copy flag From: Shirley Ma To: Arnd Bergmann , mst@redhat.com, Avi Kivity Cc: xiaohui.xin@intel.com, netdev@vger.kernel.org, kvm@vger.kernel.org, linux-kernel@vger.kernel.org In-Reply-To: <1284410580.13351.10.camel@localhost.localdomain> References: <1284410580.13351.10.camel@localhost.localdomain> Date: Mon, 13 Sep 2010 13:47:01 -0700 Message-ID: <1284410821.13351.13.camel@localhost.localdomain> Mime-Version: 1.0 X-Mailer: Evolution 2.28.3 (2.28.3-1.fc12) Sender: netdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org /* Add a new flag to support sock zero copy from user space to kernel */ 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 netdev" 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 adab9dc..80172de 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, /* zerocopy from user space to kernel */ }; static inline void sock_copy_flags(struct sock *nsk, struct sock *osk)