[ewg] RAW_ETH support [PATCH 1/2]

Walukiewicz, Miroslaw Miroslaw.Walukiewicz at intel.com
Tue Jun 15 07:54:35 PDT 2010


I accept that patch. 
Is there any need to send this patch again by me to be applied to OFED?

Mirek

-----Original Message-----
From: Moni Shoua [mailto:monis at Voltaire.COM] 
Sent: Monday, June 14, 2010 4:14 PM
To: Vlad
Cc: Aleksey Senin; ewg at lists.openfabrics.org; Walukiewicz, Miroslaw
Subject: Re: [ewg] RAW_ETH support [PATCH 1/2]

Hi Vlad
Please apply this patch.
Now, when RAW patches that you accepted today are applied, RAW ETH QP support is broken for NE driver unless this patch is applied.

thanks

Aleksey Senin wrote:
> This patch will fix existing NES code to support RAW_ETH instead of RAW_ETY type.
> 
> 
> Signed-off-by: Aleksey Senin <alekseys at voltaire.com>
> ---
>  kernel_patches/fixes/nes_0033_ima.patch |   10 +++++-----
>  1 files changed, 5 insertions(+), 5 deletions(-)
> 
> diff --git a/kernel_patches/fixes/nes_0033_ima.patch b/kernel_patches/fixes/nes_0033_ima.patch
> index ed21edd..304fe73 100755
> --- a/kernel_patches/fixes/nes_0033_ima.patch
> +++ b/kernel_patches/fixes/nes_0033_ima.patch
> @@ -1,8 +1,8 @@
>  RDMA/nes: add support of iWARP multicast acceleration over
> -	IB_QPT_RAW_ETY QP type
> +	IB_QPT_RAW_ETH QP type
>  
>  This patch implements iWarp multicast acceleration (IMA)
> -over IB_QPT_RAW_ETY QP type in nes driver.
> +over IB_QPT_RAW_ETH QP type in nes driver.
>  
>  Application creates a raw eth QP (IBV_QPT_RAW_ETH in user-space) and
>  manages the multicast via ibv_attach_mcast and ibv_detach_mcast calls.
> @@ -2301,7 +2301,7 @@ index 098b56f..1801a54 100644
>  -			nes_debug(NES_DBG_QP, "Invalid QP type: %d\n", init_attr->qp_type);
>  -			return ERR_PTR(-EINVAL);
>  +
> -+	case IB_QPT_RAW_ETY:
> ++	case IB_QPT_RAW_ETH:
>  +	if (!ibpd->uobject)
>  +		return ERR_PTR(-EINVAL);
>  +
> @@ -2428,7 +2428,7 @@ index 098b56f..1801a54 100644
>   	atomic_inc(&sw_qps_destroyed);
>   	nesqp->destroyed = 1;
>   
> -+	if (nesqp->ibqp.qp_type == IB_QPT_RAW_ETY) {
> ++	if (nesqp->ibqp.qp_type == IB_QPT_RAW_ETH) {
>  +		/* check the QP refernece count */
>  +		if (atomic_read(&nesqp->refcount) == 0)
>  +			BUG();
> @@ -2558,7 +2558,7 @@ index 098b56f..1801a54 100644
>   			nesqp->hwqp.qp_id, attr->qp_state, nesqp->ibqp_state,
>   			nesqp->iwarp_state, atomic_read(&nesqp->refcount));
>   
> -+	if (ibqp->qp_type == IB_QPT_RAW_ETY)
> ++	if (ibqp->qp_type == IB_QPT_RAW_ETH)
>  +		return 0;
>  +
>   	spin_lock_irqsave(&nesqp->lock, qplockflags);




More information about the ewg mailing list