aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/mellanox/mlxsw/switchx2.c
diff options
context:
space:
mode:
authorJiri Pirko <jiri@mellanox.com>2015-10-15 17:43:22 +0200
committerDavid S. Miller <davem@davemloft.net>2015-10-15 23:27:51 -0700
commit6cf9dc8b77918c30260bc0f2e1853eb7d1ce34e8 (patch)
tree8861f53823c2eceb0f8d012dd0d3a1468904232b /drivers/net/ethernet/mellanox/mlxsw/switchx2.c
parentmlxsw: core: Do not use EMADs in mlxsw_emad_fini (diff)
downloadlinux-dev-6cf9dc8b77918c30260bc0f2e1853eb7d1ce34e8.tar.xz
linux-dev-6cf9dc8b77918c30260bc0f2e1853eb7d1ce34e8.zip
mlxsw: Use dev_level_ratelimited instead of net_ratelimit & dev_level
Signed-off-by: Jiri Pirko <jiri@mellanox.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to '')
-rw-r--r--drivers/net/ethernet/mellanox/mlxsw/switchx2.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/drivers/net/ethernet/mellanox/mlxsw/switchx2.c b/drivers/net/ethernet/mellanox/mlxsw/switchx2.c
index f057d43826f1..698b182c77a3 100644
--- a/drivers/net/ethernet/mellanox/mlxsw/switchx2.c
+++ b/drivers/net/ethernet/mellanox/mlxsw/switchx2.c
@@ -1210,9 +1210,8 @@ static void mlxsw_sx_rx_listener_func(struct sk_buff *skb, u8 local_port,
struct mlxsw_sx_port_pcpu_stats *pcpu_stats;
if (unlikely(!mlxsw_sx_port)) {
- if (net_ratelimit())
- dev_warn(mlxsw_sx->bus_info->dev, "Port %d: skb received for non-existent port\n",
- local_port);
+ dev_warn_ratelimited(mlxsw_sx->bus_info->dev, "Port %d: skb received for non-existent port\n",
+ local_port);
return;
}