[IBAL] Add code to allow user-mode code to register memory via the existing IBAL...
authorleonidk <leonidk@ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86>
Wed, 2 Jul 2008 10:34:39 +0000 (10:34 +0000)
committerleonidk <leonidk@ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86>
Wed, 2 Jul 2008 10:34:39 +0000 (10:34 +0000)
Signed-off-by: Fab Tillier <ftillier@microsoft.com>
git-svn-id: svn://openib.tc.cornell.edu/gen1/trunk@1319 ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86

core/al/al_dev.h
core/al/kernel/al_proxy_ndi.c

index ee1ffe0..9c98e15 100644 (file)
@@ -55,7 +55,7 @@
 #define AL_DEVICE_NAME L"\\Device\\ibal"\r
 #define        ALDEV_KEY               (0x3B)  /* Matches FILE_DEVICE_INFINIBAND from wdm.h */\r
 \r
-#define AL_IOCTL_VERSION                       (5)\r
+#define AL_IOCTL_VERSION                       (6)\r
 \r
 /* max number of devices with non-default pkey */\r
 #define        MAX_NUM_PKEY    16\r
@@ -403,6 +403,7 @@ typedef enum _al_ndi_ops
        ual_ndi_rtu_cm_ioctl_cmd,\r
        ual_ndi_rej_cm_ioctl_cmd,\r
        ual_ndi_dreq_cm_ioctl_cmd,\r
+    ual_ndi_noop,\r
 \r
        al_ndi_maxops\r
 \r
@@ -424,6 +425,7 @@ typedef enum _al_ndi_ops
 #define UAL_NDI_RTU_CM                 IOCTL_CODE(ALDEV_KEY, ual_ndi_rtu_cm_ioctl_cmd)\r
 #define UAL_NDI_REJ_CM                 IOCTL_CODE(ALDEV_KEY, ual_ndi_rej_cm_ioctl_cmd)\r
 #define UAL_NDI_DREQ_CM                        IOCTL_CODE(ALDEV_KEY, ual_ndi_dreq_cm_ioctl_cmd)\r
+#define UAL_NDI_NOOP            IOCTL_CODE(ALDEV_KEY, ual_ndi_noop)\r
 \r
 /*\r
  * Various Operation Allowable on the System Helper\r
index c16e842..7b11962 100644 (file)
@@ -631,6 +631,9 @@ ndi_ioctl(
        case UAL_NDI_DREQ_CM:\r
                cl_status = __ndi_dreq_cm( p_context, h_ioctl, p_ret_bytes );\r
                break;\r
+    case UAL_NDI_NOOP:\r
+        cl_status = CL_SUCCESS;\r
+        break;\r
        default:\r
                cl_status = CL_INVALID_PARAMETER;\r
                break;\r