Browse Source

msm: ipa4: Add ratelimit log in per client stats case

Log is over flodded during bootup if per client stats
is not configured. Add ratelimit log to control the log.

Change-Id: I918984f58b4de07be45d1d5e094c694593262c45
Signed-off-by: Pooja Kumari <[email protected]>
Pooja Kumari 4 years ago
parent
commit
14f2078189
1 changed files with 3 additions and 3 deletions
  1. 3 3
      drivers/platform/msm/ipa/ipa_v3/rmnet_ipa.c

+ 3 - 3
drivers/platform/msm/ipa/ipa_v3/rmnet_ipa.c

@@ -4665,7 +4665,7 @@ int rmnet_ipa3_query_per_client_stats(
 	/* Check if Source pipe is valid. */
 	if (rmnet_ipa3_ctx->tether_device
 		[data->device_type].ul_src_pipe == -1) {
-		IPAWANERR("Device not initialized: %d\n", data->device_type);
+		IPAWANERR_RL("Device not initialized: %d\n", data->device_type);
 		mutex_unlock(&rmnet_ipa3_ctx->per_client_stats_guard);
 		return -EINVAL;
 	}
@@ -4697,7 +4697,7 @@ int rmnet_ipa3_query_per_client_stats(
 		 */
 		if (data->disconnect_clnt &&
 			lan_client->inited) {
-			IPAWANERR("Client not inited. Try again.\n");
+			IPAWANERR_RL("Client not inited. Try again.\n");
 			mutex_unlock(&rmnet_ipa3_ctx->per_client_stats_guard);
 			return -EAGAIN;
 		}
@@ -4709,7 +4709,7 @@ int rmnet_ipa3_query_per_client_stats(
 		 */
 		if (data->disconnect_clnt &&
 			rmnet_ipa3_check_any_client_inited(data->device_type)) {
-			IPAWANERR("CLient not inited. Try again.\n");
+			IPAWANERR_RL("CLient not inited. Try again.\n");
 			mutex_unlock(&rmnet_ipa3_ctx->per_client_stats_guard);
 			return -EAGAIN;
 		}