32 lines
1.0 KiB
Diff
32 lines
1.0 KiB
Diff
From 24eb020845273acb301b69779921284475303d3a Mon Sep 17 00:00:00 2001
|
|
From: Yishai Hadas <yishaih@mellanox.com>
|
|
Date: Sun, 19 Apr 2020 14:06:15 +0300
|
|
Subject: [PATCH 6/8] verbs: Fix ibv_create_wq() to set wq_context
|
|
|
|
[ Upstream commit 130dc94863e754402bb79d52ef89a72a94041def ]
|
|
|
|
Fix ibv_create_wq() to set wq_context upon a successful creation.
|
|
|
|
Fixes: 2864904f82bf ("Introduce Work Queue object and its verbs")
|
|
Signed-off-by: Yishai Hadas <yishaih@mellanox.com>
|
|
Signed-off-by: Nicolas Morey-Chaisemartin <nmoreychaisemartin@suse.com>
|
|
---
|
|
libibverbs/verbs.h | 1 +
|
|
1 file changed, 1 insertion(+)
|
|
|
|
diff --git a/libibverbs/verbs.h b/libibverbs/verbs.h
|
|
index 288985d54975..5e256b4dc442 100644
|
|
--- a/libibverbs/verbs.h
|
|
+++ b/libibverbs/verbs.h
|
|
@@ -3073,6 +3073,7 @@ static inline struct ibv_wq *ibv_create_wq(struct ibv_context *context,
|
|
|
|
wq = vctx->create_wq(context, wq_init_attr);
|
|
if (wq) {
|
|
+ wq->wq_context = wq_init_attr->wq_context;
|
|
wq->events_completed = 0;
|
|
pthread_mutex_init(&wq->mutex, NULL);
|
|
pthread_cond_init(&wq->cond, NULL);
|
|
--
|
|
2.25.4
|
|
|