cfg_dp.h 19 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600
  1. /*
  2. * Copyright (c) 2018 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 64
  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 0x200000
  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. #ifdef CONFIG_MCL
  35. #ifdef IPA_OFFLOAD
  36. #define WLAN_CFG_PER_PDEV_TX_RING 0
  37. #else
  38. #define WLAN_CFG_PER_PDEV_TX_RING 1
  39. #endif
  40. #else
  41. #define WLAN_CFG_PER_PDEV_TX_RING 0
  42. #endif
  43. #define WLAN_CFG_PER_PDEV_TX_RING_MIN 0
  44. #define WLAN_CFG_PER_PDEV_TX_RING_MAX 1
  45. #ifdef CONFIG_MCL
  46. #define WLAN_CFG_PER_PDEV_RX_RING 0
  47. #define WLAN_CFG_PER_PDEV_LMAC_RING 0
  48. #define WLAN_LRO_ENABLE 1
  49. #ifdef IPA_OFFLOAD
  50. #define WLAN_CFG_TX_RING_SIZE 2048
  51. #else
  52. #define WLAN_CFG_TX_RING_SIZE 512
  53. #endif
  54. #define WLAN_CFG_TX_COMP_RING_SIZE 1024
  55. /* Tx Descriptor and Tx Extension Descriptor pool sizes */
  56. #define WLAN_CFG_NUM_TX_DESC 1024
  57. #define WLAN_CFG_NUM_TX_EXT_DESC 1024
  58. /* Interrupt Mitigation - Batch threshold in terms of number of frames */
  59. #define WLAN_CFG_INT_BATCH_THRESHOLD_TX 1
  60. #define WLAN_CFG_INT_BATCH_THRESHOLD_RX 1
  61. #define WLAN_CFG_INT_BATCH_THRESHOLD_OTHER 1
  62. /* Interrupt Mitigation - Timer threshold in us */
  63. #define WLAN_CFG_INT_TIMER_THRESHOLD_TX 8
  64. #define WLAN_CFG_INT_TIMER_THRESHOLD_RX 8
  65. #define WLAN_CFG_INT_TIMER_THRESHOLD_OTHER 8
  66. #endif
  67. #ifdef CONFIG_WIN
  68. #define WLAN_CFG_PER_PDEV_RX_RING 0
  69. #define WLAN_CFG_PER_PDEV_LMAC_RING 1
  70. #define WLAN_LRO_ENABLE 0
  71. /* Tx Descriptor and Tx Extension Descriptor pool sizes */
  72. #define WLAN_CFG_NUM_TX_DESC 0x320000
  73. #define WLAN_CFG_NUM_TX_EXT_DESC 0x80000
  74. /* Interrupt Mitigation - Batch threshold in terms of number of frames */
  75. #define WLAN_CFG_INT_BATCH_THRESHOLD_TX 256
  76. #define WLAN_CFG_INT_BATCH_THRESHOLD_RX 128
  77. #define WLAN_CFG_INT_BATCH_THRESHOLD_OTHER 1
  78. /* Interrupt Mitigation - Timer threshold in us */
  79. #define WLAN_CFG_INT_TIMER_THRESHOLD_TX 1000
  80. #define WLAN_CFG_INT_TIMER_THRESHOLD_RX 500
  81. #define WLAN_CFG_INT_TIMER_THRESHOLD_OTHER 1000
  82. #define WLAN_CFG_TX_RING_SIZE 512
  83. /* Size the completion ring using following 2 parameters
  84. * - NAPI schedule latency (assuming 1 netdev competing for CPU)
  85. * = 20 ms (2 jiffies)
  86. * - Worst case PPS requirement = 400K PPS
  87. *
  88. * Ring size = 20 * 400 = 8000
  89. * 8192 is nearest power of 2
  90. */
  91. #define WLAN_CFG_TX_COMP_RING_SIZE 0x80000
  92. #endif
  93. #define WLAN_CFG_PER_PDEV_RX_RING_MIN 0
  94. #define WLAN_CFG_PER_PDEV_RX_RING_MAX 0
  95. #define WLAN_CFG_PER_PDEV_LMAC_RING_MIN 0
  96. #define WLAN_CFG_PER_PDEV_LMAC_RING_MAX 1
  97. #define WLAN_CFG_TX_RING_SIZE_MIN 512
  98. #define WLAN_CFG_TX_RING_SIZE_MAX 2048
  99. #define WLAN_CFG_TX_COMP_RING_SIZE_MIN 1024
  100. #define WLAN_CFG_TX_COMP_RING_SIZE_MAX 0x80000
  101. #define WLAN_CFG_NUM_TX_DESC_MIN 1024
  102. #define WLAN_CFG_NUM_TX_DESC_MAX 0x320000
  103. #define WLAN_CFG_NUM_TX_EXT_DESC_MIN 1024
  104. #define WLAN_CFG_NUM_TX_EXT_DESC_MAX 0x80000
  105. #define WLAN_CFG_INT_BATCH_THRESHOLD_TX_MIN 1
  106. #define WLAN_CFG_INT_BATCH_THRESHOLD_TX_MAX 256
  107. #define WLAN_CFG_INT_BATCH_THRESHOLD_RX_MIN 1
  108. #define WLAN_CFG_INT_BATCH_THRESHOLD_RX_MAX 128
  109. #define WLAN_CFG_INT_BATCH_THRESHOLD_OTHER_MIN 1
  110. #define WLAN_CFG_INT_BATCH_THRESHOLD_OTHER_MAX 1
  111. #define WLAN_CFG_INT_TIMER_THRESHOLD_TX_MIN 8
  112. #define WLAN_CFG_INT_TIMER_THRESHOLD_TX_MAX 100
  113. #define WLAN_CFG_INT_TIMER_THRESHOLD_RX_MIN 8
  114. #define WLAN_CFG_INT_TIMER_THRESHOLD_RX_MAX 500
  115. #define WLAN_CFG_INT_TIMER_THRESHOLD_OTHER_MIN 8
  116. #define WLAN_CFG_INT_TIMER_THRESHOLD_OTHER_MAX 1000
  117. #define WLAN_CFG_NSS_TX_COMP_RING_SIZE 0x1000
  118. #define WLAN_CFG_NSS_TX_COMP_RING_SIZE_MIN 0x1000
  119. #define WLAN_CFG_NSS_TX_COMP_RING_SIZE_MAX 0x1000
  120. #ifdef QCA_LL_TX_FLOW_CONTROL_V2
  121. /* Per vdev pools */
  122. #define WLAN_CFG_NUM_TX_DESC_POOL 3
  123. #define WLAN_CFG_NUM_TXEXT_DESC_POOL 3
  124. #else /* QCA_LL_TX_FLOW_CONTROL_V2 */
  125. #ifdef TX_PER_PDEV_DESC_POOL
  126. #define WLAN_CFG_NUM_TX_DESC_POOL MAX_PDEV_CNT
  127. #define WLAN_CFG_NUM_TXEXT_DESC_POOL MAX_PDEV_CNT
  128. #else /* TX_PER_PDEV_DESC_POOL */
  129. #define WLAN_CFG_NUM_TX_DESC_POOL 3
  130. #define WLAN_CFG_NUM_TXEXT_DESC_POOL 3
  131. #endif /* TX_PER_PDEV_DESC_POOL */
  132. #endif /* QCA_LL_TX_FLOW_CONTROL_V2 */
  133. #define WLAN_CFG_NUM_TXEXT_DESC_POOL_MIN 1
  134. #define WLAN_CFG_NUM_TXEXT_DESC_POOL_MAX 4
  135. #define WLAN_CFG_HTT_PKT_TYPE 2
  136. #define WLAN_CFG_HTT_PKT_TYPE_MIN 2
  137. #define WLAN_CFG_HTT_PKT_TYPE_MAX 2
  138. #define WLAN_CFG_MAX_PEER_ID 64
  139. #define WLAN_CFG_MAX_PEER_ID_MIN 64
  140. #define WLAN_CFG_MAX_PEER_ID_MAX 64
  141. #define WLAN_CFG_RX_DEFRAG_TIMEOUT 100
  142. #define WLAN_CFG_RX_DEFRAG_TIMEOUT_MIN 100
  143. #define WLAN_CFG_RX_DEFRAG_TIMEOUT_MAX 100
  144. #define WLAN_CFG_NUM_TCL_DATA_RINGS 3
  145. #define WLAN_CFG_NUM_TCL_DATA_RINGS_MIN 3
  146. #define WLAN_CFG_NUM_TCL_DATA_RINGS_MAX 3
  147. #define WLAN_CFG_NUM_REO_DEST_RING 4
  148. #define WLAN_CFG_NUM_REO_DEST_RING_MIN 4
  149. #define WLAN_CFG_NUM_REO_DEST_RING_MAX 4
  150. #define WLAN_CFG_WBM_RELEASE_RING_SIZE 64
  151. #define WLAN_CFG_WBM_RELEASE_RING_SIZE_MIN 64
  152. #define WLAN_CFG_WBM_RELEASE_RING_SIZE_MAX 64
  153. #define WLAN_CFG_TCL_CMD_RING_SIZE 32
  154. #define WLAN_CFG_TCL_CMD_RING_SIZE_MIN 32
  155. #define WLAN_CFG_TCL_CMD_RING_SIZE_MAX 32
  156. #define WLAN_CFG_TCL_STATUS_RING_SIZE 32
  157. #define WLAN_CFG_TCL_STATUS_RING_SIZE_MIN 32
  158. #define WLAN_CFG_TCL_STATUS_RING_SIZE_MAX 32
  159. #if defined(QCA_WIFI_QCA6290)
  160. #define WLAN_CFG_REO_DST_RING_SIZE 1024
  161. #else
  162. #define WLAN_CFG_REO_DST_RING_SIZE 2048
  163. #endif
  164. #define WLAN_CFG_REO_DST_RING_SIZE_MIN 1024
  165. #define WLAN_CFG_REO_DST_RING_SIZE_MAX 2048
  166. #define WLAN_CFG_REO_REINJECT_RING_SIZE 32
  167. #define WLAN_CFG_REO_REINJECT_RING_SIZE_MIN 32
  168. #define WLAN_CFG_REO_REINJECT_RING_SIZE_MAX 32
  169. #define WLAN_CFG_RX_RELEASE_RING_SIZE 1024
  170. #define WLAN_CFG_RX_RELEASE_RING_SIZE_MIN 1024
  171. #define WLAN_CFG_RX_RELEASE_RING_SIZE_MAX 1024
  172. #define WLAN_CFG_REO_EXCEPTION_RING_SIZE 128
  173. #define WLAN_CFG_REO_EXCEPTION_RING_SIZE_MIN 128
  174. #define WLAN_CFG_REO_EXCEPTION_RING_SIZE_MAX 128
  175. #define WLAN_CFG_REO_CMD_RING_SIZE 64
  176. #define WLAN_CFG_REO_CMD_RING_SIZE_MIN 64
  177. #define WLAN_CFG_REO_CMD_RING_SIZE_MAX 64
  178. #define WLAN_CFG_REO_STATUS_RING_SIZE 128
  179. #define WLAN_CFG_REO_STATUS_RING_SIZE_MIN 128
  180. #define WLAN_CFG_REO_STATUS_RING_SIZE_MAX 128
  181. #define WLAN_CFG_RXDMA_BUF_RING_SIZE 1024
  182. #define WLAN_CFG_RXDMA_BUF_RING_SIZE_MIN 1024
  183. #define WLAN_CFG_RXDMA_BUF_RING_SIZE_MAX 1024
  184. #define WLAN_CFG_RXDMA_REFILL_RING_SIZE 4096
  185. #define WLAN_CFG_RXDMA_REFILL_RING_SIZE_MIN 4096
  186. #define WLAN_CFG_RXDMA_REFILL_RING_SIZE_MAX 4096
  187. #define WLAN_CFG_RXDMA_MONITOR_BUF_RING_SIZE 4096
  188. #define WLAN_CFG_RXDMA_MONITOR_BUF_RING_SIZE_MIN 4096
  189. #define WLAN_CFG_RXDMA_MONITOR_BUF_RING_SIZE_MAX 4096
  190. #define WLAN_CFG_RXDMA_MONITOR_DST_RING_SIZE 2048
  191. #define WLAN_CFG_RXDMA_MONITOR_DST_RING_SIZE_MIN 2048
  192. #define WLAN_CFG_RXDMA_MONITOR_DST_RING_SIZE_MAX 2048
  193. #define WLAN_CFG_RXDMA_MONITOR_STATUS_RING_SIZE 1024
  194. #define WLAN_CFG_RXDMA_MONITOR_STATUS_RING_SIZE_MIN 1024
  195. #define WLAN_CFG_RXDMA_MONITOR_STATUS_RING_SIZE_MAX 1024
  196. #define WLAN_CFG_RXDMA_MONITOR_DESC_RING_SIZE 4096
  197. #define WLAN_CFG_RXDMA_MONITOR_DESC_RING_SIZE_MIN 4096
  198. #define WLAN_CFG_RXDMA_MONITOR_DESC_RING_SIZE_MAX 4096
  199. #define WLAN_CFG_RXDMA_ERR_DST_RING_SIZE 1024
  200. #define WLAN_CFG_RXDMA_ERR_DST_RING_SIZE_MIN 1024
  201. #define WLAN_CFG_RXDMA_ERR_DST_RING_SIZE_MAX 1024
  202. /* DP INI Declerations */
  203. #define CFG_DP_HTT_PACKET_TYPE \
  204. CFG_INI_UINT("dp_htt_packet_type", \
  205. WLAN_CFG_HTT_PKT_TYPE_MIN, \
  206. WLAN_CFG_HTT_PKT_TYPE_MAX, \
  207. WLAN_CFG_HTT_PKT_TYPE, \
  208. CFG_VALUE_OR_DEFAULT, "DP HTT packet type")
  209. #define CFG_DP_INT_BATCH_THRESHOLD_OTHER \
  210. CFG_INI_UINT("dp_int_batch_threshold_other", \
  211. WLAN_CFG_INT_TIMER_THRESHOLD_OTHER_MIN, \
  212. WLAN_CFG_INT_TIMER_THRESHOLD_OTHER_MAX, \
  213. WLAN_CFG_INT_TIMER_THRESHOLD_OTHER, \
  214. CFG_VALUE_OR_DEFAULT, "DP INT threshold Other")
  215. #define CFG_DP_INT_BATCH_THRESHOLD_RX \
  216. CFG_INI_UINT("dp_int_batch_threshold_rx", \
  217. WLAN_CFG_INT_BATCH_THRESHOLD_RX_MIN, \
  218. WLAN_CFG_INT_BATCH_THRESHOLD_RX_MAX, \
  219. WLAN_CFG_INT_BATCH_THRESHOLD_RX, \
  220. CFG_VALUE_OR_DEFAULT, "DP INT threshold Rx")
  221. #define CFG_DP_INT_BATCH_THRESHOLD_TX \
  222. CFG_INI_UINT("dp_int_batch_threshold_tx", \
  223. WLAN_CFG_INT_BATCH_THRESHOLD_TX_MIN, \
  224. WLAN_CFG_INT_BATCH_THRESHOLD_TX_MAX, \
  225. WLAN_CFG_INT_BATCH_THRESHOLD_TX, \
  226. CFG_VALUE_OR_DEFAULT, "DP INT threshold Tx")
  227. #define CFG_DP_INT_TIMER_THRESHOLD_OTHER \
  228. CFG_INI_UINT("dp_int_timer_threshold_other", \
  229. WLAN_CFG_INT_TIMER_THRESHOLD_OTHER_MIN, \
  230. WLAN_CFG_INT_TIMER_THRESHOLD_OTHER_MAX, \
  231. WLAN_CFG_INT_TIMER_THRESHOLD_OTHER, \
  232. CFG_VALUE_OR_DEFAULT, "DP INT timer threshold Other")
  233. #define CFG_DP_INT_TIMER_THRESHOLD_RX \
  234. CFG_INI_UINT("dp_int_timer_threshold_rx", \
  235. WLAN_CFG_INT_TIMER_THRESHOLD_RX_MIN, \
  236. WLAN_CFG_INT_TIMER_THRESHOLD_RX_MAX, \
  237. WLAN_CFG_INT_TIMER_THRESHOLD_RX, \
  238. CFG_VALUE_OR_DEFAULT, "DP INT timer threshold Rx")
  239. #define CFG_DP_INT_TIMER_THRESHOLD_TX \
  240. CFG_INI_UINT("dp_int_timer_threshold_tx", \
  241. WLAN_CFG_INT_TIMER_THRESHOLD_TX_MIN, \
  242. WLAN_CFG_INT_TIMER_THRESHOLD_TX_MAX, \
  243. WLAN_CFG_INT_TIMER_THRESHOLD_TX, \
  244. CFG_VALUE_OR_DEFAULT, "DP INT timer threshold Tx")
  245. #define CFG_DP_MAX_ALLOC_SIZE \
  246. CFG_INI_UINT("dp_max_alloc_size", \
  247. WLAN_CFG_MAX_ALLOC_SIZE_MIN, \
  248. WLAN_CFG_MAX_ALLOC_SIZE_MAX, \
  249. WLAN_CFG_MAX_ALLOC_SIZE, \
  250. CFG_VALUE_OR_DEFAULT, "DP Max Alloc Size")
  251. #define CFG_DP_MAX_CLIENTS \
  252. CFG_INI_UINT("dp_max_clients", \
  253. WLAN_CFG_MAX_CLIENTS_MIN, \
  254. WLAN_CFG_MAX_CLIENTS_MAX, \
  255. WLAN_CFG_MAX_CLIENTS, \
  256. CFG_VALUE_OR_DEFAULT, "DP Max Clients")
  257. #define CFG_DP_MAX_PEER_ID \
  258. CFG_INI_UINT("dp_max_peer_id", \
  259. WLAN_CFG_MAX_PEER_ID_MIN, \
  260. WLAN_CFG_MAX_PEER_ID_MAX, \
  261. WLAN_CFG_MAX_PEER_ID, \
  262. CFG_VALUE_OR_DEFAULT, "DP Max Peer ID")
  263. #define CFG_DP_REO_DEST_RINGS \
  264. CFG_INI_UINT("dp_reo_dest_rings", \
  265. WLAN_CFG_NUM_REO_DEST_RING_MIN, \
  266. WLAN_CFG_NUM_REO_DEST_RING_MAX, \
  267. WLAN_CFG_NUM_REO_DEST_RING, \
  268. CFG_VALUE_OR_DEFAULT, "DP REO Destination Rings")
  269. #define CFG_DP_TCL_DATA_RINGS \
  270. CFG_INI_UINT("dp_tcl_data_rings", \
  271. WLAN_CFG_NUM_TCL_DATA_RINGS_MIN, \
  272. WLAN_CFG_NUM_TCL_DATA_RINGS_MAX, \
  273. WLAN_CFG_NUM_TCL_DATA_RINGS, \
  274. CFG_VALUE_OR_DEFAULT, "DP TCL Data Rings")
  275. #define CFG_DP_TX_DESC \
  276. CFG_INI_UINT("dp_tx_desc", \
  277. WLAN_CFG_NUM_TX_DESC_MIN, \
  278. WLAN_CFG_NUM_TX_DESC_MAX, \
  279. WLAN_CFG_NUM_TX_DESC, \
  280. CFG_VALUE_OR_DEFAULT, "DP Tx Descriptors")
  281. #define CFG_DP_TX_EXT_DESC \
  282. CFG_INI_UINT("dp_tx_ext_desc", \
  283. WLAN_CFG_NUM_TX_EXT_DESC_MIN, \
  284. WLAN_CFG_NUM_TX_EXT_DESC_MAX, \
  285. WLAN_CFG_NUM_TX_EXT_DESC, \
  286. CFG_VALUE_OR_DEFAULT, "DP Tx Ext Descriptors")
  287. #define CFG_DP_TX_EXT_DESC_POOLS \
  288. CFG_INI_UINT("dp_tx_ext_desc_pool", \
  289. WLAN_CFG_NUM_TXEXT_DESC_POOL_MIN, \
  290. WLAN_CFG_NUM_TXEXT_DESC_POOL_MAX, \
  291. WLAN_CFG_NUM_TXEXT_DESC_POOL, \
  292. CFG_VALUE_OR_DEFAULT, "DP Tx Ext Descriptors Pool")
  293. #define CFG_DP_PDEV_RX_RING \
  294. CFG_INI_UINT("dp_pdev_rx_ring", \
  295. WLAN_CFG_PER_PDEV_RX_RING_MIN, \
  296. WLAN_CFG_PER_PDEV_RX_RING_MAX, \
  297. WLAN_CFG_PER_PDEV_RX_RING, \
  298. CFG_VALUE_OR_DEFAULT, "DP PDEV Rx Ring")
  299. #define CFG_DP_PDEV_TX_RING \
  300. CFG_INI_UINT("dp_pdev_tx_ring", \
  301. WLAN_CFG_PER_PDEV_TX_RING_MIN, \
  302. WLAN_CFG_PER_PDEV_TX_RING_MAX, \
  303. WLAN_CFG_PER_PDEV_TX_RING, \
  304. CFG_VALUE_OR_DEFAULT, \
  305. "DP PDEV Tx Ring")
  306. #define CFG_DP_RX_DEFRAG_TIMEOUT \
  307. CFG_INI_UINT("dp_rx_defrag_timeout", \
  308. WLAN_CFG_RX_DEFRAG_TIMEOUT_MIN, \
  309. WLAN_CFG_RX_DEFRAG_TIMEOUT_MAX, \
  310. WLAN_CFG_RX_DEFRAG_TIMEOUT, \
  311. CFG_VALUE_OR_DEFAULT, "DP Rx Defrag Timeout")
  312. #define CFG_DP_TX_COMPL_RING_SIZE \
  313. CFG_INI_UINT("dp_tx_compl_ring_size", \
  314. WLAN_CFG_TX_COMP_RING_SIZE_MIN, \
  315. WLAN_CFG_TX_COMP_RING_SIZE_MAX, \
  316. WLAN_CFG_TX_COMP_RING_SIZE, \
  317. CFG_VALUE_OR_DEFAULT, "DP Tx Completion Ring Size")
  318. #define CFG_DP_TX_RING_SIZE \
  319. CFG_INI_UINT("dp_tx_ring_size", \
  320. WLAN_CFG_TX_RING_SIZE_MIN,\
  321. WLAN_CFG_TX_RING_SIZE_MAX,\
  322. WLAN_CFG_TX_RING_SIZE,\
  323. CFG_VALUE_OR_DEFAULT, "DP Tx Ring Size")
  324. #define CFG_DP_NSS_COMP_RING_SIZE \
  325. CFG_INI_UINT("dp_nss_comp_ring_size", \
  326. WLAN_CFG_NSS_TX_COMP_RING_SIZE_MIN, \
  327. WLAN_CFG_NSS_TX_COMP_RING_SIZE_MAX, \
  328. WLAN_CFG_NSS_TX_COMP_RING_SIZE, \
  329. CFG_VALUE_OR_DEFAULT, "DP NSS completion Ring Size")
  330. #define CFG_DP_PDEV_LMAC_RING \
  331. CFG_INI_UINT("dp_pdev_lmac_ring", \
  332. WLAN_CFG_PER_PDEV_LMAC_RING_MIN, \
  333. WLAN_CFG_PER_PDEV_LMAC_RING_MAX, \
  334. WLAN_CFG_PER_PDEV_LMAC_RING, \
  335. CFG_VALUE_OR_DEFAULT, "DP pdev LMAC ring")
  336. #define CFG_DP_BASE_HW_MAC_ID \
  337. CFG_INI_UINT("dp_base_hw_macid", \
  338. 0, 1, 1, \
  339. CFG_VALUE_OR_DEFAULT, "DP Base HW Mac ID")
  340. #define CFG_DP_LRO \
  341. CFG_INI_BOOL("LROEnable", WLAN_LRO_ENABLE, \
  342. "DP LRO Enable")
  343. #define CFG_DP_RX_HASH \
  344. CFG_INI_BOOL("dp_rx_hash", true, \
  345. "DP Rx Hash")
  346. #define CFG_DP_TSO \
  347. CFG_INI_BOOL("TSOEnable", false, \
  348. "DP TSO Enabled")
  349. #define CFG_DP_NAPI \
  350. CFG_INI_BOOL("dp_napi_enabled", MCL_OR_WIN_VALUE(true, false), \
  351. "DP Napi Enabled")
  352. #define CFG_DP_TCP_UDP_CKSUM_OFFLOAD \
  353. CFG_INI_BOOL("dp_tcp_udp_checksumoffload", true, \
  354. "DP TCP UDP Checksum Offload")
  355. #define CFG_DP_DEFRAG_TIMEOUT_CHECK \
  356. CFG_INI_BOOL("dp_defrag_timeout_check", true, \
  357. "DP Defrag Timeout Check")
  358. #define CFG_DP_WBM_RELEASE_RING \
  359. CFG_INI_UINT("dp_wbm_release_ring", \
  360. WLAN_CFG_WBM_RELEASE_RING_SIZE_MIN, \
  361. WLAN_CFG_WBM_RELEASE_RING_SIZE_MAX, \
  362. WLAN_CFG_WBM_RELEASE_RING_SIZE, \
  363. CFG_VALUE_OR_DEFAULT, "DP WBM Release Ring")
  364. #define CFG_DP_TCL_CMD_RING \
  365. CFG_INI_UINT("dp_tcl_cmd_ring", \
  366. WLAN_CFG_TCL_CMD_RING_SIZE_MIN, \
  367. WLAN_CFG_TCL_CMD_RING_SIZE_MAX, \
  368. WLAN_CFG_TCL_CMD_RING_SIZE, \
  369. CFG_VALUE_OR_DEFAULT, "DP TCL command ring")
  370. #define CFG_DP_TCL_STATUS_RING \
  371. CFG_INI_UINT("dp_tcl_status_ring",\
  372. WLAN_CFG_TCL_STATUS_RING_SIZE_MIN, \
  373. WLAN_CFG_TCL_STATUS_RING_SIZE_MAX, \
  374. WLAN_CFG_TCL_STATUS_RING_SIZE, \
  375. CFG_VALUE_OR_DEFAULT, "DP TCL status ring")
  376. #define CFG_DP_REO_REINJECT_RING \
  377. CFG_INI_UINT("dp_reo_reinject_ring", \
  378. WLAN_CFG_REO_REINJECT_RING_SIZE_MIN, \
  379. WLAN_CFG_REO_REINJECT_RING_SIZE_MAX, \
  380. WLAN_CFG_REO_REINJECT_RING_SIZE, \
  381. CFG_VALUE_OR_DEFAULT, "DP REO reinject ring")
  382. #define CFG_DP_RX_RELEASE_RING \
  383. CFG_INI_UINT("dp_rx_release_ring", \
  384. WLAN_CFG_RX_RELEASE_RING_SIZE_MIN, \
  385. WLAN_CFG_RX_RELEASE_RING_SIZE_MAX, \
  386. WLAN_CFG_RX_RELEASE_RING_SIZE, \
  387. CFG_VALUE_OR_DEFAULT, "DP Rx release ring")
  388. #define CFG_DP_REO_EXCEPTION_RING \
  389. CFG_INI_UINT("dp_reo_exception_ring", \
  390. WLAN_CFG_REO_EXCEPTION_RING_SIZE_MIN, \
  391. WLAN_CFG_REO_EXCEPTION_RING_SIZE_MAX, \
  392. WLAN_CFG_REO_EXCEPTION_RING_SIZE, \
  393. CFG_VALUE_OR_DEFAULT, "DP REO exception ring")
  394. #define CFG_DP_REO_CMD_RING \
  395. CFG_INI_UINT("dp_reo_cmd_ring", \
  396. WLAN_CFG_REO_CMD_RING_SIZE_MIN, \
  397. WLAN_CFG_REO_CMD_RING_SIZE_MAX, \
  398. WLAN_CFG_REO_CMD_RING_SIZE, \
  399. CFG_VALUE_OR_DEFAULT, "DP REO command ring")
  400. #define CFG_DP_REO_STATUS_RING \
  401. CFG_INI_UINT("dp_reo_status_ring", \
  402. WLAN_CFG_REO_STATUS_RING_SIZE_MIN, \
  403. WLAN_CFG_REO_STATUS_RING_SIZE_MAX, \
  404. WLAN_CFG_REO_STATUS_RING_SIZE, \
  405. CFG_VALUE_OR_DEFAULT, "DP REO status ring")
  406. #define CFG_DP_RXDMA_BUF_RING \
  407. CFG_INI_UINT("dp_rxdma_buf_ring", \
  408. WLAN_CFG_RXDMA_BUF_RING_SIZE_MIN, \
  409. WLAN_CFG_RXDMA_BUF_RING_SIZE_MAX, \
  410. WLAN_CFG_RXDMA_BUF_RING_SIZE, \
  411. CFG_VALUE_OR_DEFAULT, "DP RXDMA buffer ring")
  412. #define CFG_DP_RXDMA_REFILL_RING \
  413. CFG_INI_UINT("dp_rxdma_refill_ring", \
  414. WLAN_CFG_RXDMA_REFILL_RING_SIZE_MIN, \
  415. WLAN_CFG_RXDMA_REFILL_RING_SIZE_MAX, \
  416. WLAN_CFG_RXDMA_REFILL_RING_SIZE, \
  417. CFG_VALUE_OR_DEFAULT, "DP RXDMA refilll ring")
  418. #define CFG_DP_RXDMA_MONITOR_BUF_RING \
  419. CFG_INI_UINT("dp_rxdma_monitor_buf_ring", \
  420. WLAN_CFG_RXDMA_MONITOR_BUF_RING_SIZE_MIN, \
  421. WLAN_CFG_RXDMA_MONITOR_BUF_RING_SIZE_MAX, \
  422. WLAN_CFG_RXDMA_MONITOR_BUF_RING_SIZE, \
  423. CFG_VALUE_OR_DEFAULT, "DP RXDMA monitor buffer ring")
  424. #define CFG_DP_RXDMA_MONITOR_DST_RING \
  425. CFG_INI_UINT("dp_rxdma_monitor_dst_ring", \
  426. WLAN_CFG_RXDMA_MONITOR_DST_RING_SIZE_MIN, \
  427. WLAN_CFG_RXDMA_MONITOR_DST_RING_SIZE_MAX, \
  428. WLAN_CFG_RXDMA_MONITOR_DST_RING_SIZE, \
  429. CFG_VALUE_OR_DEFAULT, "DP RXDMA monitor destination ring")
  430. #define CFG_DP_RXDMA_MONITOR_STATUS_RING \
  431. CFG_INI_UINT("dp_rxdma_monitor_status_ring", \
  432. WLAN_CFG_RXDMA_MONITOR_STATUS_RING_SIZE_MIN, \
  433. WLAN_CFG_RXDMA_MONITOR_STATUS_RING_SIZE_MAX, \
  434. WLAN_CFG_RXDMA_MONITOR_STATUS_RING_SIZE, \
  435. CFG_VALUE_OR_DEFAULT, "DP RXDMA monitor status ring")
  436. #define CFG_DP_RXDMA_MONITOR_DESC_RING \
  437. CFG_INI_UINT("dp_rxdma_monitor_desc_ring", \
  438. WLAN_CFG_RXDMA_MONITOR_DESC_RING_SIZE_MIN, \
  439. WLAN_CFG_RXDMA_MONITOR_DESC_RING_SIZE_MAX, \
  440. WLAN_CFG_RXDMA_MONITOR_DESC_RING_SIZE, \
  441. CFG_VALUE_OR_DEFAULT, "DP RXDMA monitor destination ring")
  442. #define CFG_DP_RXDMA_ERR_DST_RING \
  443. CFG_INI_UINT("dp_rxdma_err_dst_ring", \
  444. WLAN_CFG_RXDMA_ERR_DST_RING_SIZE_MIN, \
  445. WLAN_CFG_RXDMA_ERR_DST_RING_SIZE_MAX, \
  446. WLAN_CFG_RXDMA_ERR_DST_RING_SIZE, \
  447. CFG_VALUE_OR_DEFAULT, "RXDMA err destination ring")
  448. #define CFG_DP \
  449. CFG(CFG_DP_HTT_PACKET_TYPE) \
  450. CFG(CFG_DP_INT_BATCH_THRESHOLD_OTHER) \
  451. CFG(CFG_DP_INT_BATCH_THRESHOLD_RX) \
  452. CFG(CFG_DP_INT_BATCH_THRESHOLD_TX) \
  453. CFG(CFG_DP_INT_TIMER_THRESHOLD_OTHER) \
  454. CFG(CFG_DP_INT_TIMER_THRESHOLD_RX) \
  455. CFG(CFG_DP_INT_TIMER_THRESHOLD_TX) \
  456. CFG(CFG_DP_MAX_ALLOC_SIZE) \
  457. CFG(CFG_DP_MAX_CLIENTS) \
  458. CFG(CFG_DP_MAX_PEER_ID) \
  459. CFG(CFG_DP_REO_DEST_RINGS) \
  460. CFG(CFG_DP_TCL_DATA_RINGS) \
  461. CFG(CFG_DP_TX_DESC) \
  462. CFG(CFG_DP_TX_EXT_DESC) \
  463. CFG(CFG_DP_TX_EXT_DESC_POOLS) \
  464. CFG(CFG_DP_PDEV_RX_RING) \
  465. CFG(CFG_DP_PDEV_TX_RING) \
  466. CFG(CFG_DP_RX_DEFRAG_TIMEOUT) \
  467. CFG(CFG_DP_TX_COMPL_RING_SIZE) \
  468. CFG(CFG_DP_TX_RING_SIZE) \
  469. CFG(CFG_DP_NSS_COMP_RING_SIZE) \
  470. CFG(CFG_DP_PDEV_LMAC_RING) \
  471. CFG(CFG_DP_BASE_HW_MAC_ID) \
  472. CFG(CFG_DP_LRO) \
  473. CFG(CFG_DP_RX_HASH) \
  474. CFG(CFG_DP_TSO) \
  475. CFG(CFG_DP_NAPI) \
  476. CFG(CFG_DP_TCP_UDP_CKSUM_OFFLOAD) \
  477. CFG(CFG_DP_DEFRAG_TIMEOUT_CHECK) \
  478. CFG(CFG_DP_WBM_RELEASE_RING) \
  479. CFG(CFG_DP_TCL_CMD_RING) \
  480. CFG(CFG_DP_TCL_STATUS_RING) \
  481. CFG(CFG_DP_REO_REINJECT_RING) \
  482. CFG(CFG_DP_RX_RELEASE_RING) \
  483. CFG(CFG_DP_REO_EXCEPTION_RING) \
  484. CFG(CFG_DP_REO_CMD_RING) \
  485. CFG(CFG_DP_REO_STATUS_RING) \
  486. CFG(CFG_DP_RXDMA_BUF_RING) \
  487. CFG(CFG_DP_RXDMA_REFILL_RING) \
  488. CFG(CFG_DP_RXDMA_MONITOR_BUF_RING) \
  489. CFG(CFG_DP_RXDMA_MONITOR_DST_RING) \
  490. CFG(CFG_DP_RXDMA_MONITOR_STATUS_RING) \
  491. CFG(CFG_DP_RXDMA_MONITOR_DESC_RING) \
  492. CFG(CFG_DP_RXDMA_ERR_DST_RING)
  493. #endif /* _CFG_DP_H_ */