123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697 |
- /*
- * Copyright (c) 2018 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
- * 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.
- */
- /**
- * DOC: This file contains definitions of Data Path configuration.
- */
- #ifndef _CFG_DP_H_
- #define _CFG_DP_H_
- #include "cfg_define.h"
- #define WLAN_CFG_MAX_CLIENTS 64
- #define WLAN_CFG_MAX_CLIENTS_MIN 8
- #define WLAN_CFG_MAX_CLIENTS_MAX 64
- /* Change this to a lower value to enforce scattered idle list mode */
- #define WLAN_CFG_MAX_ALLOC_SIZE 0x200000
- #define WLAN_CFG_MAX_ALLOC_SIZE_MIN 0x200000
- #define WLAN_CFG_MAX_ALLOC_SIZE_MAX 0x200000
- #define WLAN_CFG_NUM_TCL_DATA_RINGS 3
- #define WLAN_CFG_NUM_TCL_DATA_RINGS_MIN 3
- #define WLAN_CFG_NUM_TCL_DATA_RINGS_MAX 3
- #ifdef CONFIG_MCL
- #ifdef QCA_LL_TX_FLOW_CONTROL_V2
- #define WLAN_CFG_TX_FLOW_START_QUEUE_OFFSET 10
- #define WLAN_CFG_TX_FLOW_STOP_QUEUE_TH 15
- #else
- #define WLAN_CFG_TX_FLOW_START_QUEUE_OFFSET 0
- #define WLAN_CFG_TX_FLOW_STOP_QUEUE_TH 0
- #endif
- #else
- #define WLAN_CFG_TX_FLOW_START_QUEUE_OFFSET 0
- #define WLAN_CFG_TX_FLOW_STOP_QUEUE_TH 0
- #endif
- #define WLAN_CFG_PER_PDEV_TX_RING_MIN 0
- #define WLAN_CFG_PER_PDEV_TX_RING_MAX 1
- #ifdef CONFIG_MCL
- #define WLAN_CFG_PER_PDEV_RX_RING 0
- #define WLAN_CFG_PER_PDEV_LMAC_RING 0
- #define WLAN_LRO_ENABLE 0
- #ifdef IPA_OFFLOAD
- /* Size of TCL TX Ring */
- #define WLAN_CFG_TX_RING_SIZE 1024
- #define WLAN_CFG_PER_PDEV_TX_RING 0
- #define WLAN_CFG_IPA_UC_TX_BUF_SIZE 2048
- #define WLAN_CFG_IPA_UC_TX_PARTITION_BASE 3000
- #define WLAN_CFG_IPA_UC_RX_IND_RING_COUNT 1024
- #else
- #define WLAN_CFG_TX_RING_SIZE 512
- #define WLAN_CFG_PER_PDEV_TX_RING 1
- #define WLAN_CFG_IPA_UC_TX_BUF_SIZE 0
- #define WLAN_CFG_IPA_UC_TX_PARTITION_BASE 0
- #define WLAN_CFG_IPA_UC_RX_IND_RING_COUNT 0
- #endif
- #define WLAN_CFG_TX_COMP_RING_SIZE 1024
- /* Tx Descriptor and Tx Extension Descriptor pool sizes */
- #define WLAN_CFG_NUM_TX_DESC 1024
- #define WLAN_CFG_NUM_TX_EXT_DESC 1024
- /* Interrupt Mitigation - Batch threshold in terms of number of frames */
- #define WLAN_CFG_INT_BATCH_THRESHOLD_TX 1
- #define WLAN_CFG_INT_BATCH_THRESHOLD_RX 1
- #define WLAN_CFG_INT_BATCH_THRESHOLD_OTHER 1
- /* Interrupt Mitigation - Timer threshold in us */
- #define WLAN_CFG_INT_TIMER_THRESHOLD_TX 8
- #define WLAN_CFG_INT_TIMER_THRESHOLD_RX 8
- #define WLAN_CFG_INT_TIMER_THRESHOLD_OTHER 8
- #else
- #define WLAN_CFG_PER_PDEV_TX_RING 0
- #define WLAN_CFG_IPA_UC_TX_BUF_SIZE 0
- #define WLAN_CFG_IPA_UC_TX_PARTITION_BASE 0
- #define WLAN_CFG_IPA_UC_RX_IND_RING_COUNT 0
- #endif
- #ifdef CONFIG_WIN
- #define WLAN_CFG_PER_PDEV_RX_RING 0
- #define WLAN_CFG_PER_PDEV_LMAC_RING 1
- #define WLAN_LRO_ENABLE 0
- /* Tx Descriptor and Tx Extension Descriptor pool sizes */
- #ifndef QCA_WIFI_QCA8074_VP
- #define WLAN_CFG_NUM_TX_DESC 0x320000
- #else
- #define WLAN_CFG_NUM_TX_DESC (8 << 10)
- #endif
- #define WLAN_CFG_NUM_TX_EXT_DESC 0x80000
- /* Interrupt Mitigation - Batch threshold in terms of number of frames */
- #define WLAN_CFG_INT_BATCH_THRESHOLD_TX 256
- #define WLAN_CFG_INT_BATCH_THRESHOLD_RX 128
- #define WLAN_CFG_INT_BATCH_THRESHOLD_OTHER 1
- /* Interrupt Mitigation - Timer threshold in us */
- #define WLAN_CFG_INT_TIMER_THRESHOLD_TX 1000
- #define WLAN_CFG_INT_TIMER_THRESHOLD_RX 500
- #define WLAN_CFG_INT_TIMER_THRESHOLD_OTHER 1000
- #define WLAN_CFG_TX_RING_SIZE 512
- /* Size the completion ring using following 2 parameters
- * - NAPI schedule latency (assuming 1 netdev competing for CPU)
- * = 20 ms (2 jiffies)
- * - Worst case PPS requirement = 400K PPS
- *
- * Ring size = 20 * 400 = 8000
- * 8192 is nearest power of 2
- */
- #define WLAN_CFG_TX_COMP_RING_SIZE 0x80000
- #endif
- #define WLAN_CFG_PER_PDEV_RX_RING_MIN 0
- #define WLAN_CFG_PER_PDEV_RX_RING_MAX 0
- #define WLAN_CFG_PER_PDEV_LMAC_RING_MIN 0
- #define WLAN_CFG_PER_PDEV_LMAC_RING_MAX 1
- #define WLAN_CFG_TX_RING_SIZE_MIN 512
- #define WLAN_CFG_TX_RING_SIZE_MAX 2048
- #define WLAN_CFG_TX_COMP_RING_SIZE_MIN 512
- #define WLAN_CFG_TX_COMP_RING_SIZE_MAX 0x80000
- #define WLAN_CFG_NUM_TX_DESC_MIN 1024
- #define WLAN_CFG_NUM_TX_DESC_MAX 0x320000
- #define WLAN_CFG_NUM_TX_EXT_DESC_MIN 1024
- #define WLAN_CFG_NUM_TX_EXT_DESC_MAX 0x80000
- #define WLAN_CFG_INT_BATCH_THRESHOLD_TX_MIN 1
- #define WLAN_CFG_INT_BATCH_THRESHOLD_TX_MAX 256
- #define WLAN_CFG_INT_BATCH_THRESHOLD_RX_MIN 1
- #define WLAN_CFG_INT_BATCH_THRESHOLD_RX_MAX 128
- #define WLAN_CFG_INT_BATCH_THRESHOLD_OTHER_MIN 1
- #define WLAN_CFG_INT_BATCH_THRESHOLD_OTHER_MAX 1
- #define WLAN_CFG_INT_TIMER_THRESHOLD_TX_MIN 8
- #define WLAN_CFG_INT_TIMER_THRESHOLD_TX_MAX 100
- #define WLAN_CFG_INT_TIMER_THRESHOLD_RX_MIN 8
- #define WLAN_CFG_INT_TIMER_THRESHOLD_RX_MAX 500
- #define WLAN_CFG_INT_TIMER_THRESHOLD_OTHER_MIN 8
- #define WLAN_CFG_INT_TIMER_THRESHOLD_OTHER_MAX 1000
- #define WLAN_CFG_NSS_TX_COMP_RING_SIZE 0x2000
- #define WLAN_CFG_NSS_TX_COMP_RING_SIZE_MIN 0x2000
- #define WLAN_CFG_NSS_TX_COMP_RING_SIZE_MAX 0x2000
- #ifdef QCA_LL_TX_FLOW_CONTROL_V2
- /* Per vdev pools */
- #define WLAN_CFG_NUM_TX_DESC_POOL 3
- #define WLAN_CFG_NUM_TXEXT_DESC_POOL 3
- #else /* QCA_LL_TX_FLOW_CONTROL_V2 */
- #ifdef TX_PER_PDEV_DESC_POOL
- #define WLAN_CFG_NUM_TX_DESC_POOL MAX_PDEV_CNT
- #define WLAN_CFG_NUM_TXEXT_DESC_POOL MAX_PDEV_CNT
- #else /* TX_PER_PDEV_DESC_POOL */
- #define WLAN_CFG_NUM_TX_DESC_POOL 3
- #define WLAN_CFG_NUM_TXEXT_DESC_POOL 3
- #endif /* TX_PER_PDEV_DESC_POOL */
- #endif /* QCA_LL_TX_FLOW_CONTROL_V2 */
- #define WLAN_CFG_NUM_TXEXT_DESC_POOL_MIN 1
- #define WLAN_CFG_NUM_TXEXT_DESC_POOL_MAX 4
- #define WLAN_CFG_HTT_PKT_TYPE 2
- #define WLAN_CFG_HTT_PKT_TYPE_MIN 2
- #define WLAN_CFG_HTT_PKT_TYPE_MAX 2
- #define WLAN_CFG_MAX_PEER_ID 64
- #define WLAN_CFG_MAX_PEER_ID_MIN 64
- #define WLAN_CFG_MAX_PEER_ID_MAX 64
- #define WLAN_CFG_RX_DEFRAG_TIMEOUT 100
- #define WLAN_CFG_RX_DEFRAG_TIMEOUT_MIN 100
- #define WLAN_CFG_RX_DEFRAG_TIMEOUT_MAX 100
- #define WLAN_CFG_NUM_TCL_DATA_RINGS 3
- #define WLAN_CFG_NUM_TCL_DATA_RINGS_MIN 3
- #define WLAN_CFG_NUM_TCL_DATA_RINGS_MAX 3
- #define WLAN_CFG_NUM_REO_DEST_RING 4
- #define WLAN_CFG_NUM_REO_DEST_RING_MIN 4
- #define WLAN_CFG_NUM_REO_DEST_RING_MAX 4
- #define WLAN_CFG_WBM_RELEASE_RING_SIZE 64
- #define WLAN_CFG_WBM_RELEASE_RING_SIZE_MIN 64
- #define WLAN_CFG_WBM_RELEASE_RING_SIZE_MAX 64
- #define WLAN_CFG_TCL_CMD_RING_SIZE 32
- #define WLAN_CFG_TCL_CMD_RING_SIZE_MIN 32
- #define WLAN_CFG_TCL_CMD_RING_SIZE_MAX 32
- #define WLAN_CFG_TCL_STATUS_RING_SIZE 32
- #define WLAN_CFG_TCL_STATUS_RING_SIZE_MIN 32
- #define WLAN_CFG_TCL_STATUS_RING_SIZE_MAX 32
- #if defined(QCA_WIFI_QCA6290)
- #define WLAN_CFG_REO_DST_RING_SIZE 1024
- #else
- #define WLAN_CFG_REO_DST_RING_SIZE 2048
- #endif
- #define WLAN_CFG_REO_DST_RING_SIZE_MIN 1024
- #define WLAN_CFG_REO_DST_RING_SIZE_MAX 2048
- #define WLAN_CFG_REO_REINJECT_RING_SIZE 32
- #define WLAN_CFG_REO_REINJECT_RING_SIZE_MIN 32
- #define WLAN_CFG_REO_REINJECT_RING_SIZE_MAX 32
- #define WLAN_CFG_RX_RELEASE_RING_SIZE 1024
- #define WLAN_CFG_RX_RELEASE_RING_SIZE_MIN 8
- #define WLAN_CFG_RX_RELEASE_RING_SIZE_MAX 1024
- #define WLAN_CFG_REO_EXCEPTION_RING_SIZE 128
- #define WLAN_CFG_REO_EXCEPTION_RING_SIZE_MIN 128
- #define WLAN_CFG_REO_EXCEPTION_RING_SIZE_MAX 128
- #define WLAN_CFG_REO_CMD_RING_SIZE 128
- #define WLAN_CFG_REO_CMD_RING_SIZE_MIN 64
- #define WLAN_CFG_REO_CMD_RING_SIZE_MAX 128
- #define WLAN_CFG_REO_STATUS_RING_SIZE 256
- #define WLAN_CFG_REO_STATUS_RING_SIZE_MIN 128
- #define WLAN_CFG_REO_STATUS_RING_SIZE_MAX 256
- #define WLAN_CFG_RXDMA_BUF_RING_SIZE 1024
- #define WLAN_CFG_RXDMA_BUF_RING_SIZE_MIN 1024
- #define WLAN_CFG_RXDMA_BUF_RING_SIZE_MAX 1024
- #define WLAN_CFG_RXDMA_REFILL_RING_SIZE 4096
- #define WLAN_CFG_RXDMA_REFILL_RING_SIZE_MIN 16
- #define WLAN_CFG_RXDMA_REFILL_RING_SIZE_MAX 4096
- #define WLAN_CFG_RXDMA_MONITOR_BUF_RING_SIZE 4096
- #define WLAN_CFG_RXDMA_MONITOR_BUF_RING_SIZE_MIN 16
- #define WLAN_CFG_RXDMA_MONITOR_BUF_RING_SIZE_MAX 8192
- #define WLAN_CFG_RXDMA_MONITOR_DST_RING_SIZE 2048
- #define WLAN_CFG_RXDMA_MONITOR_DST_RING_SIZE_MIN 48
- #define WLAN_CFG_RXDMA_MONITOR_DST_RING_SIZE_MAX 8192
- #define WLAN_CFG_RXDMA_MONITOR_STATUS_RING_SIZE 1024
- #define WLAN_CFG_RXDMA_MONITOR_STATUS_RING_SIZE_MIN 16
- #define WLAN_CFG_RXDMA_MONITOR_STATUS_RING_SIZE_MAX 8192
- #define WLAN_CFG_RXDMA_MONITOR_DESC_RING_SIZE 4096
- #define WLAN_CFG_RXDMA_MONITOR_DESC_RING_SIZE_MIN 4096
- #define WLAN_CFG_RXDMA_MONITOR_DESC_RING_SIZE_MAX 16384
- #define WLAN_CFG_RXDMA_ERR_DST_RING_SIZE 1024
- #define WLAN_CFG_RXDMA_ERR_DST_RING_SIZE_MIN 1024
- #define WLAN_CFG_RXDMA_ERR_DST_RING_SIZE_MAX 8192
- /* DP INI Declerations */
- #define CFG_DP_HTT_PACKET_TYPE \
- CFG_INI_UINT("dp_htt_packet_type", \
- WLAN_CFG_HTT_PKT_TYPE_MIN, \
- WLAN_CFG_HTT_PKT_TYPE_MAX, \
- WLAN_CFG_HTT_PKT_TYPE, \
- CFG_VALUE_OR_DEFAULT, "DP HTT packet type")
- #define CFG_DP_INT_BATCH_THRESHOLD_OTHER \
- CFG_INI_UINT("dp_int_batch_threshold_other", \
- WLAN_CFG_INT_BATCH_THRESHOLD_OTHER_MIN, \
- WLAN_CFG_INT_BATCH_THRESHOLD_OTHER_MAX, \
- WLAN_CFG_INT_BATCH_THRESHOLD_OTHER, \
- CFG_VALUE_OR_DEFAULT, "DP INT threshold Other")
- #define CFG_DP_INT_BATCH_THRESHOLD_RX \
- CFG_INI_UINT("dp_int_batch_threshold_rx", \
- WLAN_CFG_INT_BATCH_THRESHOLD_RX_MIN, \
- WLAN_CFG_INT_BATCH_THRESHOLD_RX_MAX, \
- WLAN_CFG_INT_BATCH_THRESHOLD_RX, \
- CFG_VALUE_OR_DEFAULT, "DP INT threshold Rx")
- #define CFG_DP_INT_BATCH_THRESHOLD_TX \
- CFG_INI_UINT("dp_int_batch_threshold_tx", \
- WLAN_CFG_INT_BATCH_THRESHOLD_TX_MIN, \
- WLAN_CFG_INT_BATCH_THRESHOLD_TX_MAX, \
- WLAN_CFG_INT_BATCH_THRESHOLD_TX, \
- CFG_VALUE_OR_DEFAULT, "DP INT threshold Tx")
- #define CFG_DP_INT_TIMER_THRESHOLD_OTHER \
- CFG_INI_UINT("dp_int_timer_threshold_other", \
- WLAN_CFG_INT_TIMER_THRESHOLD_OTHER_MIN, \
- WLAN_CFG_INT_TIMER_THRESHOLD_OTHER_MAX, \
- WLAN_CFG_INT_TIMER_THRESHOLD_OTHER, \
- CFG_VALUE_OR_DEFAULT, "DP INT timer threshold Other")
- #define CFG_DP_INT_TIMER_THRESHOLD_RX \
- CFG_INI_UINT("dp_int_timer_threshold_rx", \
- WLAN_CFG_INT_TIMER_THRESHOLD_RX_MIN, \
- WLAN_CFG_INT_TIMER_THRESHOLD_RX_MAX, \
- WLAN_CFG_INT_TIMER_THRESHOLD_RX, \
- CFG_VALUE_OR_DEFAULT, "DP INT timer threshold Rx")
- #define CFG_DP_INT_TIMER_THRESHOLD_TX \
- CFG_INI_UINT("dp_int_timer_threshold_tx", \
- WLAN_CFG_INT_TIMER_THRESHOLD_TX_MIN, \
- WLAN_CFG_INT_TIMER_THRESHOLD_TX_MAX, \
- WLAN_CFG_INT_TIMER_THRESHOLD_TX, \
- CFG_VALUE_OR_DEFAULT, "DP INT timer threshold Tx")
- #define CFG_DP_MAX_ALLOC_SIZE \
- CFG_INI_UINT("dp_max_alloc_size", \
- WLAN_CFG_MAX_ALLOC_SIZE_MIN, \
- WLAN_CFG_MAX_ALLOC_SIZE_MAX, \
- WLAN_CFG_MAX_ALLOC_SIZE, \
- CFG_VALUE_OR_DEFAULT, "DP Max Alloc Size")
- #define CFG_DP_MAX_CLIENTS \
- CFG_INI_UINT("dp_max_clients", \
- WLAN_CFG_MAX_CLIENTS_MIN, \
- WLAN_CFG_MAX_CLIENTS_MAX, \
- WLAN_CFG_MAX_CLIENTS, \
- CFG_VALUE_OR_DEFAULT, "DP Max Clients")
- #define CFG_DP_MAX_PEER_ID \
- CFG_INI_UINT("dp_max_peer_id", \
- WLAN_CFG_MAX_PEER_ID_MIN, \
- WLAN_CFG_MAX_PEER_ID_MAX, \
- WLAN_CFG_MAX_PEER_ID, \
- CFG_VALUE_OR_DEFAULT, "DP Max Peer ID")
- #define CFG_DP_REO_DEST_RINGS \
- CFG_INI_UINT("dp_reo_dest_rings", \
- WLAN_CFG_NUM_REO_DEST_RING_MIN, \
- WLAN_CFG_NUM_REO_DEST_RING_MAX, \
- WLAN_CFG_NUM_REO_DEST_RING, \
- CFG_VALUE_OR_DEFAULT, "DP REO Destination Rings")
- #define CFG_DP_TCL_DATA_RINGS \
- CFG_INI_UINT("dp_tcl_data_rings", \
- WLAN_CFG_NUM_TCL_DATA_RINGS_MIN, \
- WLAN_CFG_NUM_TCL_DATA_RINGS_MAX, \
- WLAN_CFG_NUM_TCL_DATA_RINGS, \
- CFG_VALUE_OR_DEFAULT, "DP TCL Data Rings")
- #define CFG_DP_TX_DESC \
- CFG_INI_UINT("dp_tx_desc", \
- WLAN_CFG_NUM_TX_DESC_MIN, \
- WLAN_CFG_NUM_TX_DESC_MAX, \
- WLAN_CFG_NUM_TX_DESC, \
- CFG_VALUE_OR_DEFAULT, "DP Tx Descriptors")
- #define CFG_DP_TX_EXT_DESC \
- CFG_INI_UINT("dp_tx_ext_desc", \
- WLAN_CFG_NUM_TX_EXT_DESC_MIN, \
- WLAN_CFG_NUM_TX_EXT_DESC_MAX, \
- WLAN_CFG_NUM_TX_EXT_DESC, \
- CFG_VALUE_OR_DEFAULT, "DP Tx Ext Descriptors")
- #define CFG_DP_TX_EXT_DESC_POOLS \
- CFG_INI_UINT("dp_tx_ext_desc_pool", \
- WLAN_CFG_NUM_TXEXT_DESC_POOL_MIN, \
- WLAN_CFG_NUM_TXEXT_DESC_POOL_MAX, \
- WLAN_CFG_NUM_TXEXT_DESC_POOL, \
- CFG_VALUE_OR_DEFAULT, "DP Tx Ext Descriptors Pool")
- #define CFG_DP_PDEV_RX_RING \
- CFG_INI_UINT("dp_pdev_rx_ring", \
- WLAN_CFG_PER_PDEV_RX_RING_MIN, \
- WLAN_CFG_PER_PDEV_RX_RING_MAX, \
- WLAN_CFG_PER_PDEV_RX_RING, \
- CFG_VALUE_OR_DEFAULT, "DP PDEV Rx Ring")
- #define CFG_DP_PDEV_TX_RING \
- CFG_INI_UINT("dp_pdev_tx_ring", \
- WLAN_CFG_PER_PDEV_TX_RING_MIN, \
- WLAN_CFG_PER_PDEV_TX_RING_MAX, \
- WLAN_CFG_PER_PDEV_TX_RING, \
- CFG_VALUE_OR_DEFAULT, \
- "DP PDEV Tx Ring")
- #define CFG_DP_RX_DEFRAG_TIMEOUT \
- CFG_INI_UINT("dp_rx_defrag_timeout", \
- WLAN_CFG_RX_DEFRAG_TIMEOUT_MIN, \
- WLAN_CFG_RX_DEFRAG_TIMEOUT_MAX, \
- WLAN_CFG_RX_DEFRAG_TIMEOUT, \
- CFG_VALUE_OR_DEFAULT, "DP Rx Defrag Timeout")
- #define CFG_DP_TX_COMPL_RING_SIZE \
- CFG_INI_UINT("dp_tx_compl_ring_size", \
- WLAN_CFG_TX_COMP_RING_SIZE_MIN, \
- WLAN_CFG_TX_COMP_RING_SIZE_MAX, \
- WLAN_CFG_TX_COMP_RING_SIZE, \
- CFG_VALUE_OR_DEFAULT, "DP Tx Completion Ring Size")
- #define CFG_DP_TX_RING_SIZE \
- CFG_INI_UINT("dp_tx_ring_size", \
- WLAN_CFG_TX_RING_SIZE_MIN,\
- WLAN_CFG_TX_RING_SIZE_MAX,\
- WLAN_CFG_TX_RING_SIZE,\
- CFG_VALUE_OR_DEFAULT, "DP Tx Ring Size")
- #define CFG_DP_NSS_COMP_RING_SIZE \
- CFG_INI_UINT("dp_nss_comp_ring_size", \
- WLAN_CFG_NSS_TX_COMP_RING_SIZE_MIN, \
- WLAN_CFG_NSS_TX_COMP_RING_SIZE_MAX, \
- WLAN_CFG_NSS_TX_COMP_RING_SIZE, \
- CFG_VALUE_OR_DEFAULT, "DP NSS completion Ring Size")
- #define CFG_DP_PDEV_LMAC_RING \
- CFG_INI_UINT("dp_pdev_lmac_ring", \
- WLAN_CFG_PER_PDEV_LMAC_RING_MIN, \
- WLAN_CFG_PER_PDEV_LMAC_RING_MAX, \
- WLAN_CFG_PER_PDEV_LMAC_RING, \
- CFG_VALUE_OR_DEFAULT, "DP pdev LMAC ring")
- #define CFG_DP_BASE_HW_MAC_ID \
- CFG_INI_UINT("dp_base_hw_macid", \
- 0, 1, 1, \
- CFG_VALUE_OR_DEFAULT, "DP Base HW Mac ID")
- #define CFG_DP_RX_HASH \
- CFG_INI_BOOL("dp_rx_hash", true, \
- "DP Rx Hash")
- #define CFG_DP_TSO \
- CFG_INI_BOOL("TSOEnable", false, \
- "DP TSO Enabled")
- #define CFG_DP_LRO \
- CFG_INI_BOOL("LROEnable", WLAN_LRO_ENABLE, \
- "DP LRO Enable")
- #define CFG_DP_SG \
- CFG_INI_BOOL("dp_sg_support", false, \
- "DP SG Enable")
- #define CFG_DP_GRO \
- CFG_INI_BOOL("GROEnable", false, \
- "DP GRO Enable")
- #define CFG_DP_OL_TX_CSUM \
- CFG_INI_BOOL("dp_offload_tx_csum_support", false, \
- "DP tx csum Enable")
- #define CFG_DP_OL_RX_CSUM \
- CFG_INI_BOOL("dp_offload_rx_csum_support", false, \
- "DP rx csum Enable")
- #define CFG_DP_RAWMODE \
- CFG_INI_BOOL("dp_rawmode_support", false, \
- "DP rawmode Enable")
- #define CFG_DP_PEER_FLOW_CTRL \
- CFG_INI_BOOL("dp_peer_flow_control_support", false, \
- "DP peer flow ctrl Enable")
- #define CFG_DP_NAPI \
- CFG_INI_BOOL("dp_napi_enabled", MCL_OR_WIN_VALUE(true, false), \
- "DP Napi Enabled")
- #define CFG_DP_TCP_UDP_CKSUM_OFFLOAD \
- CFG_INI_BOOL("gEnableIpTcpUdpChecksumOffload", true, \
- "DP TCP UDP Checksum Offload")
- #define CFG_DP_DEFRAG_TIMEOUT_CHECK \
- CFG_INI_BOOL("dp_defrag_timeout_check", true, \
- "DP Defrag Timeout Check")
- #define CFG_DP_WBM_RELEASE_RING \
- CFG_INI_UINT("dp_wbm_release_ring", \
- WLAN_CFG_WBM_RELEASE_RING_SIZE_MIN, \
- WLAN_CFG_WBM_RELEASE_RING_SIZE_MAX, \
- WLAN_CFG_WBM_RELEASE_RING_SIZE, \
- CFG_VALUE_OR_DEFAULT, "DP WBM Release Ring")
- #define CFG_DP_TCL_CMD_RING \
- CFG_INI_UINT("dp_tcl_cmd_ring", \
- WLAN_CFG_TCL_CMD_RING_SIZE_MIN, \
- WLAN_CFG_TCL_CMD_RING_SIZE_MAX, \
- WLAN_CFG_TCL_CMD_RING_SIZE, \
- CFG_VALUE_OR_DEFAULT, "DP TCL command ring")
- #define CFG_DP_TCL_STATUS_RING \
- CFG_INI_UINT("dp_tcl_status_ring",\
- WLAN_CFG_TCL_STATUS_RING_SIZE_MIN, \
- WLAN_CFG_TCL_STATUS_RING_SIZE_MAX, \
- WLAN_CFG_TCL_STATUS_RING_SIZE, \
- CFG_VALUE_OR_DEFAULT, "DP TCL status ring")
- #define CFG_DP_REO_REINJECT_RING \
- CFG_INI_UINT("dp_reo_reinject_ring", \
- WLAN_CFG_REO_REINJECT_RING_SIZE_MIN, \
- WLAN_CFG_REO_REINJECT_RING_SIZE_MAX, \
- WLAN_CFG_REO_REINJECT_RING_SIZE, \
- CFG_VALUE_OR_DEFAULT, "DP REO reinject ring")
- #define CFG_DP_RX_RELEASE_RING \
- CFG_INI_UINT("dp_rx_release_ring", \
- WLAN_CFG_RX_RELEASE_RING_SIZE_MIN, \
- WLAN_CFG_RX_RELEASE_RING_SIZE_MAX, \
- WLAN_CFG_RX_RELEASE_RING_SIZE, \
- CFG_VALUE_OR_DEFAULT, "DP Rx release ring")
- #define CFG_DP_REO_EXCEPTION_RING \
- CFG_INI_UINT("dp_reo_exception_ring", \
- WLAN_CFG_REO_EXCEPTION_RING_SIZE_MIN, \
- WLAN_CFG_REO_EXCEPTION_RING_SIZE_MAX, \
- WLAN_CFG_REO_EXCEPTION_RING_SIZE, \
- CFG_VALUE_OR_DEFAULT, "DP REO exception ring")
- #define CFG_DP_REO_CMD_RING \
- CFG_INI_UINT("dp_reo_cmd_ring", \
- WLAN_CFG_REO_CMD_RING_SIZE_MIN, \
- WLAN_CFG_REO_CMD_RING_SIZE_MAX, \
- WLAN_CFG_REO_CMD_RING_SIZE, \
- CFG_VALUE_OR_DEFAULT, "DP REO command ring")
- #define CFG_DP_REO_STATUS_RING \
- CFG_INI_UINT("dp_reo_status_ring", \
- WLAN_CFG_REO_STATUS_RING_SIZE_MIN, \
- WLAN_CFG_REO_STATUS_RING_SIZE_MAX, \
- WLAN_CFG_REO_STATUS_RING_SIZE, \
- CFG_VALUE_OR_DEFAULT, "DP REO status ring")
- #define CFG_DP_RXDMA_BUF_RING \
- CFG_INI_UINT("dp_rxdma_buf_ring", \
- WLAN_CFG_RXDMA_BUF_RING_SIZE_MIN, \
- WLAN_CFG_RXDMA_BUF_RING_SIZE_MAX, \
- WLAN_CFG_RXDMA_BUF_RING_SIZE, \
- CFG_VALUE_OR_DEFAULT, "DP RXDMA buffer ring")
- #define CFG_DP_RXDMA_REFILL_RING \
- CFG_INI_UINT("dp_rxdma_refill_ring", \
- WLAN_CFG_RXDMA_REFILL_RING_SIZE_MIN, \
- WLAN_CFG_RXDMA_REFILL_RING_SIZE_MAX, \
- WLAN_CFG_RXDMA_REFILL_RING_SIZE, \
- CFG_VALUE_OR_DEFAULT, "DP RXDMA refilll ring")
- #define CFG_DP_RXDMA_MONITOR_BUF_RING \
- CFG_INI_UINT("dp_rxdma_monitor_buf_ring", \
- WLAN_CFG_RXDMA_MONITOR_BUF_RING_SIZE_MIN, \
- WLAN_CFG_RXDMA_MONITOR_BUF_RING_SIZE_MAX, \
- WLAN_CFG_RXDMA_MONITOR_BUF_RING_SIZE, \
- CFG_VALUE_OR_DEFAULT, "DP RXDMA monitor buffer ring")
- #define CFG_DP_RXDMA_MONITOR_DST_RING \
- CFG_INI_UINT("dp_rxdma_monitor_dst_ring", \
- WLAN_CFG_RXDMA_MONITOR_DST_RING_SIZE_MIN, \
- WLAN_CFG_RXDMA_MONITOR_DST_RING_SIZE_MAX, \
- WLAN_CFG_RXDMA_MONITOR_DST_RING_SIZE, \
- CFG_VALUE_OR_DEFAULT, "DP RXDMA monitor destination ring")
- #define CFG_DP_RXDMA_MONITOR_STATUS_RING \
- CFG_INI_UINT("dp_rxdma_monitor_status_ring", \
- WLAN_CFG_RXDMA_MONITOR_STATUS_RING_SIZE_MIN, \
- WLAN_CFG_RXDMA_MONITOR_STATUS_RING_SIZE_MAX, \
- WLAN_CFG_RXDMA_MONITOR_STATUS_RING_SIZE, \
- CFG_VALUE_OR_DEFAULT, "DP RXDMA monitor status ring")
- #define CFG_DP_RXDMA_MONITOR_DESC_RING \
- CFG_INI_UINT("dp_rxdma_monitor_desc_ring", \
- WLAN_CFG_RXDMA_MONITOR_DESC_RING_SIZE_MIN, \
- WLAN_CFG_RXDMA_MONITOR_DESC_RING_SIZE_MAX, \
- WLAN_CFG_RXDMA_MONITOR_DESC_RING_SIZE, \
- CFG_VALUE_OR_DEFAULT, "DP RXDMA monitor destination ring")
- #define CFG_DP_RXDMA_ERR_DST_RING \
- CFG_INI_UINT("dp_rxdma_err_dst_ring", \
- WLAN_CFG_RXDMA_ERR_DST_RING_SIZE_MIN, \
- WLAN_CFG_RXDMA_ERR_DST_RING_SIZE_MAX, \
- WLAN_CFG_RXDMA_ERR_DST_RING_SIZE, \
- CFG_VALUE_OR_DEFAULT, "RXDMA err destination ring")
- #define CFG_DP_TX_FLOW_START_QUEUE_OFFSET \
- CFG_INI_UINT("TxFlowStartQueueOffset", \
- 0, 30, WLAN_CFG_TX_FLOW_START_QUEUE_OFFSET, \
- CFG_VALUE_OR_DEFAULT, "Start queue offset")
- #define CFG_DP_TX_FLOW_STOP_QUEUE_TH \
- CFG_INI_UINT("TxFlowStopQueueThreshold", \
- 0, 50, 15, \
- CFG_VALUE_OR_DEFAULT, "Stop queue Threshold")
- #define CFG_DP_IPA_UC_TX_BUF_SIZE \
- CFG_INI_UINT("IpaUcTxBufSize", \
- 0, 4096, WLAN_CFG_IPA_UC_TX_BUF_SIZE, \
- CFG_VALUE_OR_DEFAULT, "IPA tx buffer size")
- #define CFG_DP_IPA_UC_TX_PARTITION_BASE \
- CFG_INI_UINT("IpaUcTxPartitionBase", \
- 0, 9000, WLAN_CFG_IPA_UC_TX_PARTITION_BASE, \
- CFG_VALUE_OR_DEFAULT, "IPA tx partition base")
- #define CFG_DP_IPA_UC_RX_IND_RING_COUNT \
- CFG_INI_UINT("IpaUcRxIndRingCount", \
- 0, 2048, WLAN_CFG_IPA_UC_RX_IND_RING_COUNT, \
- CFG_VALUE_OR_DEFAULT, "IPA rx indication ring count")
- #define CFG_DP_REORDER_OFFLOAD_SUPPORT \
- CFG_INI_UINT("gReorderOffloadSupported", \
- 0, 1, 1, \
- CFG_VALUE_OR_DEFAULT, "Packet reordering offload to firmware")
- #define CFG_DP_AP_STA_SECURITY_SEPERATION \
- CFG_INI_BOOL("gDisableIntraBssFwd", \
- false, "Disable intrs BSS Rx packets")
- #define CFG_DP_ENABLE_DATA_STALL_DETECTION \
- CFG_INI_BOOL("gEnableDataStallDetection", \
- true, "Enable/Disable Data stall detection")
- #define CFG_DP \
- CFG(CFG_DP_HTT_PACKET_TYPE) \
- CFG(CFG_DP_INT_BATCH_THRESHOLD_OTHER) \
- CFG(CFG_DP_INT_BATCH_THRESHOLD_RX) \
- CFG(CFG_DP_INT_BATCH_THRESHOLD_TX) \
- CFG(CFG_DP_INT_TIMER_THRESHOLD_OTHER) \
- CFG(CFG_DP_INT_TIMER_THRESHOLD_RX) \
- CFG(CFG_DP_INT_TIMER_THRESHOLD_TX) \
- CFG(CFG_DP_MAX_ALLOC_SIZE) \
- CFG(CFG_DP_MAX_CLIENTS) \
- CFG(CFG_DP_MAX_PEER_ID) \
- CFG(CFG_DP_REO_DEST_RINGS) \
- CFG(CFG_DP_TCL_DATA_RINGS) \
- CFG(CFG_DP_TX_DESC) \
- CFG(CFG_DP_TX_EXT_DESC) \
- CFG(CFG_DP_TX_EXT_DESC_POOLS) \
- CFG(CFG_DP_PDEV_RX_RING) \
- CFG(CFG_DP_PDEV_TX_RING) \
- CFG(CFG_DP_RX_DEFRAG_TIMEOUT) \
- CFG(CFG_DP_TX_COMPL_RING_SIZE) \
- CFG(CFG_DP_TX_RING_SIZE) \
- CFG(CFG_DP_NSS_COMP_RING_SIZE) \
- CFG(CFG_DP_PDEV_LMAC_RING) \
- CFG(CFG_DP_BASE_HW_MAC_ID) \
- CFG(CFG_DP_RX_HASH) \
- CFG(CFG_DP_TSO) \
- CFG(CFG_DP_LRO) \
- CFG(CFG_DP_SG) \
- CFG(CFG_DP_GRO) \
- CFG(CFG_DP_OL_TX_CSUM) \
- CFG(CFG_DP_OL_RX_CSUM) \
- CFG(CFG_DP_RAWMODE) \
- CFG(CFG_DP_PEER_FLOW_CTRL) \
- CFG(CFG_DP_NAPI) \
- CFG(CFG_DP_TCP_UDP_CKSUM_OFFLOAD) \
- CFG(CFG_DP_DEFRAG_TIMEOUT_CHECK) \
- CFG(CFG_DP_WBM_RELEASE_RING) \
- CFG(CFG_DP_TCL_CMD_RING) \
- CFG(CFG_DP_TCL_STATUS_RING) \
- CFG(CFG_DP_REO_REINJECT_RING) \
- CFG(CFG_DP_RX_RELEASE_RING) \
- CFG(CFG_DP_REO_EXCEPTION_RING) \
- CFG(CFG_DP_REO_CMD_RING) \
- CFG(CFG_DP_REO_STATUS_RING) \
- CFG(CFG_DP_RXDMA_BUF_RING) \
- CFG(CFG_DP_RXDMA_REFILL_RING) \
- CFG(CFG_DP_RXDMA_MONITOR_BUF_RING) \
- CFG(CFG_DP_RXDMA_MONITOR_DST_RING) \
- CFG(CFG_DP_RXDMA_MONITOR_STATUS_RING) \
- CFG(CFG_DP_RXDMA_MONITOR_DESC_RING) \
- CFG(CFG_DP_RXDMA_ERR_DST_RING) \
- CFG(CFG_DP_TX_FLOW_START_QUEUE_OFFSET) \
- CFG(CFG_DP_TX_FLOW_STOP_QUEUE_TH) \
- CFG(CFG_DP_IPA_UC_TX_BUF_SIZE) \
- CFG(CFG_DP_IPA_UC_TX_PARTITION_BASE) \
- CFG(CFG_DP_IPA_UC_RX_IND_RING_COUNT) \
- CFG(CFG_DP_REORDER_OFFLOAD_SUPPORT) \
- CFG(CFG_DP_AP_STA_SECURITY_SEPERATION) \
- CFG(CFG_DP_ENABLE_DATA_STALL_DETECTION)
- #endif /* _CFG_DP_H_ */
|