瀏覽代碼

qcacmn: fix excessive logging when RX invalid peer data

To avoid excessive logging to console, control the log rate when
RX data peer is invalid in function dp_rx_err_deliver, use API
QDF_TRACE_ERROR_RL instead of original QDF_TRACE.

CRs-Fixed: 2300774
Change-Id: If1bf3fd93801e0ef37c7fdb1a32cda16aa429464
Jinwei Chen 6 年之前
父節點
當前提交
a1f53043bb
共有 1 個文件被更改,包括 1 次插入2 次删除
  1. 1 2
      dp/wifi3.0/dp_rx_err.c

+ 1 - 2
dp/wifi3.0/dp_rx_err.c

@@ -786,8 +786,7 @@ dp_rx_err_deliver(struct dp_soc *soc, qdf_nbuf_t nbuf, uint8_t *rx_tlv_hdr)
 	qdf_nbuf_set_rx_chfrag_end(nbuf, 1);
 
 	if (!peer) {
-		QDF_TRACE(QDF_MODULE_ID_DP, QDF_TRACE_LEVEL_ERROR,
-				FL("peer is NULL"));
+		QDF_TRACE_ERROR_RL(QDF_MODULE_ID_DP, "peer is NULL");
 		DP_STATS_INC_PKT(soc, rx.err.rx_invalid_peer, 1,
 				qdf_nbuf_len(nbuf));
 		/* Trigger invalid peer handler wrapper */