cfg_dp.h 27 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829
  1. /*
  2. * Copyright (c) 2018-2019 The Linux Foundation. All rights reserved.
  3. *
  4. * Permission to use, copy, modify, and/or distribute this software for
  5. * any purpose with or without fee is hereby granted, provided that the
  6. * above copyright notice and this permission notice appear in all
  7. * copies.
  8. *
  9. * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL
  10. * WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED
  11. * WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE
  12. * AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL
  13. * DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR
  14. * PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
  15. * TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
  16. * PERFORMANCE OF THIS SOFTWARE.
  17. */
  18. /**
  19. * DOC: This file contains definitions of Data Path configuration.
  20. */
  21. #ifndef _CFG_DP_H_
  22. #define _CFG_DP_H_
  23. #include "cfg_define.h"
  24. #define WLAN_CFG_MAX_CLIENTS 64
  25. #define WLAN_CFG_MAX_CLIENTS_MIN 8
  26. #define WLAN_CFG_MAX_CLIENTS_MAX 64
  27. /* Change this to a lower value to enforce scattered idle list mode */
  28. #define WLAN_CFG_MAX_ALLOC_SIZE 0x200000
  29. #define WLAN_CFG_MAX_ALLOC_SIZE_MIN 0x80000
  30. #define WLAN_CFG_MAX_ALLOC_SIZE_MAX 0x200000
  31. #define WLAN_CFG_NUM_TCL_DATA_RINGS 3
  32. #define WLAN_CFG_NUM_TCL_DATA_RINGS_MIN 3
  33. #define WLAN_CFG_NUM_TCL_DATA_RINGS_MAX 3
  34. #if defined(QCA_LL_TX_FLOW_CONTROL_V2) || \
  35. defined(QCA_LL_PDEV_TX_FLOW_CONTROL)
  36. #define WLAN_CFG_TX_FLOW_START_QUEUE_OFFSET 10
  37. #define WLAN_CFG_TX_FLOW_STOP_QUEUE_TH 15
  38. #else
  39. #define WLAN_CFG_TX_FLOW_START_QUEUE_OFFSET 0
  40. #define WLAN_CFG_TX_FLOW_STOP_QUEUE_TH 0
  41. #endif
  42. #define WLAN_CFG_PER_PDEV_TX_RING_MIN 0
  43. #define WLAN_CFG_PER_PDEV_TX_RING_MAX 1
  44. #if defined(WLAN_MAX_PDEVS) && (WLAN_MAX_PDEVS == 1)
  45. #define WLAN_CFG_PER_PDEV_RX_RING 0
  46. #define WLAN_CFG_PER_PDEV_LMAC_RING 0
  47. #define WLAN_LRO_ENABLE 0
  48. #define WLAN_CFG_MAC_PER_TARGET 2
  49. #ifdef IPA_OFFLOAD
  50. /* Size of TCL TX Ring */
  51. #define WLAN_CFG_TX_RING_SIZE 1024
  52. #define WLAN_CFG_PER_PDEV_TX_RING 0
  53. #define WLAN_CFG_IPA_UC_TX_BUF_SIZE 2048
  54. #define WLAN_CFG_IPA_UC_TX_PARTITION_BASE 3000
  55. #define WLAN_CFG_IPA_UC_RX_IND_RING_COUNT 1024
  56. #else
  57. #define WLAN_CFG_TX_RING_SIZE 512
  58. #define WLAN_CFG_PER_PDEV_TX_RING 1
  59. #define WLAN_CFG_IPA_UC_TX_BUF_SIZE 0
  60. #define WLAN_CFG_IPA_UC_TX_PARTITION_BASE 0
  61. #define WLAN_CFG_IPA_UC_RX_IND_RING_COUNT 0
  62. #endif
  63. #define WLAN_CFG_TX_COMP_RING_SIZE 1024
  64. /* Tx Descriptor and Tx Extension Descriptor pool sizes */
  65. #define WLAN_CFG_NUM_TX_DESC 1024
  66. #define WLAN_CFG_NUM_TX_EXT_DESC 1024
  67. /* Interrupt Mitigation - Batch threshold in terms of number of frames */
  68. #define WLAN_CFG_INT_BATCH_THRESHOLD_TX 1
  69. #define WLAN_CFG_INT_BATCH_THRESHOLD_RX 1
  70. #define WLAN_CFG_INT_BATCH_THRESHOLD_OTHER 1
  71. /* Interrupt Mitigation - Timer threshold in us */
  72. #define WLAN_CFG_INT_TIMER_THRESHOLD_TX 8
  73. #define WLAN_CFG_INT_TIMER_THRESHOLD_RX 8
  74. #define WLAN_CFG_INT_TIMER_THRESHOLD_OTHER 8
  75. #endif
  76. #define WLAN_CFG_INT_TIMER_THRESHOLD_WBM_RELEASE_RING 256
  77. #define WLAN_CFG_INT_TIMER_THRESHOLD_REO_RING 512
  78. #define WLAN_CFG_PER_PDEV_RX_RING_MIN 0
  79. #define WLAN_CFG_PER_PDEV_RX_RING_MAX 0
  80. #define WLAN_CFG_PER_PDEV_LMAC_RING_MIN 0
  81. #define WLAN_CFG_PER_PDEV_LMAC_RING_MAX 1
  82. #define WLAN_CFG_TX_RING_SIZE_MIN 512
  83. #define WLAN_CFG_TX_RING_SIZE_MAX 2048
  84. #define WLAN_CFG_TX_COMP_RING_SIZE_MIN 512
  85. #define WLAN_CFG_TX_COMP_RING_SIZE_MAX 0x80000
  86. #define WLAN_CFG_NUM_TX_DESC_MIN 1024
  87. #define WLAN_CFG_NUM_TX_DESC_MAX 32768
  88. #define WLAN_CFG_NUM_TX_EXT_DESC_MIN 1024
  89. #define WLAN_CFG_NUM_TX_EXT_DESC_MAX 0x80000
  90. #define WLAN_CFG_INT_BATCH_THRESHOLD_TX_MIN 1
  91. #define WLAN_CFG_INT_BATCH_THRESHOLD_TX_MAX 256
  92. #define WLAN_CFG_INT_BATCH_THRESHOLD_RX_MIN 1
  93. #define WLAN_CFG_INT_BATCH_THRESHOLD_RX_MAX 128
  94. #define WLAN_CFG_INT_BATCH_THRESHOLD_REO_RING_MIN 1
  95. #define WLAN_CFG_INT_BATCH_THRESHOLD_REO_RING_MAX 128
  96. #define WLAN_CFG_INT_BATCH_THRESHOLD_WBM_RELEASE_RING_MIN 1
  97. #define WLAN_CFG_INT_BATCH_THRESHOLD_WBM_RELEASE_RING_MAX 128
  98. #define WLAN_CFG_INT_BATCH_THRESHOLD_OTHER_MIN 1
  99. #define WLAN_CFG_INT_BATCH_THRESHOLD_OTHER_MAX 1
  100. #define WLAN_CFG_INT_TIMER_THRESHOLD_TX_MIN 8
  101. #define WLAN_CFG_INT_TIMER_THRESHOLD_TX_MAX 100
  102. #define WLAN_CFG_INT_TIMER_THRESHOLD_RX_MIN 8
  103. #define WLAN_CFG_INT_TIMER_THRESHOLD_RX_MAX 500
  104. #define WLAN_CFG_INT_TIMER_THRESHOLD_OTHER_MIN 8
  105. #define WLAN_CFG_INT_TIMER_THRESHOLD_OTHER_MAX 1000
  106. #define WLAN_CFG_INT_TIMER_THRESHOLD_REO_RING_MIN 8
  107. #define WLAN_CFG_INT_TIMER_THRESHOLD_REO_RING_MAX 500
  108. #define WLAN_CFG_INT_TIMER_THRESHOLD_WBM_RELEASE_RING_MIN 8
  109. #define WLAN_CFG_INT_TIMER_THRESHOLD_WBM_RELEASE_RING_MAX 500
  110. #define WLAN_CFG_NSS_TX_COMP_RING_SIZE 0x2000
  111. #define WLAN_CFG_NSS_TX_COMP_RING_SIZE_MIN 0x2000
  112. #define WLAN_CFG_NSS_TX_COMP_RING_SIZE_MAX 0xc000
  113. #ifdef QCA_LL_TX_FLOW_CONTROL_V2
  114. /* Per vdev pools */
  115. #define WLAN_CFG_NUM_TX_DESC_POOL 3
  116. #define WLAN_CFG_NUM_TXEXT_DESC_POOL 3
  117. #else /* QCA_LL_TX_FLOW_CONTROL_V2 */
  118. #ifdef TX_PER_PDEV_DESC_POOL
  119. #define WLAN_CFG_NUM_TX_DESC_POOL MAX_PDEV_CNT
  120. #define WLAN_CFG_NUM_TXEXT_DESC_POOL MAX_PDEV_CNT
  121. #else /* TX_PER_PDEV_DESC_POOL */
  122. #define WLAN_CFG_NUM_TX_DESC_POOL 3
  123. #define WLAN_CFG_NUM_TXEXT_DESC_POOL 3
  124. #endif /* TX_PER_PDEV_DESC_POOL */
  125. #endif /* QCA_LL_TX_FLOW_CONTROL_V2 */
  126. #define WLAN_CFG_NUM_TXEXT_DESC_POOL_MIN 1
  127. #define WLAN_CFG_NUM_TXEXT_DESC_POOL_MAX 4
  128. #define WLAN_CFG_HTT_PKT_TYPE 2
  129. #define WLAN_CFG_HTT_PKT_TYPE_MIN 2
  130. #define WLAN_CFG_HTT_PKT_TYPE_MAX 2
  131. #define WLAN_CFG_MAX_PEER_ID 64
  132. #define WLAN_CFG_MAX_PEER_ID_MIN 64
  133. #define WLAN_CFG_MAX_PEER_ID_MAX 64
  134. #define WLAN_CFG_RX_DEFRAG_TIMEOUT 100
  135. #define WLAN_CFG_RX_DEFRAG_TIMEOUT_MIN 100
  136. #define WLAN_CFG_RX_DEFRAG_TIMEOUT_MAX 100
  137. #define WLAN_CFG_NUM_TCL_DATA_RINGS 3
  138. #define WLAN_CFG_NUM_TCL_DATA_RINGS_MIN 3
  139. #define WLAN_CFG_NUM_TCL_DATA_RINGS_MAX 3
  140. #define WLAN_CFG_NUM_REO_DEST_RING 4
  141. #define WLAN_CFG_NUM_REO_DEST_RING_MIN 4
  142. #define WLAN_CFG_NUM_REO_DEST_RING_MAX 4
  143. #define WLAN_CFG_WBM_RELEASE_RING_SIZE 64
  144. #define WLAN_CFG_WBM_RELEASE_RING_SIZE_MIN 64
  145. #define WLAN_CFG_WBM_RELEASE_RING_SIZE_MAX 64
  146. #define WLAN_CFG_TCL_CMD_RING_SIZE 32
  147. #define WLAN_CFG_TCL_CMD_RING_SIZE_MIN 32
  148. #define WLAN_CFG_TCL_CMD_RING_SIZE_MAX 32
  149. #define WLAN_CFG_TCL_STATUS_RING_SIZE 32
  150. #define WLAN_CFG_TCL_STATUS_RING_SIZE_MIN 32
  151. #define WLAN_CFG_TCL_STATUS_RING_SIZE_MAX 32
  152. #if defined(QCA_WIFI_QCA6290)
  153. #define WLAN_CFG_REO_DST_RING_SIZE 1024
  154. #else
  155. #define WLAN_CFG_REO_DST_RING_SIZE 2048
  156. #endif
  157. #define WLAN_CFG_REO_DST_RING_SIZE_MIN 1024
  158. #define WLAN_CFG_REO_DST_RING_SIZE_MAX 2048
  159. #define WLAN_CFG_REO_REINJECT_RING_SIZE 32
  160. #define WLAN_CFG_REO_REINJECT_RING_SIZE_MIN 32
  161. #define WLAN_CFG_REO_REINJECT_RING_SIZE_MAX 32
  162. #define WLAN_CFG_RX_RELEASE_RING_SIZE 1024
  163. #define WLAN_CFG_RX_RELEASE_RING_SIZE_MIN 8
  164. #if defined(QCA_WIFI_QCA6390) || defined(QCA_WIFI_QCA6490)
  165. #define WLAN_CFG_RX_RELEASE_RING_SIZE_MAX 1024
  166. #else
  167. #define WLAN_CFG_RX_RELEASE_RING_SIZE_MAX 8192
  168. #endif
  169. #define WLAN_CFG_REO_EXCEPTION_RING_SIZE 128
  170. #define WLAN_CFG_REO_EXCEPTION_RING_SIZE_MIN 128
  171. #define WLAN_CFG_REO_EXCEPTION_RING_SIZE_MAX 128
  172. #define WLAN_CFG_REO_CMD_RING_SIZE 128
  173. #define WLAN_CFG_REO_CMD_RING_SIZE_MIN 64
  174. #define WLAN_CFG_REO_CMD_RING_SIZE_MAX 128
  175. #define WLAN_CFG_REO_STATUS_RING_SIZE 256
  176. #define WLAN_CFG_REO_STATUS_RING_SIZE_MIN 128
  177. #define WLAN_CFG_REO_STATUS_RING_SIZE_MAX 2048
  178. #define WLAN_CFG_RXDMA_BUF_RING_SIZE 1024
  179. #define WLAN_CFG_RXDMA_BUF_RING_SIZE_MIN 1024
  180. #define WLAN_CFG_RXDMA_BUF_RING_SIZE_MAX 1024
  181. #define WLAN_CFG_RXDMA_REFILL_RING_SIZE 4096
  182. #define WLAN_CFG_RXDMA_REFILL_RING_SIZE_MIN 16
  183. #define WLAN_CFG_RXDMA_REFILL_RING_SIZE_MAX 4096
  184. #define WLAN_CFG_TX_DESC_LIMIT_0 0
  185. #define WLAN_CFG_TX_DESC_LIMIT_0_MIN 4096
  186. #define WLAN_CFG_TX_DESC_LIMIT_0_MAX 32768
  187. #define WLAN_CFG_TX_DESC_LIMIT_1 0
  188. #define WLAN_CFG_TX_DESC_LIMIT_1_MIN 4096
  189. #define WLAN_CFG_TX_DESC_LIMIT_1_MAX 32768
  190. #define WLAN_CFG_TX_DESC_LIMIT_2 0
  191. #define WLAN_CFG_TX_DESC_LIMIT_2_MIN 4096
  192. #define WLAN_CFG_TX_DESC_LIMIT_2_MAX 32768
  193. #define WLAN_CFG_TX_DEVICE_LIMIT 65536
  194. #define WLAN_CFG_TX_DEVICE_LIMIT_MIN 16384
  195. #define WLAN_CFG_TX_DEVICE_LIMIT_MAX 65536
  196. #define WLAN_CFG_TX_SW_INTERNODE_QUEUE 1024
  197. #define WLAN_CFG_TX_SW_INTERNODE_QUEUE_MIN 128
  198. #define WLAN_CFG_TX_SW_INTERNODE_QUEUE_MAX 1024
  199. #define WLAN_CFG_RXDMA_MONITOR_BUF_RING_SIZE 4096
  200. #define WLAN_CFG_RXDMA_MONITOR_BUF_RING_SIZE_MIN 16
  201. #define WLAN_CFG_RXDMA_MONITOR_BUF_RING_SIZE_MAX 8192
  202. #define WLAN_CFG_RXDMA_MONITOR_DST_RING_SIZE 2048
  203. #define WLAN_CFG_RXDMA_MONITOR_DST_RING_SIZE_MIN 48
  204. #define WLAN_CFG_RXDMA_MONITOR_DST_RING_SIZE_MAX 8192
  205. #define WLAN_CFG_RXDMA_MONITOR_STATUS_RING_SIZE 1024
  206. #define WLAN_CFG_RXDMA_MONITOR_STATUS_RING_SIZE_MIN 16
  207. #define WLAN_CFG_RXDMA_MONITOR_STATUS_RING_SIZE_MAX 8192
  208. #define WLAN_CFG_RXDMA_MONITOR_DESC_RING_SIZE 4096
  209. #define WLAN_CFG_RXDMA_MONITOR_DESC_RING_SIZE_MIN 4096
  210. #define WLAN_CFG_RXDMA_MONITOR_DESC_RING_SIZE_MAX 16384
  211. #define WLAN_CFG_RXDMA_ERR_DST_RING_SIZE 1024
  212. #define WLAN_CFG_RXDMA_ERR_DST_RING_SIZE_MIN 1024
  213. #define WLAN_CFG_RXDMA_ERR_DST_RING_SIZE_MAX 8192
  214. #define WLAN_CFG_RXDMA_MONITOR_RX_DROP_THRESH_SIZE 32
  215. #define WLAN_CFG_RXDMA_MONITOR_RX_DROP_THRESH_SIZE_MIN 0
  216. #define WLAN_CFG_RXDMA_MONITOR_RX_DROP_THRESH_SIZE_MAX 256
  217. /**
  218. * Allocate as many RX descriptors as buffers in the SW2RXDMA
  219. * ring. This value may need to be tuned later.
  220. */
  221. #if defined(QCA_HOST2FW_RXBUF_RING)
  222. #define WLAN_CFG_RX_SW_DESC_WEIGHT_SIZE 1
  223. #define WLAN_CFG_RX_SW_DESC_WEIGHT_SIZE_MIN 1
  224. #define WLAN_CFG_RX_SW_DESC_WEIGHT_SIZE_MAX 1
  225. /**
  226. * For low memory AP cases using 1 will reduce the rx descriptors memory req
  227. */
  228. #elif defined(QCA_LOWMEM_CONFIG) || defined(QCA_512M_CONFIG)
  229. #define WLAN_CFG_RX_SW_DESC_WEIGHT_SIZE 1
  230. #define WLAN_CFG_RX_SW_DESC_WEIGHT_SIZE_MIN 1
  231. #define WLAN_CFG_RX_SW_DESC_WEIGHT_SIZE_MAX 3
  232. /**
  233. * AP use cases need to allocate more RX Descriptors than the number of
  234. * entries avaialable in the SW2RXDMA buffer replenish ring. This is to account
  235. * for frames sitting in REO queues, HW-HW DMA rings etc. Hence using a
  236. * multiplication factor of 3, to allocate three times as many RX descriptors
  237. * as RX buffers.
  238. */
  239. #else
  240. #define WLAN_CFG_RX_SW_DESC_WEIGHT_SIZE 3
  241. #define WLAN_CFG_RX_SW_DESC_WEIGHT_SIZE_MIN 1
  242. #define WLAN_CFG_RX_SW_DESC_WEIGHT_SIZE_MAX 3
  243. #endif //QCA_HOST2FW_RXBUF_RING
  244. #define WLAN_CFG_RX_FLOW_SEARCH_TABLE_SIZE 16384
  245. #define WLAN_CFG_RX_FLOW_SEARCH_TABLE_SIZE_MIN 1
  246. #define WLAN_CFG_RX_FLOW_SEARCH_TABLE_SIZE_MAX 16384
  247. /* DP INI Declerations */
  248. #define CFG_DP_HTT_PACKET_TYPE \
  249. CFG_INI_UINT("dp_htt_packet_type", \
  250. WLAN_CFG_HTT_PKT_TYPE_MIN, \
  251. WLAN_CFG_HTT_PKT_TYPE_MAX, \
  252. WLAN_CFG_HTT_PKT_TYPE, \
  253. CFG_VALUE_OR_DEFAULT, "DP HTT packet type")
  254. #define CFG_DP_INT_BATCH_THRESHOLD_OTHER \
  255. CFG_INI_UINT("dp_int_batch_threshold_other", \
  256. WLAN_CFG_INT_BATCH_THRESHOLD_OTHER_MIN, \
  257. WLAN_CFG_INT_BATCH_THRESHOLD_OTHER_MAX, \
  258. WLAN_CFG_INT_BATCH_THRESHOLD_OTHER, \
  259. CFG_VALUE_OR_DEFAULT, "DP INT batch threshold Other")
  260. #define CFG_DP_INT_BATCH_THRESHOLD_RX \
  261. CFG_INI_UINT("dp_int_batch_threshold_rx", \
  262. WLAN_CFG_INT_BATCH_THRESHOLD_RX_MIN, \
  263. WLAN_CFG_INT_BATCH_THRESHOLD_RX_MAX, \
  264. WLAN_CFG_INT_BATCH_THRESHOLD_RX, \
  265. CFG_VALUE_OR_DEFAULT, "DP INT batch threshold Rx")
  266. #define CFG_DP_INT_BATCH_THRESHOLD_TX \
  267. CFG_INI_UINT("dp_int_batch_threshold_tx", \
  268. WLAN_CFG_INT_BATCH_THRESHOLD_TX_MIN, \
  269. WLAN_CFG_INT_BATCH_THRESHOLD_TX_MAX, \
  270. WLAN_CFG_INT_BATCH_THRESHOLD_TX, \
  271. CFG_VALUE_OR_DEFAULT, "DP INT threshold Tx")
  272. #define CFG_DP_INT_TIMER_THRESHOLD_OTHER \
  273. CFG_INI_UINT("dp_int_timer_threshold_other", \
  274. WLAN_CFG_INT_TIMER_THRESHOLD_OTHER_MIN, \
  275. WLAN_CFG_INT_TIMER_THRESHOLD_OTHER_MAX, \
  276. WLAN_CFG_INT_TIMER_THRESHOLD_OTHER, \
  277. CFG_VALUE_OR_DEFAULT, "DP INT timer threshold Other")
  278. #define CFG_DP_INT_TIMER_THRESHOLD_RX \
  279. CFG_INI_UINT("dp_int_timer_threshold_rx", \
  280. WLAN_CFG_INT_TIMER_THRESHOLD_RX_MIN, \
  281. WLAN_CFG_INT_TIMER_THRESHOLD_RX_MAX, \
  282. WLAN_CFG_INT_TIMER_THRESHOLD_RX, \
  283. CFG_VALUE_OR_DEFAULT, "DP INT timer threshold Rx")
  284. #define CFG_DP_INT_TIMER_THRESHOLD_REO_RING \
  285. CFG_INI_UINT("dp_int_timer_threshold_reo_ring", \
  286. WLAN_CFG_INT_TIMER_THRESHOLD_REO_RING_MIN, \
  287. WLAN_CFG_INT_TIMER_THRESHOLD_REO_RING_MAX, \
  288. WLAN_CFG_INT_TIMER_THRESHOLD_REO_RING, \
  289. CFG_VALUE_OR_DEFAULT, "DP INT timer threshold Reo ring")
  290. #define CFG_DP_INT_TIMER_THRESHOLD_WBM_RELEASE_RING \
  291. CFG_INI_UINT("dp_int_timer_threshold_wbm_release_ring", \
  292. WLAN_CFG_INT_TIMER_THRESHOLD_WBM_RELEASE_RING_MIN, \
  293. WLAN_CFG_INT_TIMER_THRESHOLD_WBM_RELEASE_RING_MAX, \
  294. WLAN_CFG_INT_TIMER_THRESHOLD_WBM_RELEASE_RING, \
  295. CFG_VALUE_OR_DEFAULT, "DP INT timer threshold wbm release ring")
  296. #define CFG_DP_INT_TIMER_THRESHOLD_TX \
  297. CFG_INI_UINT("dp_int_timer_threshold_tx", \
  298. WLAN_CFG_INT_TIMER_THRESHOLD_TX_MIN, \
  299. WLAN_CFG_INT_TIMER_THRESHOLD_TX_MAX, \
  300. WLAN_CFG_INT_TIMER_THRESHOLD_TX, \
  301. CFG_VALUE_OR_DEFAULT, "DP INT timer threshold Tx")
  302. #define CFG_DP_MAX_ALLOC_SIZE \
  303. CFG_INI_UINT("dp_max_alloc_size", \
  304. WLAN_CFG_MAX_ALLOC_SIZE_MIN, \
  305. WLAN_CFG_MAX_ALLOC_SIZE_MAX, \
  306. WLAN_CFG_MAX_ALLOC_SIZE, \
  307. CFG_VALUE_OR_DEFAULT, "DP Max Alloc Size")
  308. #define CFG_DP_MAX_CLIENTS \
  309. CFG_INI_UINT("dp_max_clients", \
  310. WLAN_CFG_MAX_CLIENTS_MIN, \
  311. WLAN_CFG_MAX_CLIENTS_MAX, \
  312. WLAN_CFG_MAX_CLIENTS, \
  313. CFG_VALUE_OR_DEFAULT, "DP Max Clients")
  314. #define CFG_DP_MAX_PEER_ID \
  315. CFG_INI_UINT("dp_max_peer_id", \
  316. WLAN_CFG_MAX_PEER_ID_MIN, \
  317. WLAN_CFG_MAX_PEER_ID_MAX, \
  318. WLAN_CFG_MAX_PEER_ID, \
  319. CFG_VALUE_OR_DEFAULT, "DP Max Peer ID")
  320. #define CFG_DP_REO_DEST_RINGS \
  321. CFG_INI_UINT("dp_reo_dest_rings", \
  322. WLAN_CFG_NUM_REO_DEST_RING_MIN, \
  323. WLAN_CFG_NUM_REO_DEST_RING_MAX, \
  324. WLAN_CFG_NUM_REO_DEST_RING, \
  325. CFG_VALUE_OR_DEFAULT, "DP REO Destination Rings")
  326. #define CFG_DP_TCL_DATA_RINGS \
  327. CFG_INI_UINT("dp_tcl_data_rings", \
  328. WLAN_CFG_NUM_TCL_DATA_RINGS_MIN, \
  329. WLAN_CFG_NUM_TCL_DATA_RINGS_MAX, \
  330. WLAN_CFG_NUM_TCL_DATA_RINGS, \
  331. CFG_VALUE_OR_DEFAULT, "DP TCL Data Rings")
  332. #define CFG_DP_TX_DESC \
  333. CFG_INI_UINT("dp_tx_desc", \
  334. WLAN_CFG_NUM_TX_DESC_MIN, \
  335. WLAN_CFG_NUM_TX_DESC_MAX, \
  336. WLAN_CFG_NUM_TX_DESC, \
  337. CFG_VALUE_OR_DEFAULT, "DP Tx Descriptors")
  338. #define CFG_DP_TX_EXT_DESC \
  339. CFG_INI_UINT("dp_tx_ext_desc", \
  340. WLAN_CFG_NUM_TX_EXT_DESC_MIN, \
  341. WLAN_CFG_NUM_TX_EXT_DESC_MAX, \
  342. WLAN_CFG_NUM_TX_EXT_DESC, \
  343. CFG_VALUE_OR_DEFAULT, "DP Tx Ext Descriptors")
  344. #define CFG_DP_TX_EXT_DESC_POOLS \
  345. CFG_INI_UINT("dp_tx_ext_desc_pool", \
  346. WLAN_CFG_NUM_TXEXT_DESC_POOL_MIN, \
  347. WLAN_CFG_NUM_TXEXT_DESC_POOL_MAX, \
  348. WLAN_CFG_NUM_TXEXT_DESC_POOL, \
  349. CFG_VALUE_OR_DEFAULT, "DP Tx Ext Descriptors Pool")
  350. #define CFG_DP_PDEV_RX_RING \
  351. CFG_INI_UINT("dp_pdev_rx_ring", \
  352. WLAN_CFG_PER_PDEV_RX_RING_MIN, \
  353. WLAN_CFG_PER_PDEV_RX_RING_MAX, \
  354. WLAN_CFG_PER_PDEV_RX_RING, \
  355. CFG_VALUE_OR_DEFAULT, "DP PDEV Rx Ring")
  356. #define CFG_DP_PDEV_TX_RING \
  357. CFG_INI_UINT("dp_pdev_tx_ring", \
  358. WLAN_CFG_PER_PDEV_TX_RING_MIN, \
  359. WLAN_CFG_PER_PDEV_TX_RING_MAX, \
  360. WLAN_CFG_PER_PDEV_TX_RING, \
  361. CFG_VALUE_OR_DEFAULT, \
  362. "DP PDEV Tx Ring")
  363. #define CFG_DP_RX_DEFRAG_TIMEOUT \
  364. CFG_INI_UINT("dp_rx_defrag_timeout", \
  365. WLAN_CFG_RX_DEFRAG_TIMEOUT_MIN, \
  366. WLAN_CFG_RX_DEFRAG_TIMEOUT_MAX, \
  367. WLAN_CFG_RX_DEFRAG_TIMEOUT, \
  368. CFG_VALUE_OR_DEFAULT, "DP Rx Defrag Timeout")
  369. #define CFG_DP_TX_COMPL_RING_SIZE \
  370. CFG_INI_UINT("dp_tx_compl_ring_size", \
  371. WLAN_CFG_TX_COMP_RING_SIZE_MIN, \
  372. WLAN_CFG_TX_COMP_RING_SIZE_MAX, \
  373. WLAN_CFG_TX_COMP_RING_SIZE, \
  374. CFG_VALUE_OR_DEFAULT, "DP Tx Completion Ring Size")
  375. #define CFG_DP_TX_RING_SIZE \
  376. CFG_INI_UINT("dp_tx_ring_size", \
  377. WLAN_CFG_TX_RING_SIZE_MIN,\
  378. WLAN_CFG_TX_RING_SIZE_MAX,\
  379. WLAN_CFG_TX_RING_SIZE,\
  380. CFG_VALUE_OR_DEFAULT, "DP Tx Ring Size")
  381. #define CFG_DP_NSS_COMP_RING_SIZE \
  382. CFG_INI_UINT("dp_nss_comp_ring_size", \
  383. WLAN_CFG_NSS_TX_COMP_RING_SIZE_MIN, \
  384. WLAN_CFG_NSS_TX_COMP_RING_SIZE_MAX, \
  385. WLAN_CFG_NSS_TX_COMP_RING_SIZE, \
  386. CFG_VALUE_OR_DEFAULT, "DP NSS completion Ring Size")
  387. #define CFG_DP_PDEV_LMAC_RING \
  388. CFG_INI_UINT("dp_pdev_lmac_ring", \
  389. WLAN_CFG_PER_PDEV_LMAC_RING_MIN, \
  390. WLAN_CFG_PER_PDEV_LMAC_RING_MAX, \
  391. WLAN_CFG_PER_PDEV_LMAC_RING, \
  392. CFG_VALUE_OR_DEFAULT, "DP pdev LMAC ring")
  393. #define CFG_DP_BASE_HW_MAC_ID \
  394. CFG_INI_UINT("dp_base_hw_macid", \
  395. 0, 1, 1, \
  396. CFG_VALUE_OR_DEFAULT, "DP Base HW Mac ID")
  397. #define CFG_DP_RX_HASH \
  398. CFG_INI_BOOL("dp_rx_hash", true, \
  399. "DP Rx Hash")
  400. #define CFG_DP_TSO \
  401. CFG_INI_BOOL("TSOEnable", false, \
  402. "DP TSO Enabled")
  403. #define CFG_DP_LRO \
  404. CFG_INI_BOOL("LROEnable", WLAN_LRO_ENABLE, \
  405. "DP LRO Enable")
  406. #define CFG_DP_SG \
  407. CFG_INI_BOOL("dp_sg_support", false, \
  408. "DP SG Enable")
  409. #define CFG_DP_GRO \
  410. CFG_INI_BOOL("GROEnable", false, \
  411. "DP GRO Enable")
  412. #define CFG_DP_OL_TX_CSUM \
  413. CFG_INI_BOOL("dp_offload_tx_csum_support", false, \
  414. "DP tx csum Enable")
  415. #define CFG_DP_OL_RX_CSUM \
  416. CFG_INI_BOOL("dp_offload_rx_csum_support", false, \
  417. "DP rx csum Enable")
  418. #define CFG_DP_RAWMODE \
  419. CFG_INI_BOOL("dp_rawmode_support", false, \
  420. "DP rawmode Enable")
  421. #define CFG_DP_PEER_FLOW_CTRL \
  422. CFG_INI_BOOL("dp_peer_flow_control_support", false, \
  423. "DP peer flow ctrl Enable")
  424. #define CFG_DP_NAPI \
  425. CFG_INI_BOOL("dp_napi_enabled", PLATFORM_VALUE(true, false), \
  426. "DP Napi Enabled")
  427. #define CFG_DP_TCP_UDP_CKSUM_OFFLOAD \
  428. CFG_INI_BOOL("gEnableIpTcpUdpChecksumOffload", true, \
  429. "DP TCP UDP Checksum Offload")
  430. #define CFG_DP_DEFRAG_TIMEOUT_CHECK \
  431. CFG_INI_BOOL("dp_defrag_timeout_check", true, \
  432. "DP Defrag Timeout Check")
  433. #define CFG_DP_WBM_RELEASE_RING \
  434. CFG_INI_UINT("dp_wbm_release_ring", \
  435. WLAN_CFG_WBM_RELEASE_RING_SIZE_MIN, \
  436. WLAN_CFG_WBM_RELEASE_RING_SIZE_MAX, \
  437. WLAN_CFG_WBM_RELEASE_RING_SIZE, \
  438. CFG_VALUE_OR_DEFAULT, "DP WBM Release Ring")
  439. #define CFG_DP_TCL_CMD_RING \
  440. CFG_INI_UINT("dp_tcl_cmd_ring", \
  441. WLAN_CFG_TCL_CMD_RING_SIZE_MIN, \
  442. WLAN_CFG_TCL_CMD_RING_SIZE_MAX, \
  443. WLAN_CFG_TCL_CMD_RING_SIZE, \
  444. CFG_VALUE_OR_DEFAULT, "DP TCL command ring")
  445. #define CFG_DP_TCL_STATUS_RING \
  446. CFG_INI_UINT("dp_tcl_status_ring",\
  447. WLAN_CFG_TCL_STATUS_RING_SIZE_MIN, \
  448. WLAN_CFG_TCL_STATUS_RING_SIZE_MAX, \
  449. WLAN_CFG_TCL_STATUS_RING_SIZE, \
  450. CFG_VALUE_OR_DEFAULT, "DP TCL status ring")
  451. #define CFG_DP_REO_REINJECT_RING \
  452. CFG_INI_UINT("dp_reo_reinject_ring", \
  453. WLAN_CFG_REO_REINJECT_RING_SIZE_MIN, \
  454. WLAN_CFG_REO_REINJECT_RING_SIZE_MAX, \
  455. WLAN_CFG_REO_REINJECT_RING_SIZE, \
  456. CFG_VALUE_OR_DEFAULT, "DP REO reinject ring")
  457. #define CFG_DP_RX_RELEASE_RING \
  458. CFG_INI_UINT("dp_rx_release_ring", \
  459. WLAN_CFG_RX_RELEASE_RING_SIZE_MIN, \
  460. WLAN_CFG_RX_RELEASE_RING_SIZE_MAX, \
  461. WLAN_CFG_RX_RELEASE_RING_SIZE, \
  462. CFG_VALUE_OR_DEFAULT, "DP Rx release ring")
  463. #define CFG_DP_REO_EXCEPTION_RING \
  464. CFG_INI_UINT("dp_reo_exception_ring", \
  465. WLAN_CFG_REO_EXCEPTION_RING_SIZE_MIN, \
  466. WLAN_CFG_REO_EXCEPTION_RING_SIZE_MAX, \
  467. WLAN_CFG_REO_EXCEPTION_RING_SIZE, \
  468. CFG_VALUE_OR_DEFAULT, "DP REO exception ring")
  469. #define CFG_DP_REO_CMD_RING \
  470. CFG_INI_UINT("dp_reo_cmd_ring", \
  471. WLAN_CFG_REO_CMD_RING_SIZE_MIN, \
  472. WLAN_CFG_REO_CMD_RING_SIZE_MAX, \
  473. WLAN_CFG_REO_CMD_RING_SIZE, \
  474. CFG_VALUE_OR_DEFAULT, "DP REO command ring")
  475. #define CFG_DP_REO_STATUS_RING \
  476. CFG_INI_UINT("dp_reo_status_ring", \
  477. WLAN_CFG_REO_STATUS_RING_SIZE_MIN, \
  478. WLAN_CFG_REO_STATUS_RING_SIZE_MAX, \
  479. WLAN_CFG_REO_STATUS_RING_SIZE, \
  480. CFG_VALUE_OR_DEFAULT, "DP REO status ring")
  481. #define CFG_DP_RXDMA_BUF_RING \
  482. CFG_INI_UINT("dp_rxdma_buf_ring", \
  483. WLAN_CFG_RXDMA_BUF_RING_SIZE_MIN, \
  484. WLAN_CFG_RXDMA_BUF_RING_SIZE_MAX, \
  485. WLAN_CFG_RXDMA_BUF_RING_SIZE, \
  486. CFG_VALUE_OR_DEFAULT, "DP RXDMA buffer ring")
  487. #define CFG_DP_RXDMA_REFILL_RING \
  488. CFG_INI_UINT("dp_rxdma_refill_ring", \
  489. WLAN_CFG_RXDMA_REFILL_RING_SIZE_MIN, \
  490. WLAN_CFG_RXDMA_REFILL_RING_SIZE_MAX, \
  491. WLAN_CFG_RXDMA_REFILL_RING_SIZE, \
  492. CFG_VALUE_OR_DEFAULT, "DP RXDMA refilll ring")
  493. #define CFG_DP_TX_DESC_LIMIT_0 \
  494. CFG_INI_UINT("dp_tx_desc_limit_0", \
  495. WLAN_CFG_TX_DESC_LIMIT_0_MIN, \
  496. WLAN_CFG_TX_DESC_LIMIT_0_MAX, \
  497. WLAN_CFG_TX_DESC_LIMIT_0, \
  498. CFG_VALUE_OR_DEFAULT, "DP TX DESC limit 0")
  499. #define CFG_DP_TX_DESC_LIMIT_1 \
  500. CFG_INI_UINT("dp_tx_desc_limit_1", \
  501. WLAN_CFG_TX_DESC_LIMIT_1_MIN, \
  502. WLAN_CFG_TX_DESC_LIMIT_1_MAX, \
  503. WLAN_CFG_TX_DESC_LIMIT_1, \
  504. CFG_VALUE_OR_DEFAULT, "DP TX DESC limit 1")
  505. #define CFG_DP_TX_DESC_LIMIT_2 \
  506. CFG_INI_UINT("dp_tx_desc_limit_2", \
  507. WLAN_CFG_TX_DESC_LIMIT_2_MIN, \
  508. WLAN_CFG_TX_DESC_LIMIT_2_MAX, \
  509. WLAN_CFG_TX_DESC_LIMIT_2, \
  510. CFG_VALUE_OR_DEFAULT, "DP TX DESC limit 2")
  511. #define CFG_DP_TX_DEVICE_LIMIT \
  512. CFG_INI_UINT("dp_tx_device_limit", \
  513. WLAN_CFG_TX_DEVICE_LIMIT_MIN, \
  514. WLAN_CFG_TX_DEVICE_LIMIT_MAX, \
  515. WLAN_CFG_TX_DEVICE_LIMIT, \
  516. CFG_VALUE_OR_DEFAULT, "DP TX DEVICE limit")
  517. #define CFG_DP_TX_SW_INTERNODE_QUEUE \
  518. CFG_INI_UINT("dp_tx_sw_internode_queue", \
  519. WLAN_CFG_TX_SW_INTERNODE_QUEUE_MIN, \
  520. WLAN_CFG_TX_SW_INTERNODE_QUEUE_MAX, \
  521. WLAN_CFG_TX_SW_INTERNODE_QUEUE, \
  522. CFG_VALUE_OR_DEFAULT, "DP TX SW internode queue")
  523. #define CFG_DP_RXDMA_MONITOR_BUF_RING \
  524. CFG_INI_UINT("dp_rxdma_monitor_buf_ring", \
  525. WLAN_CFG_RXDMA_MONITOR_BUF_RING_SIZE_MIN, \
  526. WLAN_CFG_RXDMA_MONITOR_BUF_RING_SIZE_MAX, \
  527. WLAN_CFG_RXDMA_MONITOR_BUF_RING_SIZE, \
  528. CFG_VALUE_OR_DEFAULT, "DP RXDMA monitor buffer ring")
  529. #define CFG_DP_RXDMA_MONITOR_DST_RING \
  530. CFG_INI_UINT("dp_rxdma_monitor_dst_ring", \
  531. WLAN_CFG_RXDMA_MONITOR_DST_RING_SIZE_MIN, \
  532. WLAN_CFG_RXDMA_MONITOR_DST_RING_SIZE_MAX, \
  533. WLAN_CFG_RXDMA_MONITOR_DST_RING_SIZE, \
  534. CFG_VALUE_OR_DEFAULT, "DP RXDMA monitor destination ring")
  535. #define CFG_DP_RXDMA_MONITOR_STATUS_RING \
  536. CFG_INI_UINT("dp_rxdma_monitor_status_ring", \
  537. WLAN_CFG_RXDMA_MONITOR_STATUS_RING_SIZE_MIN, \
  538. WLAN_CFG_RXDMA_MONITOR_STATUS_RING_SIZE_MAX, \
  539. WLAN_CFG_RXDMA_MONITOR_STATUS_RING_SIZE, \
  540. CFG_VALUE_OR_DEFAULT, "DP RXDMA monitor status ring")
  541. #define CFG_DP_RXDMA_MONITOR_DESC_RING \
  542. CFG_INI_UINT("dp_rxdma_monitor_desc_ring", \
  543. WLAN_CFG_RXDMA_MONITOR_DESC_RING_SIZE_MIN, \
  544. WLAN_CFG_RXDMA_MONITOR_DESC_RING_SIZE_MAX, \
  545. WLAN_CFG_RXDMA_MONITOR_DESC_RING_SIZE, \
  546. CFG_VALUE_OR_DEFAULT, "DP RXDMA monitor destination ring")
  547. #define CFG_DP_RXDMA_ERR_DST_RING \
  548. CFG_INI_UINT("dp_rxdma_err_dst_ring", \
  549. WLAN_CFG_RXDMA_ERR_DST_RING_SIZE_MIN, \
  550. WLAN_CFG_RXDMA_ERR_DST_RING_SIZE_MAX, \
  551. WLAN_CFG_RXDMA_ERR_DST_RING_SIZE, \
  552. CFG_VALUE_OR_DEFAULT, "RXDMA err destination ring")
  553. #define CFG_DP_PER_PKT_LOGGING \
  554. CFG_INI_UINT("enable_verbose_debug", \
  555. 0, 0xffff, 0, \
  556. CFG_VALUE_OR_DEFAULT, "Enable excessive per packet logging")
  557. #define CFG_DP_TX_FLOW_START_QUEUE_OFFSET \
  558. CFG_INI_UINT("TxFlowStartQueueOffset", \
  559. 0, 30, WLAN_CFG_TX_FLOW_START_QUEUE_OFFSET, \
  560. CFG_VALUE_OR_DEFAULT, "Start queue offset")
  561. #define CFG_DP_TX_FLOW_STOP_QUEUE_TH \
  562. CFG_INI_UINT("TxFlowStopQueueThreshold", \
  563. 0, 50, 15, \
  564. CFG_VALUE_OR_DEFAULT, "Stop queue Threshold")
  565. #define CFG_DP_IPA_UC_TX_BUF_SIZE \
  566. CFG_INI_UINT("IpaUcTxBufSize", \
  567. 0, 4096, WLAN_CFG_IPA_UC_TX_BUF_SIZE, \
  568. CFG_VALUE_OR_DEFAULT, "IPA tx buffer size")
  569. #define CFG_DP_IPA_UC_TX_PARTITION_BASE \
  570. CFG_INI_UINT("IpaUcTxPartitionBase", \
  571. 0, 9000, WLAN_CFG_IPA_UC_TX_PARTITION_BASE, \
  572. CFG_VALUE_OR_DEFAULT, "IPA tx partition base")
  573. #define CFG_DP_IPA_UC_RX_IND_RING_COUNT \
  574. CFG_INI_UINT("IpaUcRxIndRingCount", \
  575. 0, 2048, WLAN_CFG_IPA_UC_RX_IND_RING_COUNT, \
  576. CFG_VALUE_OR_DEFAULT, "IPA rx indication ring count")
  577. #define CFG_DP_REORDER_OFFLOAD_SUPPORT \
  578. CFG_INI_UINT("gReorderOffloadSupported", \
  579. 0, 1, 1, \
  580. CFG_VALUE_OR_DEFAULT, "Packet reordering offload to firmware")
  581. #define CFG_DP_AP_STA_SECURITY_SEPERATION \
  582. CFG_INI_BOOL("gDisableIntraBssFwd", \
  583. false, "Disable intrs BSS Rx packets")
  584. #define CFG_DP_ENABLE_DATA_STALL_DETECTION \
  585. CFG_INI_BOOL("gEnableDataStallDetection", \
  586. true, "Enable/Disable Data stall detection")
  587. #define CFG_DP_RX_SW_DESC_WEIGHT \
  588. CFG_INI_UINT("dp_rx_sw_desc_weight", \
  589. WLAN_CFG_RX_SW_DESC_WEIGHT_SIZE_MIN, \
  590. WLAN_CFG_RX_SW_DESC_WEIGHT_SIZE_MAX, \
  591. WLAN_CFG_RX_SW_DESC_WEIGHT_SIZE, \
  592. CFG_VALUE_OR_DEFAULT, "DP RX SW DESC weight")
  593. #define CFG_DP_RX_FLOW_SEARCH_TABLE_SIZE \
  594. CFG_INI_UINT("dp_rx_flow_search_table_size", \
  595. WLAN_CFG_RX_FLOW_SEARCH_TABLE_SIZE_MIN, \
  596. WLAN_CFG_RX_FLOW_SEARCH_TABLE_SIZE_MAX, \
  597. WLAN_CFG_RX_FLOW_SEARCH_TABLE_SIZE, \
  598. CFG_VALUE_OR_DEFAULT, \
  599. "DP Rx Flow Search Table Size in number of entries")
  600. #define CFG_DP_RX_FLOW_TAG_ENABLE \
  601. CFG_INI_BOOL("dp_rx_flow_tag_enable", false, \
  602. "Enable/Disable DP Rx Flow Tag")
  603. #define CFG_DP_RX_FLOW_SEARCH_TABLE_PER_PDEV \
  604. CFG_INI_BOOL("dp_rx_per_pdev_flow_search", false, \
  605. "DP Rx Flow Search Table Is Per PDev")
  606. #define CFG_DP_RX_MON_PROTOCOL_FLOW_TAG_ENABLE \
  607. CFG_INI_BOOL("dp_rx_monitor_protocol_flow_tag_enable", true, \
  608. "Enable/Disable Rx Protocol & Flow tags in Monitor mode")
  609. #define CFG_DP_RXDMA_MONITOR_RX_DROP_THRESHOLD \
  610. CFG_INI_UINT("mon_drop_thresh", \
  611. WLAN_CFG_RXDMA_MONITOR_RX_DROP_THRESH_SIZE_MIN, \
  612. WLAN_CFG_RXDMA_MONITOR_RX_DROP_THRESH_SIZE_MAX, \
  613. WLAN_CFG_RXDMA_MONITOR_RX_DROP_THRESH_SIZE, \
  614. CFG_VALUE_OR_DEFAULT, "RXDMA monitor rx drop theshold")
  615. #define CFG_DP \
  616. CFG(CFG_DP_HTT_PACKET_TYPE) \
  617. CFG(CFG_DP_INT_BATCH_THRESHOLD_OTHER) \
  618. CFG(CFG_DP_INT_BATCH_THRESHOLD_RX) \
  619. CFG(CFG_DP_INT_BATCH_THRESHOLD_TX) \
  620. CFG(CFG_DP_INT_TIMER_THRESHOLD_OTHER) \
  621. CFG(CFG_DP_INT_TIMER_THRESHOLD_RX) \
  622. CFG(CFG_DP_INT_TIMER_THRESHOLD_TX) \
  623. CFG(CFG_DP_MAX_ALLOC_SIZE) \
  624. CFG(CFG_DP_MAX_CLIENTS) \
  625. CFG(CFG_DP_MAX_PEER_ID) \
  626. CFG(CFG_DP_REO_DEST_RINGS) \
  627. CFG(CFG_DP_TCL_DATA_RINGS) \
  628. CFG(CFG_DP_TX_DESC) \
  629. CFG(CFG_DP_TX_EXT_DESC) \
  630. CFG(CFG_DP_TX_EXT_DESC_POOLS) \
  631. CFG(CFG_DP_PDEV_RX_RING) \
  632. CFG(CFG_DP_PDEV_TX_RING) \
  633. CFG(CFG_DP_RX_DEFRAG_TIMEOUT) \
  634. CFG(CFG_DP_TX_COMPL_RING_SIZE) \
  635. CFG(CFG_DP_TX_RING_SIZE) \
  636. CFG(CFG_DP_NSS_COMP_RING_SIZE) \
  637. CFG(CFG_DP_PDEV_LMAC_RING) \
  638. CFG(CFG_DP_BASE_HW_MAC_ID) \
  639. CFG(CFG_DP_RX_HASH) \
  640. CFG(CFG_DP_TSO) \
  641. CFG(CFG_DP_LRO) \
  642. CFG(CFG_DP_SG) \
  643. CFG(CFG_DP_GRO) \
  644. CFG(CFG_DP_OL_TX_CSUM) \
  645. CFG(CFG_DP_OL_RX_CSUM) \
  646. CFG(CFG_DP_RAWMODE) \
  647. CFG(CFG_DP_PEER_FLOW_CTRL) \
  648. CFG(CFG_DP_NAPI) \
  649. CFG(CFG_DP_TCP_UDP_CKSUM_OFFLOAD) \
  650. CFG(CFG_DP_DEFRAG_TIMEOUT_CHECK) \
  651. CFG(CFG_DP_WBM_RELEASE_RING) \
  652. CFG(CFG_DP_TCL_CMD_RING) \
  653. CFG(CFG_DP_TCL_STATUS_RING) \
  654. CFG(CFG_DP_REO_REINJECT_RING) \
  655. CFG(CFG_DP_RX_RELEASE_RING) \
  656. CFG(CFG_DP_REO_EXCEPTION_RING) \
  657. CFG(CFG_DP_REO_CMD_RING) \
  658. CFG(CFG_DP_REO_STATUS_RING) \
  659. CFG(CFG_DP_RXDMA_BUF_RING) \
  660. CFG(CFG_DP_RXDMA_REFILL_RING) \
  661. CFG(CFG_DP_TX_DESC_LIMIT_0) \
  662. CFG(CFG_DP_TX_DESC_LIMIT_1) \
  663. CFG(CFG_DP_TX_DESC_LIMIT_2) \
  664. CFG(CFG_DP_TX_DEVICE_LIMIT) \
  665. CFG(CFG_DP_TX_SW_INTERNODE_QUEUE) \
  666. CFG(CFG_DP_RXDMA_MONITOR_BUF_RING) \
  667. CFG(CFG_DP_RXDMA_MONITOR_DST_RING) \
  668. CFG(CFG_DP_RXDMA_MONITOR_STATUS_RING) \
  669. CFG(CFG_DP_RXDMA_MONITOR_DESC_RING) \
  670. CFG(CFG_DP_RXDMA_ERR_DST_RING) \
  671. CFG(CFG_DP_PER_PKT_LOGGING) \
  672. CFG(CFG_DP_TX_FLOW_START_QUEUE_OFFSET) \
  673. CFG(CFG_DP_TX_FLOW_STOP_QUEUE_TH) \
  674. CFG(CFG_DP_IPA_UC_TX_BUF_SIZE) \
  675. CFG(CFG_DP_IPA_UC_TX_PARTITION_BASE) \
  676. CFG(CFG_DP_IPA_UC_RX_IND_RING_COUNT) \
  677. CFG(CFG_DP_REORDER_OFFLOAD_SUPPORT) \
  678. CFG(CFG_DP_AP_STA_SECURITY_SEPERATION) \
  679. CFG(CFG_DP_ENABLE_DATA_STALL_DETECTION) \
  680. CFG(CFG_DP_RX_SW_DESC_WEIGHT) \
  681. CFG(CFG_DP_RX_FLOW_SEARCH_TABLE_SIZE) \
  682. CFG(CFG_DP_RX_FLOW_TAG_ENABLE) \
  683. CFG(CFG_DP_RX_FLOW_SEARCH_TABLE_PER_PDEV) \
  684. CFG(CFG_DP_RX_MON_PROTOCOL_FLOW_TAG_ENABLE) \
  685. CFG(CFG_DP_RXDMA_MONITOR_RX_DROP_THRESHOLD)
  686. #endif /* _CFG_DP_H_ */