From c3ba8ecb767f0d34c792c82a92c378195f3530b4 Mon Sep 17 00:00:00 2001 From: Xueming Li Date: Tue, 3 Nov 2020 11:01:39 +0000 Subject: [PATCH] net/mlx5: fix missing meter packet For transfer flow with meter, packet was passed without applying flow action. The group level was multiplied by 10 for group level 65531. This patch fixes this issue by correcting suffix table group level calculation. Fixes: 3e8f3e51fd93 ("net/mlx5: fix meter table definitions") Cc: stable@dpdk.org Signed-off-by: Xueming Li Reviewed-by: Suanming Mou Acked-by: Matan Azrad --- drivers/net/mlx5/mlx5.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/net/mlx5/mlx5.h b/drivers/net/mlx5/mlx5.h index 9a87800112..ed791c8565 100644 --- a/drivers/net/mlx5/mlx5.h +++ b/drivers/net/mlx5/mlx5.h @@ -611,9 +611,9 @@ struct mlx5_flow_tbl_resource { #define MLX5_FLOW_MREG_ACT_TABLE_GROUP (MLX5_MAX_TABLES - 1) #define MLX5_FLOW_MREG_CP_TABLE_GROUP (MLX5_MAX_TABLES - 2) /* Tables for metering splits should be added here. */ -#define MLX5_MAX_TABLES_EXTERNAL (MLX5_MAX_TABLES - 3) -#define MLX5_FLOW_TABLE_LEVEL_METER (MLX5_MAX_TABLES - 4) #define MLX5_FLOW_TABLE_LEVEL_SUFFIX (MLX5_MAX_TABLES - 3) +#define MLX5_FLOW_TABLE_LEVEL_METER (MLX5_MAX_TABLES - 4) +#define MLX5_MAX_TABLES_EXTERNAL MLX5_FLOW_TABLE_LEVEL_METER #define MLX5_MAX_TABLES_FDB UINT16_MAX #define MLX5_FLOW_TABLE_FACTOR 10 -- 2.20.1