From 5ff0936c12a791f613c696020e64eb64289fe5dc Mon Sep 17 00:00:00 2001 From: Rakesh Pillai Date: Mon, 4 May 2020 19:39:16 +0530 Subject: [PATCH] qcacmn: Ratelimit status nbuf alloc failure logging The status nbuf replenish can fail in low memory scenario, and the error logging can flood the console. Ratelimit the status nbuf allocation failure logging. Change-Id: I8e26b1060fdca62d36236f2d57fbbf7be165e3c6 CRs-Fixed: 2678202 --- dp/wifi3.0/dp_rx_mon_status.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/dp/wifi3.0/dp_rx_mon_status.c b/dp/wifi3.0/dp_rx_mon_status.c index 2cce5925e1c9..8fdbf2103e47 100644 --- a/dp/wifi3.0/dp_rx_mon_status.c +++ b/dp/wifi3.0/dp_rx_mon_status.c @@ -1880,9 +1880,7 @@ dp_rx_mon_status_srng_process(struct dp_soc *soc, uint32_t mac_id, rx_desc_pool = &soc->rx_desc_status[mac_id]; - QDF_TRACE(QDF_MODULE_ID_DP, QDF_TRACE_LEVEL_ERROR, - "%s: fail to allocate or map qdf_nbuf", - __func__); + dp_info_rl("fail to allocate or map qdf_nbuf"); dp_rx_add_to_free_desc_list(&desc_list, &tail, rx_desc); dp_rx_add_desc_list_to_free_list(soc, &desc_list,