mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-05-02 08:39:08 -04:00
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 <paulb@mellanox.com> Reviewed-by: Oz Shlomo <ozsh@mellanox.com> Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
This commit is contained in:
committed by
Saeed Mahameed
parent
aded104d39
commit
636bb96852
@@ -1985,11 +1985,11 @@ static int parse_tunnel_attr(struct mlx5e_priv *priv,
|
||||
*match_inner = !needs_mapping;
|
||||
|
||||
if ((needs_mapping || sets_mapping) &&
|
||||
!mlx5_eswitch_vport_match_metadata_enabled(esw)) {
|
||||
!mlx5_eswitch_reg_c1_loopback_enabled(esw)) {
|
||||
NL_SET_ERR_MSG(extack,
|
||||
"Chains on tunnel devices isn't supported without register metadata support");
|
||||
"Chains on tunnel devices isn't supported without register loopback support");
|
||||
netdev_warn(priv->netdev,
|
||||
"Chains on tunnel devices isn't supported without register metadata support");
|
||||
"Chains on tunnel devices isn't supported without register loopback support");
|
||||
return -EOPNOTSUPP;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user