]> 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)
commit3b5c67ecb86f20e67f3aa5b086618e038b21e48c
treedaca4314b75395bfb8041896ff6818dc317ff99f
parent8b311494d8c4fef51f6499f89cc4b301230703fe
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