Skip to content

Commit 636bb96

Browse files
Paul BlakeySaeed Mahameed
authored andcommitted
net/mlx5e: en_tc: Rely just on register loopback for tunnel restoration
Register loopback which is needed for tunnel restoration, is now always enabled if supported and not just with metadata enabled, check for that instead. Signed-off-by: Paul Blakey <[email protected]> Reviewed-by: Oz Shlomo <[email protected]> Signed-off-by: Saeed Mahameed <[email protected]>
1 parent aded104 commit 636bb96

File tree

1 file changed

+3
-3
lines changed
  • drivers/net/ethernet/mellanox/mlx5/core

1 file changed

+3
-3
lines changed

drivers/net/ethernet/mellanox/mlx5/core/en_tc.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1985,11 +1985,11 @@ static int parse_tunnel_attr(struct mlx5e_priv *priv,
19851985
*match_inner = !needs_mapping;
19861986

19871987
if ((needs_mapping || sets_mapping) &&
1988-
!mlx5_eswitch_vport_match_metadata_enabled(esw)) {
1988+
!mlx5_eswitch_reg_c1_loopback_enabled(esw)) {
19891989
NL_SET_ERR_MSG(extack,
1990-
"Chains on tunnel devices isn't supported without register metadata support");
1990+
"Chains on tunnel devices isn't supported without register loopback support");
19911991
netdev_warn(priv->netdev,
1992-
"Chains on tunnel devices isn't supported without register metadata support");
1992+
"Chains on tunnel devices isn't supported without register loopback support");
19931993
return -EOPNOTSUPP;
19941994
}
19951995

0 commit comments

Comments
 (0)