Skip to content

Commit

Permalink
net/mlx5: Add new WQE for updating flow table
Browse files Browse the repository at this point in the history
Add new WQE type: FLOW_TBL_ACCESS, which will be used for
writing modify header arguments.
This type has specific control segment and special data segment.

Signed-off-by: Yevgeny Kliteynik <kliteyn@nvidia.com>
Reviewed-by: Alex Vesker <valex@nvidia.com>
Signed-off-by: Saeed Mahameed <saeedm@nvidia.com>
  • Loading branch information
Yevgeny Kliteynik authored and Saeed Mahameed committed Apr 12, 2023
1 parent 9fa7f1d commit 977c4a3
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
2 changes: 2 additions & 0 deletions include/linux/mlx5/device.h
Original file line number Diff line number Diff line change
Expand Up @@ -442,6 +442,8 @@ enum {

MLX5_OPCODE_UMR = 0x25,

MLX5_OPCODE_FLOW_TBL_ACCESS = 0x2c,

MLX5_OPCODE_ACCESS_ASO = 0x2d,
};

Expand Down
10 changes: 10 additions & 0 deletions include/linux/mlx5/qp.h
Original file line number Diff line number Diff line change
Expand Up @@ -499,6 +499,16 @@ struct mlx5_stride_block_ctrl_seg {
__be16 num_entries;
};

struct mlx5_wqe_flow_update_ctrl_seg {
__be32 flow_idx_update;
__be32 dest_handle;
u8 reserved0[40];
};

struct mlx5_wqe_header_modify_argument_update_seg {
u8 argument_list[64];
};

struct mlx5_core_qp {
struct mlx5_core_rsc_common common; /* must be first */
void (*event) (struct mlx5_core_qp *, int);
Expand Down

0 comments on commit 977c4a3

Please sign in to comment.