aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRoland Dreier <rolandd@cisco.com>2005-06-24 17:28:32 +0000
committerRoland Dreier <rolandd@cisco.com>2006-11-09 11:35:56 -0800
commit797b990884e2a695111c4f5f6bd4aa0f9e67e5eb (patch)
treea5dd410a8bc57c06b63955fe384c372055ecc9cd
parent5091b3e8360a0cd552e69eae76dba4868e3f113f (diff)
downloadlibibverbs-797b990884e2a695111c4f5f6bd4aa0f9e67e5eb.tar.gz
Always pass 0 for CQ event handler
Always pass 0 to the kernel for CQ event handler until multiple handlers are implemented and added to the API. Signed-off-by: Roland Dreier <rolandd@cisco.com>
-rw-r--r--include/infiniband/kern-abi.h2
-rw-r--r--src/cmd.c5
2 files changed, 4 insertions, 3 deletions
diff --git a/include/infiniband/kern-abi.h b/include/infiniband/kern-abi.h
index f314233..3c0c8a1 100644
--- a/include/infiniband/kern-abi.h
+++ b/include/infiniband/kern-abi.h
@@ -305,7 +305,7 @@ struct ibv_create_cq {
__u64 response;
__u64 user_handle;
__u32 cqe;
- __u32 reserved;
+ __u32 event_handler;
__u64 driver_data[0];
};
diff --git a/src/cmd.c b/src/cmd.c
index 35b36e4..4a9dcba 100644
--- a/src/cmd.c
+++ b/src/cmd.c
@@ -262,8 +262,9 @@ int ibv_cmd_create_cq(struct ibv_context *context, int cqe,
struct ibv_create_cq_resp *resp, size_t resp_size)
{
IBV_INIT_CMD_RESP(cmd, cmd_size, CREATE_CQ, resp, resp_size);
- cmd->user_handle = (uintptr_t) cq;
- cmd->cqe = cqe;
+ cmd->user_handle = (uintptr_t) cq;
+ cmd->cqe = cqe;
+ cmd->event_handler = 0;
if (write(context->cmd_fd, cmd, cmd_size) != cmd_size)
return errno;