Skip to content

Commit

Permalink
mlx5: DR, Use the right GVMI number for drop action
Browse files Browse the repository at this point in the history
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: 828351a ("mlx5: Expose steering action functionality")
Signed-off-by: Yevgeny Kliteynik <kliteyn@nvidia.com>
Reviewed-by: Erez Shitrit <erezsh@nvidia.com>
Signed-off-by: Yishai Hadas <yishaih@nvidia.com>
  • Loading branch information
kliteyn authored and Yishai Hadas committed Dec 28, 2023
1 parent bf930cc commit c16e771
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions providers/mlx5/dr_action.c
Expand Up @@ -684,6 +684,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:
{
Expand Down

0 comments on commit c16e771

Please sign in to comment.