]> git.baikalelectronics.ru Git - kernel.git/commit
net/mlx5: Add rate limit print macros
authorAya Levin <ayal@mellanox.com>
Fri, 29 Mar 2019 22:38:02 +0000 (15:38 -0700)
committerSaeed Mahameed <saeedm@mellanox.com>
Tue, 2 Apr 2019 19:49:38 +0000 (12:49 -0700)
commit620f06b295d6da359d58c6de4db112434af7a4a2
treedaca4314b75395bfb8041896ff6818dc317ff99f
parent5c212c938f96f3ac564b2095499068f7ba733dec
net/mlx5: Add rate limit print macros

Add rate limited print macros for warning and info level. This protects
the system from burst of prints depleting HW resources and spamming dmesg.

Signed-off-by: Aya Levin <ayal@mellanox.com>
Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
drivers/net/ethernet/mellanox/mlx5/core/mlx5_core.h