Skip to content

Commit 275c21d

Browse files
w1ldptrSaeed Mahameed
authored andcommitted
net/mlx5e: Always set attr mdev pointer
Eswitch offloads extensions in following patches in the series require attr->esw_attr->in_mdev pointer to always be set. This is already the case for all code paths except mlx5_tc_ct_entry_add_rule() function. Fix the function to assign mdev pointer with priv->mdev value. Signed-off-by: Vlad Buslov <[email protected]> Signed-off-by: Dmytro Linkin <[email protected]> Reviewed-by: Roi Dayan <[email protected]> Signed-off-by: Saeed Mahameed <[email protected]>
1 parent 84ae9c1 commit 275c21d

File tree

1 file changed

+2
-0
lines changed
  • drivers/net/ethernet/mellanox/mlx5/core/en

1 file changed

+2
-0
lines changed

drivers/net/ethernet/mellanox/mlx5/core/en/tc_ct.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -711,6 +711,8 @@ mlx5_tc_ct_entry_add_rule(struct mlx5_tc_ct_priv *ct_priv,
711711
attr->outer_match_level = MLX5_MATCH_L4;
712712
attr->counter = entry->counter->counter;
713713
attr->flags |= MLX5_ESW_ATTR_FLAG_NO_IN_PORT;
714+
if (ct_priv->ns_type == MLX5_FLOW_NAMESPACE_FDB)
715+
attr->esw_attr->in_mdev = priv->mdev;
714716

715717
mlx5_tc_ct_set_tuple_match(netdev_priv(ct_priv->netdev), spec, flow_rule);
716718
mlx5e_tc_match_to_reg_match(spec, ZONE_TO_REG, entry->tuple.zone, MLX5_CT_ZONE_MASK);

0 commit comments

Comments
 (0)