[PATCH v3 3/5] common/mlx5: update MTR ASO definitions
Gregory Etelson
getelson at nvidia.com
Sun May 7 09:39:50 CEST 2023
Update MTR ASO definitions for QUOTA flow action.
Quota flow action requires WQE READ capability and access to
token fields.
Signed-off-by: Gregory Etelson <getelson at nvidia.com>
Acked-by: Viacheslav Ovsiienko <viacheslavo at nvidia.com>
---
drivers/common/mlx5/mlx5_prm.h | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/drivers/common/mlx5/mlx5_prm.h b/drivers/common/mlx5/mlx5_prm.h
index ed3d5efbb7..9ba3c5d008 100644
--- a/drivers/common/mlx5/mlx5_prm.h
+++ b/drivers/common/mlx5/mlx5_prm.h
@@ -3949,6 +3949,8 @@ enum mlx5_aso_op {
ASO_OPER_LOGICAL_OR = 0x1,
};
+#define MLX5_ASO_CSEG_READ_ENABLE 1
+
/* ASO WQE CTRL segment. */
struct mlx5_aso_cseg {
uint32_t va_h;
@@ -3963,6 +3965,8 @@ struct mlx5_aso_cseg {
uint64_t data_mask;
} __rte_packed;
+#define MLX5_MTR_MAX_TOKEN_VALUE INT32_MAX
+
/* A meter data segment - 2 per ASO WQE. */
struct mlx5_aso_mtr_dseg {
uint32_t v_bo_sc_bbog_mm;
--
2.34.1
More information about the dev
mailing list