All of lore.kernel.org
 help / color / mirror / Atom feed
From: Steve Wise <swise-7bPotxP6k4+P2YhJcF5u+vpXobYPEAuW@public.gmane.org>
To: rdreier-FYB4Gu1CFyUAvxtiuMwx3w@public.gmane.org
Cc: miroslaw.walukiewicz-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org,
	linux-rdma-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
Subject: Re: [PATCH 1/2] RDMA/core: add support for iWarp multicast acceleration over IB_QPT_RAW_ETY QP type
Date: Mon, 10 May 2010 10:51:40 -0500	[thread overview]
Message-ID: <4BE82B8C.8080103@opengridcomputing.com> (raw)
In-Reply-To: <20100430165348.1386.77503.stgit-dAdtdUp2yJRU7keBU/FxOFDQ4js95KgL@public.gmane.org>

Hey Roland,

Do you have thoughts on this change?  It is useful along with the 
IBV_QPT_RAW_ETY type added to libibverbs for cxgb devices too.

Steve.

miroslaw.walukiewicz-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org wrote:
> The patch enables usage of attach_mcast()/detach_mcast driver
> specific verbs for iWARP devices.
>
> IB path is unchanged.
> iWARP path adds checking for raw ethernet QP type
>
> Signed-off-by: Mirek Walukiewicz <miroslaw.walukiewicz-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org>
>
>
>
> ---
>
>  drivers/infiniband/core/verbs.c |   24 ++++++++++++++++++++----
>  1 files changed, 20 insertions(+), 4 deletions(-)
>
>
> diff --git a/drivers/infiniband/core/verbs.c b/drivers/infiniband/core/verbs.c
> index a7da9be..b5023f2 100644
> --- a/drivers/infiniband/core/verbs.c
> +++ b/drivers/infiniband/core/verbs.c
> @@ -887,9 +887,17 @@ int ib_attach_mcast(struct ib_qp *qp, union ib_gid *gid, u16 lid)
>  {
>  	if (!qp->device->attach_mcast)
>  		return -ENOSYS;
> -	if (gid->raw[0] != 0xff || qp->qp_type != IB_QPT_UD)
> -		return -EINVAL;
>  
> +	switch (qp->device->node_type) {
> +	case RDMA_TRANSPORT_IB:
> +		if (gid->raw[0] != 0xff || qp->qp_type != IB_QPT_UD)
> +			return -EINVAL;
> +		break;
> +	case RDMA_TRANSPORT_IWARP:
> +		if (qp->qp_type != IB_QPT_RAW_ETY)
> +			return -EINVAL;
> +		break;
> +	}
>  	return qp->device->attach_mcast(qp, gid, lid);
>  }
>  EXPORT_SYMBOL(ib_attach_mcast);
> @@ -898,9 +906,17 @@ int ib_detach_mcast(struct ib_qp *qp, union ib_gid *gid, u16 lid)
>  {
>  	if (!qp->device->detach_mcast)
>  		return -ENOSYS;
> -	if (gid->raw[0] != 0xff || qp->qp_type != IB_QPT_UD)
> -		return -EINVAL;
>  
> +	switch (qp->device->node_type) {
> +	case RDMA_TRANSPORT_IB:
> +		if (gid->raw[0] != 0xff || qp->qp_type != IB_QPT_UD)
> +			return -EINVAL;
> +		break;
> +	case RDMA_TRANSPORT_IWARP:
> +		if (qp->qp_type != IB_QPT_RAW_ETY)
> +			return -EINVAL;
> +		break;
> +	}
>  	return qp->device->detach_mcast(qp, gid, lid);
>  }
>  EXPORT_SYMBOL(ib_detach_mcast);
>
>
> --
> To unsubscribe from this list: send the line "unsubscribe linux-rdma" in
> the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
>   

--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

  parent reply	other threads:[~2010-05-10 15:51 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-04-30 16:53 [PATCH 0/2] RDMA/core: add support for iWarp multicast acceleration over IB_QPT_RAW_ETY QP type Mirek Walukiewicz
     [not found] ` <20100430165249.1386.73960.stgit-dAdtdUp2yJRU7keBU/FxOFDQ4js95KgL@public.gmane.org>
2010-04-30 16:54   ` [PATCH 1/2] " miroslaw.walukiewicz-ral2JQCrhuEAvxtiuMwx3w
     [not found]     ` <20100430165348.1386.77503.stgit-dAdtdUp2yJRU7keBU/FxOFDQ4js95KgL@public.gmane.org>
2010-05-10 15:51       ` Steve Wise [this message]
2010-04-30 16:55   ` [PATCH 2/2] RDMA/nes: add support of iWARP " miroslaw.walukiewicz-ral2JQCrhuEAvxtiuMwx3w
     [not found]     ` <20100430165434.1386.80375.stgit-dAdtdUp2yJRU7keBU/FxOFDQ4js95KgL@public.gmane.org>
2010-05-04 17:19       ` Steve Wise
     [not found]         ` <4BE05713.6030101-7bPotxP6k4+P2YhJcF5u+vpXobYPEAuW@public.gmane.org>
2010-05-04 18:09           ` Walukiewicz, Miroslaw
     [not found]             ` <BE2BFE91933D1B4089447C64486040801B6784ED-IGOiFh9zz4wLt2AQoY/u9bfspsVTdybXVpNB7YpNyf8@public.gmane.org>
2010-05-04 18:15               ` Steve Wise
     [not found]                 ` <4BE06425.6000104-7bPotxP6k4+P2YhJcF5u+vpXobYPEAuW@public.gmane.org>
2010-05-05 13:42                   ` Walukiewicz, Miroslaw
     [not found]                     ` <BE2BFE91933D1B4089447C64486040801D00D549-IGOiFh9zz4wLt2AQoY/u9bfspsVTdybXVpNB7YpNyf8@public.gmane.org>
2010-05-05 14:56                       ` Steve Wise
     [not found]                         ` <4BE18710.9090304-7bPotxP6k4+P2YhJcF5u+vpXobYPEAuW@public.gmane.org>
2010-05-06 16:27                           ` Walukiewicz, Miroslaw
2010-05-03 14:35   ` [PATCH 0/2] RDMA/core: add support for iWarp " Steve Wise

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=4BE82B8C.8080103@opengridcomputing.com \
    --to=swise-7bpotxp6k4+p2yhjcf5u+vpxobypeauw@public.gmane.org \
    --cc=linux-rdma-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
    --cc=miroslaw.walukiewicz-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org \
    --cc=rdreier-FYB4Gu1CFyUAvxtiuMwx3w@public.gmane.org \
    /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.