From 7815343ce7e4272e71fdf481faec58d012c28604 Mon Sep 17 00:00:00 2001 From: Yevgeny Kliteynik Date: Sun, 17 Dec 2023 11:19:13 +0200 Subject: [PATCH] mlx5: DR, Use the right GVMI number for drop action [ Upstream commit c16e771d900118180f8e3cdf22cc517ab72db75d ] When FW provides ICM addresses for drop RX/TX, the provided capability is 64 bits that contain its GVMI as well as the ICM address itself. In case of TX DROP this GVMI is different from the GVMI that the domain is operating on. This patch fixes the action to use this GVMI ID, as provided by FW. Fixes: 828351a7da47 ("mlx5: Expose steering action functionality") Signed-off-by: Yevgeny Kliteynik Reviewed-by: Erez Shitrit Signed-off-by: Yishai Hadas Signed-off-by: Nicolas Morey --- providers/mlx5/dr_action.c | 1 + 1 file changed, 1 insertion(+) diff --git a/providers/mlx5/dr_action.c b/providers/mlx5/dr_action.c index f01556dea..326ecfbe0 100644 --- a/providers/mlx5/dr_action.c +++ b/providers/mlx5/dr_action.c @@ -661,6 +661,7 @@ int dr_actions_build_ste_arr(struct mlx5dv_dr_matcher *matcher, switch (action_type) { case DR_ACTION_TYP_DROP: attr.final_icm_addr = nic_dmn->drop_icm_addr; + attr.hit_gvmi = nic_dmn->drop_icm_addr >> 48; break; case DR_ACTION_TYP_FT: if (action->dest_tbl->dmn != dmn) {