1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768 |
- /*
- * Copyright (c) 2022 Qualcomm Innovation Center, Inc. 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
- * above copyright notice and this permission notice appear in all
- * copies.
- *
- * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL
- * WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED
- * WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE
- * AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL
- * DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR
- * PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
- * TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
- * PERFORMANCE OF THIS SOFTWARE.
- */
- #ifndef WLAN_DP_CFG_H__
- #define WLAN_DP_CFG_H__
- #define CFG_DP_RPS_RX_QUEUE_CPU_MAP_LIST_LEN 30
- #ifdef CONFIG_DP_TRACE
- /* Max length of gDptraceConfig string. e.g.- "1, 6, 1, 62" */
- #define DP_TRACE_CONFIG_STRING_LENGTH (20)
- /* At max 4 DP Trace config parameters are allowed. Refer - gDptraceConfig */
- #define DP_TRACE_CONFIG_NUM_PARAMS (4)
- /*
- * Default value of live mode in case it cannot be determined from cfg string
- * gDptraceConfig
- */
- #define DP_TRACE_CONFIG_DEFAULT_LIVE_MODE (1)
- /*
- * Default value of thresh (packets/second) beyond which DP Trace is disabled.
- * Use this default in case the value cannot be determined from cfg string
- * gDptraceConfig
- */
- #define DP_TRACE_CONFIG_DEFAULT_THRESH (6)
- /*
- * Number of intervals of BW timer to wait before enabling/disabling DP Trace.
- * Since throughput threshold to disable live logging for DP Trace is very low,
- * we calculate throughput based on # packets received in a second.
- * For example assuming bandwidth timer interval is 100ms, and if more than 6
- * prints are received in 10 * 100 ms interval, we want to disable DP Trace
- * live logging. DP_TRACE_CONFIG_DEFAULT_THRESH_TIME_LIMIT is the default
- * value, to be used in case the real value cannot be derived from
- * bw timer interval
- */
- #define DP_TRACE_CONFIG_DEFAULT_THRESH_TIME_LIMIT (10)
- /* Default proto bitmap in case its missing in gDptraceConfig string */
- #define DP_TRACE_CONFIG_DEFAULT_BITMAP \
- (QDF_NBUF_PKT_TRAC_TYPE_EAPOL |\
- QDF_NBUF_PKT_TRAC_TYPE_DHCP |\
- QDF_NBUF_PKT_TRAC_TYPE_MGMT_ACTION |\
- QDF_NBUF_PKT_TRAC_TYPE_ARP |\
- QDF_NBUF_PKT_TRAC_TYPE_ICMP |\
- QDF_NBUF_PKT_TRAC_TYPE_ICMPv6)\
- /* Default verbosity, in case its missing in gDptraceConfig string*/
- #define DP_TRACE_CONFIG_DEFAULT_VERBOSTY QDF_DP_TRACE_VERBOSITY_LOW
- #endif
- #endif /* WLAN_DP_CFG_H__ */
|