Skip to content

Commit 00b9f0d

Browse files
kliteynSaeed Mahameed
authored andcommitted
net/mlx5: Added missing definitions in preparation for HW Steering
As part of preparation for HWS, added missing definitions in qp.h and fs_core.h: - FS_FT_FDB_RX/TX table types that are used by HWS in addition to an existing FS_FT_FDB - MLX5_WQE_CTRL_INITIATOR_SMALL_FENCE that is used by HWS to require fence in WQE Reviewed-by: Hamdan Agbariya <[email protected]> Signed-off-by: Yevgeny Kliteynik <[email protected]> Reviewed-by: Mark Bloch <[email protected]> Signed-off-by: Saeed Mahameed <[email protected]>
1 parent 34c626c commit 00b9f0d

File tree

2 files changed

+7
-2
lines changed
  • drivers/net/ethernet/mellanox/mlx5/core
  • include/linux/mlx5

2 files changed

+7
-2
lines changed

drivers/net/ethernet/mellanox/mlx5/core/fs_core.h

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,9 @@ enum fs_flow_table_type {
110110
FS_FT_RDMA_RX = 0X7,
111111
FS_FT_RDMA_TX = 0X8,
112112
FS_FT_PORT_SEL = 0X9,
113-
FS_FT_MAX_TYPE = FS_FT_PORT_SEL,
113+
FS_FT_FDB_RX = 0xa,
114+
FS_FT_FDB_TX = 0xb,
115+
FS_FT_MAX_TYPE = FS_FT_FDB_TX,
114116
};
115117

116118
enum fs_flow_table_op_mod {
@@ -368,7 +370,9 @@ struct mlx5_flow_root_namespace *find_root(struct fs_node *node);
368370
(type == FS_FT_RDMA_RX) ? MLX5_CAP_FLOWTABLE_RDMA_RX(mdev, cap) : \
369371
(type == FS_FT_RDMA_TX) ? MLX5_CAP_FLOWTABLE_RDMA_TX(mdev, cap) : \
370372
(type == FS_FT_PORT_SEL) ? MLX5_CAP_FLOWTABLE_PORT_SELECTION(mdev, cap) : \
371-
(BUILD_BUG_ON_ZERO(FS_FT_PORT_SEL != FS_FT_MAX_TYPE))\
373+
(type == FS_FT_FDB_RX) ? MLX5_CAP_ESW_FLOWTABLE_FDB(mdev, cap) : \
374+
(type == FS_FT_FDB_TX) ? MLX5_CAP_ESW_FLOWTABLE_FDB(mdev, cap) : \
375+
(BUILD_BUG_ON_ZERO(FS_FT_FDB_TX != FS_FT_MAX_TYPE))\
372376
)
373377

374378
#endif

include/linux/mlx5/qp.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -149,6 +149,7 @@ enum {
149149
MLX5_WQE_CTRL_CQ_UPDATE = 2 << 2,
150150
MLX5_WQE_CTRL_CQ_UPDATE_AND_EQE = 3 << 2,
151151
MLX5_WQE_CTRL_SOLICITED = 1 << 1,
152+
MLX5_WQE_CTRL_INITIATOR_SMALL_FENCE = 1 << 5,
152153
};
153154

154155
enum {

0 commit comments

Comments
 (0)