]> git.openfabrics.org - ~shefty/rdma-dev.git/commitdiff
rdma/core: Really export ib_open_qp() to user space xrc
authorSean Hefty <sean.hefty@intel.com>
Thu, 13 Oct 2011 19:53:08 +0000 (12:53 -0700)
committerSean Hefty <sean.hefty@intel.com>
Thu, 13 Oct 2011 19:53:08 +0000 (12:53 -0700)
We need to add an entry into the uverbs and device command
tables to allow user space to actually call ib_open_qp.

Signed-off-by: Sean Hefty <sean.hefty@intel.com>
drivers/infiniband/core/uverbs_main.c
drivers/infiniband/hw/mlx4/main.c

index 9c877e24eb60b936d6bd36312962bf1ef1f63fbe..485ea6c60d8b4dcfdb49e9761742052d5961149e 100644 (file)
@@ -110,7 +110,8 @@ static ssize_t (*uverbs_cmd_table[])(struct ib_uverbs_file *file,
        [IB_USER_VERBS_CMD_DESTROY_SRQ]         = ib_uverbs_destroy_srq,
        [IB_USER_VERBS_CMD_OPEN_XRCD]           = ib_uverbs_open_xrcd,
        [IB_USER_VERBS_CMD_CLOSE_XRCD]          = ib_uverbs_close_xrcd,
-       [IB_USER_VERBS_CMD_CREATE_XSRQ]         = ib_uverbs_create_xsrq
+       [IB_USER_VERBS_CMD_CREATE_XSRQ]         = ib_uverbs_create_xsrq,
+       [IB_USER_VERBS_CMD_OPEN_QP]             = ib_uverbs_open_qp
 };
 
 static void ib_uverbs_add_one(struct ib_device *device);
index 9cfa6f940cbbb1f65f1983d9e33cd2eae9db9d01..bc47d1714f467835a194f7ebe823ad43e9cf488a 100644 (file)
@@ -1098,7 +1098,8 @@ static void *mlx4_ib_add(struct mlx4_dev *dev)
                (1ull << IB_USER_VERBS_CMD_MODIFY_SRQ)          |
                (1ull << IB_USER_VERBS_CMD_QUERY_SRQ)           |
                (1ull << IB_USER_VERBS_CMD_DESTROY_SRQ)         |
-               (1ull << IB_USER_VERBS_CMD_CREATE_XSRQ);        
+               (1ull << IB_USER_VERBS_CMD_CREATE_XSRQ)         |
+               (1ull << IB_USER_VERBS_CMD_OPEN_QP);
 
        ibdev->ib_dev.query_device      = mlx4_ib_query_device;
        ibdev->ib_dev.query_port        = mlx4_ib_query_port;