Browse Source

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
Rakesh Pillai 5 years ago
parent
commit
5ff0936c12
1 changed files with 1 additions and 3 deletions
  1. 1 3
      dp/wifi3.0/dp_rx_mon_status.c

+ 1 - 3
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,