[IBAL] Cleanup ND reject IOCTL handling.
authorleonidk <leonidk@ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86>
Sun, 13 Jul 2008 09:10:39 +0000 (09:10 +0000)
committerleonidk <leonidk@ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86>
Sun, 13 Jul 2008 09:10:39 +0000 (09:10 +0000)
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@microsoft.com>
git-svn-id: svn://openib.tc.cornell.edu/gen1/trunk@1376 ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86

core/al/kernel/al_proxy_ndi.c

index 2e4027d..4927638 100644 (file)
@@ -429,7 +429,6 @@ __ndi_rej_cm(
                OUT     size_t                                  *p_ret_bytes )\r
 {\r
        al_dev_open_context_t *p_context;\r
-       net32_t cid;\r
        ib_api_status_t status;\r
        ual_ndi_rej_cm_ioctl_in_t *p_rej = \r
                (ual_ndi_rej_cm_ioctl_in_t*)cl_ioctl_in_buf( h_ioctl );\r
@@ -446,12 +445,9 @@ __ndi_rej_cm(
                ntstatus = CL_INVALID_PARAMETER;\r
                goto exit;\r
        }\r
-       \r
-       /* Get and validate CID */\r
-       cid = p_rej->cid;\r
 \r
        /* perform the ioctl */\r
-       status = al_cep_rej( p_context->h_al, cid, IB_REJ_INSUF_QP, \r
+       status = al_cep_rej( p_context->h_al, p_rej->cid, IB_REJ_USER_DEFINED,\r
                NULL, 0, p_rej->pdata, p_rej->pdata_size);\r
        if (status != IB_SUCCESS)\r
        {\r