From patchwork Wed Jan 26 18:09:01 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Patil, Kiran" X-Patchwork-Id: 80536 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 DC2BEB7121 for ; Thu, 27 Jan 2011 05:07:20 +1100 (EST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754005Ab1AZSHM (ORCPT ); Wed, 26 Jan 2011 13:07:12 -0500 Received: from mga14.intel.com ([143.182.124.37]:33899 "EHLO mga14.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751736Ab1AZSHL (ORCPT ); Wed, 26 Jan 2011 13:07:11 -0500 Received: from azsmga001.ch.intel.com ([10.2.17.19]) by azsmga102.ch.intel.com with ESMTP; 26 Jan 2011 10:07:10 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="4.60,381,1291622400"; d="scan'208";a="380279043" Received: from kap-targ.jf.intel.com (HELO localhost.localdomain) ([10.23.209.78]) by azsmga001.ch.intel.com with ESMTP; 26 Jan 2011 10:06:59 -0800 From: Kiran Patil Subject: [RFC PATCH 1/2] net: add ndo_fcoe_ddp_target() to support FCoE DDP in target mode To: netdev@vger.kernel.org, jeffrey.t.kirsher@intel.com, yi.zou@intel.com, robert.w.love@intel.com, kiran.patil@intel.com Date: Wed, 26 Jan 2011 10:09:01 -0800 Message-ID: <20110126180901.25039.18150.stgit@localhost.localdomain> In-Reply-To: <20110126180855.25039.82793.stgit@localhost.localdomain> References: <20110126180855.25039.82793.stgit@localhost.localdomain> User-Agent: StGIT/0.14.3 MIME-Version: 1.0 Sender: netdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org From: Yi Zou The Fiber Channel over Ethernet (FCoE) Direct Data Placement (DDP) can also be used for FCoE target, where the DDP used for read I/O on an initiator can be used on an FCoE target to speed up the write I/O to the target from the initiator. The added ndo_fcoe_ddp_target() works in the similar way as the existing ndo_fcoe_ddp_setup() to allow the underlying hardware set up the DDP context accordingly when it gets called from the FCoE target implementation on top the existing Open-FCoE fcoe/libfc protocol stack so without losing the ability to provide DDP for read I/O as an initiator, it can also provide DDP offload to the write I/O coming from the initiator as a target. Signed-off-by: Yi Zou Signed-off-by: Kiran Patil --- include/linux/netdevice.h | 4 ++++ 1 files changed, 4 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/linux/netdevice.h b/include/linux/netdevice.h index d8fd2c2..d96a198 100644 --- a/include/linux/netdevice.h +++ b/include/linux/netdevice.h @@ -774,6 +774,10 @@ struct net_device_ops { unsigned int sgc); int (*ndo_fcoe_ddp_done)(struct net_device *dev, u16 xid); + int (*ndo_fcoe_ddp_target)(struct net_device *dev, + u16 xid, + struct scatterlist *sgl, + unsigned int sgc); #define NETDEV_FCOE_WWNN 0 #define NETDEV_FCOE_WWPN 1 int (*ndo_fcoe_get_wwn)(struct net_device *dev,