[ofw] [PATCH] Cleanup ND reject IOCTL handling

Leonid Keller leonid at mellanox.co.il
Sun Jul 13 02:12:01 PDT 2008


Applied in 1376. Thank you. 

> -----Original Message-----
> From: ofw-bounces at lists.openfabrics.org 
> [mailto:ofw-bounces at lists.openfabrics.org] On Behalf Of Fab Tillier
> Sent: Friday, July 11, 2008 6:52 PM
> To: ofw at lists.openfabrics.org
> Subject: [ofw] [PATCH] Cleanup ND reject IOCTL handling
> 
> This patch removes a local variable, and changes the reject 
> reason from IB_REJ_INSUF_QP to IB_REJ_USER_DEFINED.
> 
> Signed-off-by: Fab Tillier <ftillier at microsoft.com>
> 
> diff -up -r -X trunk\docs\dontdiff.txt -I \$Id: 
> old\core\al\kernel\al_proxy_ndi.c trunk\core\al\kernel\al_proxy_ndi.c
> --- old\core\al\kernel\al_proxy_ndi.c   Wed Jul 09 09:44:26 2008
> +++ trunk\core\al\kernel\al_proxy_ndi.c Thu Jul 10 16:03:06 2008
> @@ -429,7 +429,6 @@ __ndi_rej_cm(
>                 OUT     size_t                                
>   *p_ret_bytes )
>  {
>         al_dev_open_context_t *p_context;
> -       net32_t cid;
>         ib_api_status_t status;
>         ual_ndi_rej_cm_ioctl_in_t *p_rej =
>                 (ual_ndi_rej_cm_ioctl_in_t*)cl_ioctl_in_buf( 
> h_ioctl ); @@ -446,12 +445,9 @@ __ndi_rej_cm(
>                 ntstatus = CL_INVALID_PARAMETER;
>                 goto exit;
>         }
> -
> -       /* Get and validate CID */
> -       cid = p_rej->cid;
> 
>         /* perform the ioctl */
> -       status = al_cep_rej( p_context->h_al, cid, IB_REJ_INSUF_QP,
> +       status = al_cep_rej( p_context->h_al, p_rej->cid, 
> + IB_REJ_USER_DEFINED,
>                 NULL, 0, p_rej->pdata, p_rej->pdata_size);
>         if (status != IB_SUCCESS)
>         {
> 



More information about the ofw mailing list