summaryrefslogtreecommitdiffstats
path: root/include/rdma
diff options
context:
space:
mode:
authorYishai Hadas <yishaih@mellanox.com>2016-05-23 08:20:49 -0400
committerDoug Ledford <dledford@redhat.com>2016-06-23 11:02:43 -0400
commitf213c05272100f385912372fff678d0af4d7f8ad (patch)
tree7aeb69b757cad6d6209ec3790583fac3b657226a /include/rdma
parent5fd251c8b4c52da0d0916470a67fbb77b972125e (diff)
IB/uverbs: Add WQ support
User space applications which use RSS functionality need to create a work queue object (WQ). The lifetime of such an object is: * Create a WQ * Modify the WQ from reset to init state. * Use the WQ (by downstream patches). * Destroy the WQ. These commands are added to the uverbs API. Signed-off-by: Yishai Hadas <yishaih@mellanox.com> Signed-off-by: Matan Barak <matanb@mellanox.com> Reviewed-by: Sagi Grimberg <sagi@rimberg.me> Signed-off-by: Doug Ledford <dledford@redhat.com>
Diffstat (limited to 'include/rdma')
-rw-r--r--include/rdma/ib_verbs.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/rdma/ib_verbs.h b/include/rdma/ib_verbs.h
index f2d954ac42f6..0c1956a98573 100644
--- a/include/rdma/ib_verbs.h
+++ b/include/rdma/ib_verbs.h
@@ -562,6 +562,7 @@ enum ib_event_type {
562 IB_EVENT_QP_LAST_WQE_REACHED, 562 IB_EVENT_QP_LAST_WQE_REACHED,
563 IB_EVENT_CLIENT_REREGISTER, 563 IB_EVENT_CLIENT_REREGISTER,
564 IB_EVENT_GID_CHANGE, 564 IB_EVENT_GID_CHANGE,
565 IB_EVENT_WQ_FATAL,
565}; 566};
566 567
567const char *__attribute_const__ ib_event_msg(enum ib_event_type event); 568const char *__attribute_const__ ib_event_msg(enum ib_event_type event);
@@ -572,6 +573,7 @@ struct ib_event {
572 struct ib_cq *cq; 573 struct ib_cq *cq;
573 struct ib_qp *qp; 574 struct ib_qp *qp;
574 struct ib_srq *srq; 575 struct ib_srq *srq;
576 struct ib_wq *wq;
575 u8 port_num; 577 u8 port_num;
576 } element; 578 } element;
577 enum ib_event_type event; 579 enum ib_event_type event;
@@ -1323,6 +1325,7 @@ struct ib_ucontext {
1323 struct list_head ah_list; 1325 struct list_head ah_list;
1324 struct list_head xrcd_list; 1326 struct list_head xrcd_list;
1325 struct list_head rule_list; 1327 struct list_head rule_list;
1328 struct list_head wq_list;
1326 int closing; 1329 int closing;
1327 1330
1328 struct pid *tgid; 1331 struct pid *tgid;