[ofw] [PATCH] Cleanup ND reject IOCTL handling
Fab Tillier
ftillier at windows.microsoft.com
Fri Jul 11 08:51:33 PDT 2008
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)
{
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ndrej.patch
Type: application/octet-stream
Size: 898 bytes
Desc: ndrej.patch
URL: <http://lists.openfabrics.org/pipermail/ofw/attachments/20080711/185385ff/attachment.obj>
More information about the ofw
mailing list