qcacmn: Pktlog Enhancements

1. Reduce the log level for every buffer received
   from firmware
2. Set the default pktlog buffer size to 10MB.

Change-Id: Iad8827084579592fcfa69056dcfc9d57095151e7
CRs-Fixed: 2364380
This commit is contained in:
Venkata Sharath Chandra Manchala
2018-12-10 16:42:31 -08:00
committed by nshrivas
parent ce2009b364
commit 96e3633874
2 changed files with 4 additions and 5 deletions

View File

@@ -2848,8 +2848,7 @@ dp_ppdu_stats_ind_handler(struct htt_soc *soc,
u_int8_t pdev_id;
bool free_buf;
qdf_nbuf_set_pktlen(htt_t2h_msg, HTT_T2H_MAX_MSG_SIZE);
QDF_TRACE(QDF_MODULE_ID_TXRX, QDF_TRACE_LEVEL_INFO,
"received HTT_T2H_MSG_TYPE_PPDU_STATS_IND");
dp_debug("received HTT_T2H_MSG_TYPE_PPDU_STATS_IND");
pdev_id = HTT_T2H_PPDU_STATS_PDEV_ID_GET(*msg_word);
pdev_id = DP_HW2SW_MACID(pdev_id);
free_buf = dp_txrx_ppdu_stats_handler(soc->dp_soc, pdev_id,
@@ -2884,8 +2883,8 @@ dp_pktlog_msg_handler(struct htt_soc *soc,
{
uint8_t pdev_id;
uint32_t *pl_hdr;
QDF_TRACE(QDF_MODULE_ID_TXRX, QDF_TRACE_LEVEL_INFO,
"received HTT_T2H_MSG_TYPE_PKTLOG");
dp_debug("received HTT_T2H_MSG_TYPE_PKTLOG");
pdev_id = HTT_T2H_PKTLOG_PDEV_ID_GET(*msg_word);
pdev_id = DP_HW2SW_MACID(pdev_id);
pl_hdr = (msg_word + 1);

View File

@@ -25,7 +25,7 @@
#include <pktlog_ac.h>
#define PKTLOG_DEFAULT_BUFSIZE (1 * 1024 * 1024) /* 1MB */
#define PKTLOG_DEFAULT_BUFSIZE (10 * 1024 * 1024) /* 10MB */
#define PKTLOG_DEFAULT_SACK_THR 3
#define PKTLOG_DEFAULT_TAIL_LENGTH 100
#define PKTLOG_DEFAULT_THRUPUT_THRESH (64 * 1024)