msm: ipa3: Rate limited the error logging
Rate limit the excessive ipa error logging in a test scenario. Change-Id: Iaf660eea3e35b8d8fe91d5b3a2654b5877e31886
This commit is contained in:
@@ -2349,7 +2349,7 @@ static int ipa3_ioctl_fnr_counter_alloc(unsigned long arg)
|
||||
|
||||
if (copy_from_user(header, (const void __user *)arg,
|
||||
sizeof(struct ipa_ioc_flt_rt_counter_alloc))) {
|
||||
IPAERR("copy_from_user fails\n");
|
||||
IPAERR_RL("copy_from_user fails\n");
|
||||
return -EFAULT;
|
||||
}
|
||||
if (((struct ipa_ioc_flt_rt_counter_alloc *)
|
||||
@@ -2358,25 +2358,25 @@ static int ipa3_ioctl_fnr_counter_alloc(unsigned long arg)
|
||||
((struct ipa_ioc_flt_rt_counter_alloc *)
|
||||
header)->sw_counter.num_counters >
|
||||
IPA_FLT_RT_SW_COUNTER) {
|
||||
IPAERR("failed: wrong sw/hw num_counters\n");
|
||||
IPAERR_RL("failed: wrong sw/hw num_counters\n");
|
||||
return -EPERM;
|
||||
}
|
||||
if (((struct ipa_ioc_flt_rt_counter_alloc *)
|
||||
header)->hw_counter.num_counters == 0 &&
|
||||
((struct ipa_ioc_flt_rt_counter_alloc *)
|
||||
header)->sw_counter.num_counters == 0) {
|
||||
IPAERR("failed: both sw/hw num_counters 0\n");
|
||||
IPAERR_RL("failed: both sw/hw num_counters 0\n");
|
||||
return -EPERM;
|
||||
}
|
||||
retval = ipa3_alloc_counter_id
|
||||
((struct ipa_ioc_flt_rt_counter_alloc *)header);
|
||||
if (retval < 0) {
|
||||
IPAERR("ipa3_alloc_counter_id failed\n");
|
||||
IPAERR_RL("ipa3_alloc_counter_id failed\n");
|
||||
return retval;
|
||||
}
|
||||
if (copy_to_user((void __user *)arg, header,
|
||||
sizeof(struct ipa_ioc_flt_rt_counter_alloc))) {
|
||||
IPAERR("copy_to_user fails\n");
|
||||
IPAERR_RL("copy_to_user fails\n");
|
||||
ipa3_counter_remove_hdl(
|
||||
((struct ipa_ioc_flt_rt_counter_alloc *)
|
||||
header)->hdl);
|
||||
|
@@ -605,7 +605,7 @@ static int __ipa_add_hdr(struct ipa_hdr_add *hdr, bool user,
|
||||
|
||||
/* return if adding the same name */
|
||||
if (!strcmp(entry_t->name, entry->name) && (user == true)) {
|
||||
IPAERR("IPACM Trying to add hdr %s len=%d, duplicate entry, return old one\n",
|
||||
IPAERR_RL("IPACM Trying to add hdr %s len=%d, duplicate entry, return old one\n",
|
||||
entry->name, entry->hdr_len);
|
||||
|
||||
/* return the original entry */
|
||||
|
@@ -2076,7 +2076,7 @@ int ipa3_reset_rt(enum ipa_ip_type ip, bool user_only)
|
||||
/* commit the change to IPA-HW */
|
||||
if (ipa3_ctx->ctrl->ipa3_commit_rt(IPA_IP_v4) ||
|
||||
ipa3_ctx->ctrl->ipa3_commit_rt(IPA_IP_v6)) {
|
||||
IPAERR("fail to commit rt-rule\n");
|
||||
IPAERR_RL("fail to commit rt-rule\n");
|
||||
WARN_ON_RATELIMIT_IPA(1);
|
||||
mutex_unlock(&ipa3_ctx->lock);
|
||||
return -EPERM;
|
||||
|
Fai riferimento in un nuovo problema
Block a user