From: Yevgeny Kliteynik <klit...@nvidia.com>

Reorganize struct mlx5dr_rule_resize_info fields to
reduce its size in memory.

Signed-off-by: Yevgeny Kliteynik <klit...@nvidia.com>
---
 drivers/net/mlx5/hws/mlx5dr_rule.h | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/net/mlx5/hws/mlx5dr_rule.h 
b/drivers/net/mlx5/hws/mlx5dr_rule.h
index bc542eb543..33779ade48 100644
--- a/drivers/net/mlx5/hws/mlx5dr_rule.h
+++ b/drivers/net/mlx5/hws/mlx5dr_rule.h
@@ -39,11 +39,11 @@ struct mlx5dr_rule_match_tag {
 };
 
 struct mlx5dr_rule_resize_info {
-       uint8_t state;
+       struct mlx5dr_pool *action_ste_pool;
        uint32_t rtc_0;
        uint32_t rtc_1;
        uint32_t rule_idx;
-       struct mlx5dr_pool *action_ste_pool;
+       uint8_t state;
        uint8_t ctrl_seg[MLX5DR_WQE_SZ_GTA_CTRL]; /* Ctrl segment of STE: 48 
bytes */
        uint8_t data_seg[MLX5DR_WQE_SZ_GTA_DATA]; /* Data segment of STE: 64 
bytes */
 };
-- 
2.25.1

Reply via email to