qcacld-3.0: Rate limit error logs for lim_defer_msg
Rate limit error logs for lim_defer_msg to avoid potential excessive logging. Change-Id: Icfe55b113b62d95b8259899b03602386e2127e5e CRs-Fixed: 2867156
This commit is contained in:
@@ -523,8 +523,7 @@ static bool def_msg_decision(struct mac_context *mac_ctx,
|
|||||||
if (mac_ctx->lim.gLimSmeState == eLIM_SME_OFFLINE_STATE) {
|
if (mac_ctx->lim.gLimSmeState == eLIM_SME_OFFLINE_STATE) {
|
||||||
/* Defer processing this message */
|
/* Defer processing this message */
|
||||||
if (lim_defer_msg(mac_ctx, lim_msg) != TX_SUCCESS) {
|
if (lim_defer_msg(mac_ctx, lim_msg) != TX_SUCCESS) {
|
||||||
QDF_TRACE(QDF_MODULE_ID_PE, LOGE,
|
pe_err_rl("Unable to Defer Msg");
|
||||||
FL("Unable to Defer Msg"));
|
|
||||||
lim_log_session_states(mac_ctx);
|
lim_log_session_states(mac_ctx);
|
||||||
lim_handle_defer_msg_error(mac_ctx, lim_msg);
|
lim_handle_defer_msg_error(mac_ctx, lim_msg);
|
||||||
}
|
}
|
||||||
@@ -1009,7 +1008,8 @@ uint32_t lim_defer_msg(struct mac_context *mac, struct scheduler_msg *pMsg)
|
|||||||
(mac, NO_SESSION,
|
(mac, NO_SESSION,
|
||||||
LIM_TRACE_MAKE_RXMSG(pMsg->type, LIM_MSG_DEFERRED)));
|
LIM_TRACE_MAKE_RXMSG(pMsg->type, LIM_MSG_DEFERRED)));
|
||||||
} else {
|
} else {
|
||||||
pe_err("Dropped lim message (0x%X) Message %s", pMsg->type, lim_msg_str(pMsg->type));
|
pe_err_rl("Dropped lim message (0x%X) Message %s", pMsg->type,
|
||||||
|
lim_msg_str(pMsg->type));
|
||||||
MTRACE(mac_trace_msg_rx
|
MTRACE(mac_trace_msg_rx
|
||||||
(mac, NO_SESSION,
|
(mac, NO_SESSION,
|
||||||
LIM_TRACE_MAKE_RXMSG(pMsg->type, LIM_MSG_DROPPED)));
|
LIM_TRACE_MAKE_RXMSG(pMsg->type, LIM_MSG_DROPPED)));
|
||||||
|
@@ -704,8 +704,8 @@ uint8_t lim_write_deferred_msg_q(struct mac_context *mac_ctx,
|
|||||||
* We reach the quota for management frames,
|
* We reach the quota for management frames,
|
||||||
* drop this one
|
* drop this one
|
||||||
*/
|
*/
|
||||||
pe_warn("Too many queue->MsgQ Msg: %d count: %d",
|
pe_warn_rl("Too many queue->MsgQ Msg: %d count: %d",
|
||||||
lim_msg->type, count);
|
lim_msg->type, count);
|
||||||
/* Return error, caller knows what to do */
|
/* Return error, caller knows what to do */
|
||||||
return TX_QUEUE_FULL;
|
return TX_QUEUE_FULL;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user