path: root/drivers/infiniband/hw/mlx5/mlx5_ib.h
diff options
authormajd@mellanox.com <majd@mellanox.com>2016-01-14 19:13:02 +0200
committerDoug Ledford <dledford@redhat.com>2016-01-21 12:01:09 -0500
commit146d2f1af3245a10b13eef263687e54f4e253d1d (patch)
treebee5b45a9c8d5e32cc146570d0b805919dfa7df5 /drivers/infiniband/hw/mlx5/mlx5_ib.h
parentnet/mlx5_core: Warn on unsupported events of QP/RQ/SQ (diff)
IB/mlx5: Allocate a Transport Domain for each ucontext
Transport Domain groups several TIS and TIR object. By grouping these object, it defines wheather local loopback packets that are sent from the TIS objects in the group are received by the TIR objects in the same group. Allocate a Transport Domain(TD) for each user context to be used in the future by Raw Packet QP for Self-Loopback Control. 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 '')
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/infiniband/hw/mlx5/mlx5_ib.h b/drivers/infiniband/hw/mlx5/mlx5_ib.h
index a6a57de278b4..2ccc3d95d574 100644
--- a/drivers/infiniband/hw/mlx5/mlx5_ib.h
+++ b/drivers/infiniband/hw/mlx5/mlx5_ib.h
@@ -42,6 +42,7 @@
#include <linux/mlx5/qp.h>
#include <linux/mlx5/srq.h>
#include <linux/types.h>
+#include <linux/mlx5/transobj.h>
#define mlx5_ib_dbg(dev, format, arg...) \
pr_debug("%s:%s:%d:(pid %d): " format, (dev)->ib_dev.name, __func__, \
@@ -110,6 +111,8 @@ struct mlx5_ib_ucontext {
struct mutex db_page_mutex;
struct mlx5_uuar_info uuari;
u8 cqe_version;
+ /* Transport Domain number */
+ u32 tdn;
static inline struct mlx5_ib_ucontext *to_mucontext(struct ib_ucontext *ibucontext)