[IBAL] Remove PD context from IOCTLs.
authorleonidk <leonidk@ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86>
Sun, 13 Jul 2008 10:47:12 +0000 (10:47 +0000)
committerleonidk <leonidk@ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86>
Sun, 13 Jul 2008 10:47:12 +0000 (10:47 +0000)
IBAL's ib_query_qp and ib_query_mw IOCTLs return the PD context in the output IOCTL buffer.  It is however never referenced.

This patch removes the fields (which had been changed to TO_LONG_PTR).

Signed-off-by: Fab Tillier <ftillier@microsoft.com>
git-svn-id: svn://openib.tc.cornell.edu/gen1/trunk@1385 ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86

core/al/kernel/al_proxy_verbs.c
inc/iba/ib_al_ioctl.h

index a33ba9a..52a8cf5 100644 (file)
@@ -1772,17 +1772,11 @@ proxy_query_av(
                goto proxy_query_av_err;\r
 \r
        status = cpyout_umvbuf( &p_ioctl->out.umv_buf, p_umv_buf );\r
-       if( status == IB_SUCCESS )\r
-       {\r
-               /* Return proxy's PD handle when AV was created */\r
-               p_ioctl->out.pd_context = (void*)h_pd->obj.context;\r
-       }\r
-       else\r
+       if( status != IB_SUCCESS )\r
        {\r
 proxy_query_av_err:\r
                p_ioctl->out.umv_buf = p_ioctl->in.umv_buf;\r
                cl_memclr( &p_ioctl->out.attr, sizeof(ib_av_attr_t) );\r
-               p_ioctl->out.pd_context = NULL;\r
        }\r
        free_umvbuf( p_umv_buf );\r
 \r
@@ -3419,18 +3413,10 @@ proxy_query_mw(
                goto proxy_query_mw_err;\r
 \r
        status = cpyout_umvbuf( &p_ioctl->out.umv_buf, p_umv_buf );\r
-       if( status == IB_SUCCESS )\r
-       {\r
-               /*\r
-                * replace the pd handle with user's pd context for the proxy's PD.\r
-                */\r
-               p_ioctl->out.pd_context = (void*)h_pd->obj.context;\r
-       }\r
-       else\r
+       if( status != IB_SUCCESS )\r
        {\r
 proxy_query_mw_err:\r
                p_ioctl->out.umv_buf = p_ioctl->in.umv_buf;\r
-               p_ioctl->out.pd_context = NULL;\r
                p_ioctl->out.rkey = 0;\r
        }\r
        free_umvbuf( p_umv_buf );\r
index b8f046b..e62d8ae 100644 (file)
@@ -1,6 +1,7 @@
 /*\r
  * Copyright (c) 2005 SilverStorm Technologies.  All rights reserved.\r
  * Copyright (c) 1996-2003 Intel Corporation. All rights reserved. \r
+ * Portions Copyright (c) 2008 Microsoft Corporation.  All rights reserved.\r
  *\r
  * This software is available to you under the OpenIB.org BSD license\r
  * below:\r
@@ -561,7 +562,6 @@ typedef union _ual_query_av_ioctl
                ci_umv_buf_t                            umv_buf;\r
                ib_api_status_t                         status;\r
                ib_av_attr_t                            attr;\r
-               TO_LONG_PTR(void* ,                             pd_context) ;\r
 \r
        }       out;\r
 \r
@@ -584,9 +584,6 @@ typedef union _ual_query_av_ioctl
 *\r
 *      out.attr\r
 *              Attributes of the address vector.\r
-*\r
-*      pd_context\r
-*              Context associated with the PD when created.\r
 *****/\r
 \r
 \r
@@ -1597,7 +1594,6 @@ typedef union _ual_query_mw_ioctl
        {\r
                ci_umv_buf_t                            umv_buf;\r
                ib_api_status_t                         status;\r
-               TO_LONG_PTR(void* ,                             pd_context) ;\r
                net32_t                                         rkey;\r
 \r
        }       out;\r
@@ -1619,10 +1615,6 @@ typedef union _ual_query_mw_ioctl
 *      out.status\r
 *              Status of the operation.\r
 *\r
-*      pd_context\r
-*              This user-mode context for the protection domain\r
-*              associated with the memory window.\r
-*\r
 *      rkey\r
 *              RKey associated with the memory window.\r
 *****/\r