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)
commit3732b9720ffe0fedcadbcb5dc3add1dd0d926bcf
treedaca4314b75395bfb8041896ff6818dc317ff99f
parentaa8106f137b93628d531ef5ecbbcbecef99370d7
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