Skip to content

Commit 5665954

Browse files
kliteynSaeed Mahameed
authored andcommitted
net/mlx5: DR, Use the right GVMI number for drop action
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 these GVMI IDs, as provided by FW. Fixes: 9db810e ("net/mlx5: DR, Expose steering action functionality") Signed-off-by: Yevgeny Kliteynik <kliteyn@nvidia.com> Signed-off-by: Saeed Mahameed <saeedm@nvidia.com>
1 parent ec7cc38 commit 5665954

File tree

1 file changed

+1
-0
lines changed
  • drivers/net/ethernet/mellanox/mlx5/core/steering

1 file changed

+1
-0
lines changed

drivers/net/ethernet/mellanox/mlx5/core/steering/dr_action.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -788,6 +788,7 @@ int mlx5dr_actions_build_ste_arr(struct mlx5dr_matcher *matcher,
788788
switch (action_type) {
789789
case DR_ACTION_TYP_DROP:
790790
attr.final_icm_addr = nic_dmn->drop_icm_addr;
791+
attr.hit_gvmi = nic_dmn->drop_icm_addr >> 48;
791792
break;
792793
case DR_ACTION_TYP_FT:
793794
dest_action = action;

0 commit comments

Comments
 (0)