mirror_ubuntu-kernels/drivers/net/wireless/intel/iwlwifi/dvm
Johannes Berg e5f1cc98cc iwlwifi: allow rate-limited error messages
Sometimes we might want to have an error message for something
related to TX/RX, but if that somehow happens frequently it'll
overwhelm the logs. Add IWL_ERR_LIMIT() to alleviate that by
rate-limiting those messages.

To do this, rework __iwl_err() a bit to have a mode argument
instead of passing yet another (bool) argument to it.

Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Luca Coelho <luciano.coelho@intel.com>
Link: https://lore.kernel.org/r/iwlwifi.20211017162352.2cb1e6b75672.Iec5b1c1bcc6ebc87c586921a6c5c2a937f49e83c@changeid
Signed-off-by: Luca Coelho <luciano.coelho@intel.com>
2021-10-22 10:49:03 +03:00
..
agn.h iwlwifi: allow rate-limited error messages 2021-10-22 10:49:03 +03:00
calib.c iwlwifi: use SPDX tags 2020-12-10 00:15:31 +02:00
calib.h iwlwifi: use SPDX tags 2020-12-10 00:15:31 +02:00
commands.h iwlwifi: use SPDX tags 2020-12-10 00:15:31 +02:00
debugfs.c iwlwifi: remove contact information 2021-10-22 10:48:59 +03:00
dev.h iwlwifi: remove contact information 2021-10-22 10:48:59 +03:00
devices.c iwlwifi: remove contact information 2021-10-22 10:48:59 +03:00
led.c iwlwifi: remove contact information 2021-10-22 10:48:59 +03:00
led.h iwlwifi: remove contact information 2021-10-22 10:48:59 +03:00
lib.c iwlwifi: remove contact information 2021-10-22 10:48:59 +03:00
mac80211.c iwlwifi: remove contact information 2021-10-22 10:48:59 +03:00
main.c iwlwifi: remove contact information 2021-10-22 10:48:59 +03:00
Makefile wireless: prefix header search paths with $(srctree)/ 2019-02-01 14:42:25 +02:00
power.c iwlwifi: remove contact information 2021-10-22 10:48:59 +03:00
power.h iwlwifi: remove contact information 2021-10-22 10:48:59 +03:00
rs.c iwlwifi: remove contact information 2021-10-22 10:48:59 +03:00
rs.h iwlwifi: remove contact information 2021-10-22 10:48:59 +03:00
rx.c iwlwifi: remove contact information 2021-10-22 10:48:59 +03:00
rxon.c iwlwifi: remove contact information 2021-10-22 10:48:59 +03:00
scan.c iwlwifi: remove contact information 2021-10-22 10:48:59 +03:00
sta.c iwlwifi: remove contact information 2021-10-22 10:48:59 +03:00
tt.c iwlwifi: remove contact information 2021-10-22 10:48:59 +03:00
tt.h iwlwifi: remove contact information 2021-10-22 10:48:59 +03:00
tx.c iwlwifi: remove contact information 2021-10-22 10:48:59 +03:00
ucode.c iwlwifi: remove contact information 2021-10-22 10:48:59 +03:00