Commit c50775d0 authored by Roi Dayan's avatar Roi Dayan Committed by Saeed Mahameed

net/mlx5e: Use NL_SET_ERR_MSG_MOD() for errors parsing tunnel attributes

This to be consistent and adds the module name to the error message.
Signed-off-by: default avatarRoi Dayan <roid@nvidia.com>
Signed-off-by: default avatarSaeed Mahameed <saeedm@nvidia.com>
parent f3e02e47
...@@ -1682,8 +1682,8 @@ enc_opts_is_dont_care_or_full_match(struct mlx5e_priv *priv, ...@@ -1682,8 +1682,8 @@ enc_opts_is_dont_care_or_full_match(struct mlx5e_priv *priv,
if (opt->opt_class != htons(U16_MAX) || if (opt->opt_class != htons(U16_MAX) ||
opt->type != U8_MAX) { opt->type != U8_MAX) {
NL_SET_ERR_MSG(extack, NL_SET_ERR_MSG_MOD(extack,
"Partial match of tunnel options in chain > 0 isn't supported"); "Partial match of tunnel options in chain > 0 isn't supported");
netdev_warn(priv->netdev, netdev_warn(priv->netdev,
"Partial match of tunnel options in chain > 0 isn't supported"); "Partial match of tunnel options in chain > 0 isn't supported");
return -EOPNOTSUPP; return -EOPNOTSUPP;
...@@ -1899,8 +1899,8 @@ static int parse_tunnel_attr(struct mlx5e_priv *priv, ...@@ -1899,8 +1899,8 @@ static int parse_tunnel_attr(struct mlx5e_priv *priv,
if ((needs_mapping || sets_mapping) && if ((needs_mapping || sets_mapping) &&
!mlx5_eswitch_reg_c1_loopback_enabled(esw)) { !mlx5_eswitch_reg_c1_loopback_enabled(esw)) {
NL_SET_ERR_MSG(extack, NL_SET_ERR_MSG_MOD(extack,
"Chains on tunnel devices isn't supported without register loopback support"); "Chains on tunnel devices isn't supported without register loopback support");
netdev_warn(priv->netdev, netdev_warn(priv->netdev,
"Chains on tunnel devices isn't supported without register loopback support"); "Chains on tunnel devices isn't supported without register loopback support");
return -EOPNOTSUPP; return -EOPNOTSUPP;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment