]> git.itanic.dy.fi Git - linux-stable/commitdiff
net/mlx5: Add new WQE for updating flow table
authorYevgeny Kliteynik <kliteyn@nvidia.com>
Mon, 29 Aug 2022 22:20:40 +0000 (01:20 +0300)
committerSaeed Mahameed <saeedm@nvidia.com>
Wed, 12 Apr 2023 03:57:37 +0000 (20:57 -0700)
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>
include/linux/mlx5/device.h
include/linux/mlx5/qp.h

index af4dd536a52c6da78c40590eb562063751ec7000..e4aa147ab39041f3abb0e2a3cae8dce09f08ce5b 100644 (file)
@@ -442,6 +442,8 @@ enum {
 
        MLX5_OPCODE_UMR                 = 0x25,
 
+       MLX5_OPCODE_FLOW_TBL_ACCESS     = 0x2c,
+
        MLX5_OPCODE_ACCESS_ASO          = 0x2d,
 };
 
index df55fbb657177de9f85b7e934613b4c2df374f84..bd53cf4be7bdcbe4ea47ab640fbe0052ffc88bef 100644 (file)
@@ -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);