]> git.openfabrics.org - ~shefty/libibverbs.git/commitdiff
Revert "Pass driver data through ibv_cmd_req_notify_cq()"
authorRoland Dreier <rolandd@cisco.com>
Thu, 11 Jan 2007 15:19:49 +0000 (07:19 -0800)
committerRoland Dreier <rolandd@cisco.com>
Thu, 11 Jan 2007 15:19:49 +0000 (07:19 -0800)
This reverts commit d5b9ab3d7009b77ee45e98827e803205d322ce7d, since
the Chelsio cxgb3 driver no longer needs it and the kernel side of
req_notify_cq() doesn't handle user data anyway.

Signed-off-by: Roland Dreier <rolandd@cisco.com>
include/infiniband/driver.h
src/cmd.c

index 8e2418cfb8eddf9425a2fa55f0ad7fec4b3557bc..67a3bf8010c65ed694208de3be9745a0821c6ea2 100644 (file)
@@ -88,10 +88,7 @@ int ibv_cmd_create_cq(struct ibv_context *context, int cqe,
                      struct ibv_create_cq *cmd, size_t cmd_size,
                      struct ibv_create_cq_resp *resp, size_t resp_size);
 int ibv_cmd_poll_cq(struct ibv_cq *cq, int ne, struct ibv_wc *wc);
-#define IBV_CMD_REQ_NOTIFY_HAS_CMD_PARAMS
-int ibv_cmd_req_notify_cq(struct ibv_cq *cq, int solicited_only,
-                         struct ibv_req_notify_cq *cmd, size_t cmd_size);
-
+int ibv_cmd_req_notify_cq(struct ibv_cq *cq, int solicited_only);
 #define IBV_CMD_RESIZE_CQ_HAS_RESP_PARAMS
 int ibv_cmd_resize_cq(struct ibv_cq *cq, int cqe,
                      struct ibv_resize_cq *cmd, size_t cmd_size,
index f549f422dc2641a219f1dc9f0cbdb7c1e77e89e6..b2676031d4adcf8c3b2b5109532296ddba63e08a 100644 (file)
--- a/src/cmd.c
+++ b/src/cmd.c
@@ -370,15 +370,15 @@ out:
        return ret;
 }
 
-int ibv_cmd_req_notify_cq(struct ibv_cq *ibcq, int solicited_only,
-                         struct ibv_req_notify_cq *cmd, size_t cmd_size)
+int ibv_cmd_req_notify_cq(struct ibv_cq *ibcq, int solicited_only)
 {
+       struct ibv_req_notify_cq cmd;
 
-       IBV_INIT_CMD(cmd, cmd_size, REQ_NOTIFY_CQ);
-       cmd->cq_handle = ibcq->handle;
-       cmd->solicited = !!solicited_only;
+       IBV_INIT_CMD(&cmd, sizeof cmd, REQ_NOTIFY_CQ);
+       cmd.cq_handle = ibcq->handle;
+       cmd.solicited = !!solicited_only;
 
-       if (write(ibcq->context->cmd_fd, cmd, cmd_size) != cmd_size)
+       if (write(ibcq->context->cmd_fd, &cmd, sizeof cmd) != sizeof cmd)
                return errno;
 
        return 0;