[openib-general] RE: executing the SRQ pingpong example

Dotan Barak dotanb at mellanox.co.il
Tue Sep 20 00:06:49 PDT 2005


> 
> Thanks, I think this patch (already committed) should fix the crash.
> 
> Index: linux-kernel/infiniband/hw/mthca/mthca_srq.c
> ===================================================================
> --- linux-kernel/infiniband/hw/mthca/mthca_srq.c	(revision 3478)
> +++ linux-kernel/infiniband/hw/mthca/mthca_srq.c	(working copy)
> @@ -172,6 +172,8 @@ static int mthca_alloc_srq_buf(struct mt
>  			scatter->lkey = cpu_to_be32(MTHCA_INVAL_LKEY);
>  	}
>  
> +	srq->last = get_wqe(srq, srq->max - 1);
> +
>  	return 0;
>  }
>  
> @@ -263,7 +265,6 @@ int mthca_alloc_srq(struct mthca_dev *de
>  
>  	srq->first_free = 0;
>  	srq->last_free  = srq->max - 1;
> -	srq->last	= get_wqe(srq, srq->max - 1);
>  
>  	return 0;
>  
> 

thanks, the fix do the job ...

Dotan
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openfabrics.org/pipermail/general/attachments/20050920/ade0bd2e/attachment.html>


More information about the general mailing list