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: 175842 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 o8DKlYae015471 for ; Mon, 13 Sep 2010 20:47:34 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755109Ab0IMUrI (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: 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]); Mon, 13 Sep 2010 20:47:34 +0000 (UTC) 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)