diff options
author | majd@mellanox.com | 2016-01-14 18:13:00 +0100 |
---|---|---|
committer | Doug Ledford | 2016-01-21 18:01:09 +0100 |
commit | e2013b212f9f201c71fc5826ce41f39ebece0852 (patch) | |
tree | e2609ba7a9a544711bf84364bbdb7c7950ea769a /include/linux/mlx5/driver.h | |
parent | net/mlx5_core: Export transport objects (diff) | |
download | kernel-qcow2-linux-e2013b212f9f201c71fc5826ce41f39ebece0852.tar.gz kernel-qcow2-linux-e2013b212f9f201c71fc5826ce41f39ebece0852.tar.xz kernel-qcow2-linux-e2013b212f9f201c71fc5826ce41f39ebece0852.zip |
net/mlx5_core: Add RQ and SQ event handling
RQ/SQ will be used to implement IB verbs QPs, so the IB QP affiliated
events are affiliated also with SQs and RQs.
Since SQ, RQ and QP resource numbers do not share the same name
space, a queue type field was added to the event data to specify
the SW object that the event is affiliated with.
Signed-off-by: Majd Dibbiny <majd@mellanox.com>
Reviewed-by: Matan Barak <matanb@mellanox.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
Diffstat (limited to 'include/linux/mlx5/driver.h')
-rw-r--r-- | include/linux/mlx5/driver.h | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/include/linux/mlx5/driver.h b/include/linux/mlx5/driver.h index 53c57724c8dd..ae8f91528b6f 100644 --- a/include/linux/mlx5/driver.h +++ b/include/linux/mlx5/driver.h @@ -346,9 +346,11 @@ struct mlx5_core_mr { }; enum mlx5_res_type { - MLX5_RES_QP, - MLX5_RES_SRQ, - MLX5_RES_XSRQ, + MLX5_RES_QP = MLX5_EVENT_QUEUE_TYPE_QP, + MLX5_RES_RQ = MLX5_EVENT_QUEUE_TYPE_RQ, + MLX5_RES_SQ = MLX5_EVENT_QUEUE_TYPE_SQ, + MLX5_RES_SRQ = 3, + MLX5_RES_XSRQ = 4, }; struct mlx5_core_rsc_common { |