Skip to content

Commit 3d486ec

Browse files
ozshlomoSaeed Mahameed
authored andcommitted
net/mlx5e: Use netdev_info instead of pr_info
The next patch will pass the mlx5e_priv struct to the modify_header_match_supported method. Use this opportunity to refactor the existing pr_info call to a netdev_info call. Signed-off-by: Oz Shlomo <[email protected]> Signed-off-by: Saeed Mahameed <[email protected]>
1 parent a7c119b commit 3d486ec

File tree

1 file changed

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

1 file changed

+5
-3
lines changed

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

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3138,7 +3138,8 @@ static int is_action_keys_supported(const struct flow_action_entry *act,
31383138
return 0;
31393139
}
31403140

3141-
static bool modify_header_match_supported(struct mlx5_flow_spec *spec,
3141+
static bool modify_header_match_supported(struct mlx5e_priv *priv,
3142+
struct mlx5_flow_spec *spec,
31423143
struct flow_action *flow_action,
31433144
u32 actions, bool ct_flow,
31443145
struct netlink_ext_ack *extack)
@@ -3177,7 +3178,8 @@ static bool modify_header_match_supported(struct mlx5_flow_spec *spec,
31773178
ip_proto != IPPROTO_UDP && ip_proto != IPPROTO_ICMP) {
31783179
NL_SET_ERR_MSG_MOD(extack,
31793180
"can't offload re-write of non TCP/UDP");
3180-
pr_info("can't offload re-write of ip proto %d\n", ip_proto);
3181+
netdev_info(priv->netdev, "can't offload re-write of ip proto %d\n",
3182+
ip_proto);
31813183
return false;
31823184
}
31833185

@@ -3212,7 +3214,7 @@ static bool actions_match_supported(struct mlx5e_priv *priv,
32123214
}
32133215

32143216
if (actions & MLX5_FLOW_CONTEXT_ACTION_MOD_HDR)
3215-
return modify_header_match_supported(&parse_attr->spec,
3217+
return modify_header_match_supported(priv, &parse_attr->spec,
32163218
flow_action, actions,
32173219
ct_flow, extack);
32183220

0 commit comments

Comments
 (0)