aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/infiniband/hw/mlx5/devx.h
diff options
context:
space:
mode:
authorLeon Romanovsky <[email protected]>2020-07-02 08:18:07 +0000
committerJason Gunthorpe <[email protected]>2020-07-07 17:05:51 +0000
commitf7c4ffda0cbf7823915cbfebdbbe8460e7eeca67 (patch)
treeedae00005a0a48faf9941affe5aba8c35f7ad358 /drivers/infiniband/hw/mlx5/devx.h
parentRDMA/mlx5: Separate counters from main.c (diff)
downloadkernel-f7c4ffda0cbf7823915cbfebdbbe8460e7eeca67.tar.gz
kernel-f7c4ffda0cbf7823915cbfebdbbe8460e7eeca67.zip
RDMA/mlx5: Separate flow steering logic from main.c
Move flow steering logic to be in separate file and rename flow.c to be fs.c because it is better describe the content. Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Leon Romanovsky <[email protected]> Signed-off-by: Jason Gunthorpe <[email protected]>
Diffstat (limited to 'drivers/infiniband/hw/mlx5/devx.h')
-rw-r--r--drivers/infiniband/hw/mlx5/devx.h26
1 files changed, 26 insertions, 0 deletions
diff --git a/drivers/infiniband/hw/mlx5/devx.h b/drivers/infiniband/hw/mlx5/devx.h
new file mode 100644
index 000000000000..9afaa5d22797
--- /dev/null
+++ b/drivers/infiniband/hw/mlx5/devx.h
@@ -0,0 +1,26 @@
+/* SPDX-License-Identifier: GPL-2.0 OR Linux-OpenIB */
+/*
+ * Copyright (c) 2019-2020, Mellanox Technologies inc. All rights reserved.
+ */
+
+#ifndef _MLX5_IB_DEVX_H
+#define _MLX5_IB_DEVX_H
+
+#include "mlx5_ib.h"
+
+#define MLX5_MAX_DESTROY_INBOX_SIZE_DW MLX5_ST_SZ_DW(delete_fte_in)
+struct devx_obj {
+ struct mlx5_ib_dev *ib_dev;
+ u64 obj_id;
+ u32 dinlen; /* destroy inbox length */
+ u32 dinbox[MLX5_MAX_DESTROY_INBOX_SIZE_DW];
+ u32 flags;
+ union {
+ struct mlx5_ib_devx_mr devx_mr;
+ struct mlx5_core_dct core_dct;
+ struct mlx5_core_cq core_cq;
+ u32 flow_counter_bulk_size;
+ };
+ struct list_head event_sub; /* holds devx_event_subscription entries */
+};
+#endif /* _MLX5_IB_DEVX_H */