All of lore.kernel.org
 help / color / mirror / Atom feed
From: Ben Hutchings <bhutchings@solarflare.com>
To: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
Cc: davem@davemloft.net, Yi Zou <yi.zou@intel.com>,
	netdev@vger.kernel.org, gospo@redhat.com, bphilips@novell.com,
	Kiran Patil <kiran.patil@intel.com>
Subject: Re: [net-next-2.6 05/14] vlan: add support to ndo_fcoe_ddp_target()
Date: Tue, 08 Mar 2011 02:44:27 +0000	[thread overview]
Message-ID: <1299552267.3967.3.camel@localhost> (raw)
In-Reply-To: <1299551108-23663-6-git-send-email-jeffrey.t.kirsher@intel.com>

On Mon, 2011-03-07 at 18:24 -0800, Jeff Kirsher wrote:
> From: Yi Zou <yi.zou@intel.com>
> 
> Add the new target ddp offload support ndo_fcoe_ddp_target().
> 
> Signed-off-by: Yi Zou <yi.zou@intel.com>
> Signed-off-by: Kiran Patil <kiran.patil@intel.com>
> Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
> ---
>  net/8021q/vlan_dev.c |   14 ++++++++++++++
>  1 files changed, 14 insertions(+), 0 deletions(-)
> 
> diff --git a/net/8021q/vlan_dev.c b/net/8021q/vlan_dev.c
> index be73753..ae610f0 100644
> --- a/net/8021q/vlan_dev.c
> +++ b/net/8021q/vlan_dev.c
> @@ -625,6 +625,19 @@ static int vlan_dev_fcoe_get_wwn(struct net_device *dev, u64 *wwn, int type)
>  		rc = ops->ndo_fcoe_get_wwn(real_dev, wwn, type);
>  	return rc;
>  }
> +
> +static int vlan_dev_fcoe_ddp_target(struct net_device *dev, u16 xid,
> +				    struct scatterlist *sgl, unsigned int sgc)
> +{
> +	struct net_device *real_dev = vlan_dev_info(dev)->real_dev;
> +	const struct net_device_ops *ops = real_dev->netdev_ops;
> +	int rc = 0;
> +
> +	if (ops->ndo_fcoe_ddp_target)
> +		rc = ops->ndo_fcoe_ddp_target(real_dev, xid, sgl, sgc);
> +
> +	return rc;
> +}

I can't see a caller or any documentation for this operation, so I don't
know what the semantics are supposed to be.  But shouldn't the return
value be -EOPNOTSUPP if real_dev does not implement the operation?

Ben.

>  #endif
>  
>  static void vlan_dev_change_rx_flags(struct net_device *dev, int change)
> @@ -858,6 +871,7 @@ static const struct net_device_ops vlan_netdev_ops = {
>  	.ndo_fcoe_enable	= vlan_dev_fcoe_enable,
>  	.ndo_fcoe_disable	= vlan_dev_fcoe_disable,
>  	.ndo_fcoe_get_wwn	= vlan_dev_fcoe_get_wwn,
> +	.ndo_fcoe_ddp_target	= vlan_dev_fcoe_ddp_target,
>  #endif
>  };
>  

-- 
Ben Hutchings, Senior Software Engineer, Solarflare Communications
Not speaking for my employer; that's the marketing department's job.
They asked us to note that Solarflare product names are trademarked.


  reply	other threads:[~2011-03-08  2:44 UTC|newest]

Thread overview: 21+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-03-08  2:24 [net-next-2.6 00/14][pull request] Intel Wired LAN Driver Updates Jeff Kirsher
2011-03-08  2:24 ` [net-next-2.6 01/14] e1000e: fix build issue due to undefined reference to crc32_le Jeff Kirsher
2011-03-08  2:24 ` [net-next-2.6 02/14] igb: Add stats output for OS2BMC feature on i350 devices Jeff Kirsher
2011-03-08  2:24 ` [net-next-2.6 03/14] ixgbe: fix missing function pointer conversion Jeff Kirsher
2011-03-08  2:24 ` [net-next-2.6 04/14] net: add ndo_fcoe_ddp_target() to support FCoE DDP in target mode Jeff Kirsher
2011-03-08  2:43   ` Ben Hutchings
2011-03-08  2:54     ` Zou, Yi
2011-03-08  2:24 ` [net-next-2.6 05/14] vlan: add support to ndo_fcoe_ddp_target() Jeff Kirsher
2011-03-08  2:44   ` Ben Hutchings [this message]
2011-03-08  2:51     ` Zou, Yi
2011-03-08  2:25 ` [net-next-2.6 06/14] ixgbe: add support to FCoE DDP in target mode Jeff Kirsher
2011-03-08  2:25 ` [net-next-2.6 07/14] ixgbe: cleanup PHY init Jeff Kirsher
2011-03-08  2:25 ` [net-next-2.6 08/14] ixgbe: clear correct counters for flow control on 82599 Jeff Kirsher
2011-03-08  2:25 ` [net-next-2.6 09/14] ixgbe: Add x540 statistic counter definitions Jeff Kirsher
2011-03-08  2:25 ` [net-next-2.6 10/14] ixgbe: Enable flow control pause parameter auto-negotiation support Jeff Kirsher
2011-03-08  2:25 ` [net-next-2.6 11/14] ixgbe: add function description Jeff Kirsher
2011-03-08  2:25 ` [net-next-2.6 12/14] ixgbe: improve logic in ixgbe_init_mbx_params_pf Jeff Kirsher
2011-03-08  2:25 ` [net-next-2.6 13/14] ixgbe: fix spelling errors Jeff Kirsher
2011-03-08  2:25 ` [net-next-2.6 14/14] ixgbe: fix setting and reporting of advertised speeds Jeff Kirsher
2011-03-08 19:11 ` [net-next-2.6 00/14][pull request] Intel Wired LAN Driver Updates David Miller
2011-03-08 21:10   ` Jeff Kirsher

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1299552267.3967.3.camel@localhost \
    --to=bhutchings@solarflare.com \
    --cc=bphilips@novell.com \
    --cc=davem@davemloft.net \
    --cc=gospo@redhat.com \
    --cc=jeffrey.t.kirsher@intel.com \
    --cc=kiran.patil@intel.com \
    --cc=netdev@vger.kernel.org \
    --cc=yi.zou@intel.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.