qcacmn: Implement new INI to switch-on/off excessive logging in DP

In datapath, some of the messages get printed everytime when packet
is received or sent. This situation ends up in excessive logging which
leads to stability issue.

In order to fix the situation, provide knob through INI to control
excessive logging and create new macro for logging the message which
comes under per packet path.

Change-Id: I2af5f9bf39540f952138aa8308401a387fe62bf1
CRs-Fixed: 2376998
Cette révision appartient à :
Krunal Soni
2019-02-12 11:44:46 -08:00
révisé par nshrivas
Parent 9cf1aa027b
révision 03ba0f55cf
5 fichiers modifiés avec 61 ajouts et 3 suppressions

Voir le fichier

@@ -1,5 +1,5 @@
/*
* * Copyright (c) 2013-2019 The Linux Foundation. All rights reserved.
* Copyright (c) 2013-2019 The Linux Foundation. All rights reserved.
*
* Permission to use, copy, modify, and/or distribute this software for
* any purpose with or without fee is hereby granted, provided that the
@@ -203,6 +203,7 @@ struct wlan_cfg_dp_soc_ctxt {
int reo_status_ring;
int rxdma_refill_ring;
int rxdma_err_dst_ring;
uint32_t per_pkt_trace;
bool raw_mode_war;
bool enable_data_stall_detection;
bool disable_intra_bss_fwd;
@@ -982,7 +983,6 @@ wlan_cfg_get_dp_soc_rxdma_err_dst_ring_size(struct wlan_cfg_dp_soc_ctxt *cfg);
bool
wlan_cfg_get_dp_caps(struct wlan_cfg_dp_soc_ctxt *cfg,
enum cdp_capabilities dp_caps);
#ifdef QCA_LL_TX_FLOW_CONTROL_V2
int wlan_cfg_get_tx_flow_stop_queue_th(struct wlan_cfg_dp_soc_ctxt *cfg);