dp_tx.h 16 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530
  1. /*
  2. * Copyright (c) 2016-2020 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. #ifndef __DP_TX_H
  19. #define __DP_TX_H
  20. #include <qdf_types.h>
  21. #include <qdf_nbuf.h>
  22. #include "dp_types.h"
  23. #define DP_INVALID_VDEV_ID 0xFF
  24. #define DP_TX_MAX_NUM_FRAGS 6
  25. #define DP_TX_DESC_FLAG_SIMPLE 0x1
  26. #define DP_TX_DESC_FLAG_TO_FW 0x2
  27. #define DP_TX_DESC_FLAG_FRAG 0x4
  28. #define DP_TX_DESC_FLAG_RAW 0x8
  29. #define DP_TX_DESC_FLAG_MESH 0x10
  30. #define DP_TX_DESC_FLAG_QUEUED_TX 0x20
  31. #define DP_TX_DESC_FLAG_COMPLETED_TX 0x40
  32. #define DP_TX_DESC_FLAG_ME 0x80
  33. #define DP_TX_DESC_FLAG_TDLS_FRAME 0x100
  34. #define DP_TX_DESC_FLAG_ALLOCATED 0x200
  35. #define DP_TX_DESC_FLAG_MESH_MODE 0x400
  36. #define DP_TX_EXT_DESC_FLAG_METADATA_VALID 0x1
  37. #define DP_TX_FREE_SINGLE_BUF(soc, buf) \
  38. do { \
  39. qdf_nbuf_unmap(soc->osdev, buf, QDF_DMA_TO_DEVICE); \
  40. qdf_nbuf_free(buf); \
  41. } while (0)
  42. #define OCB_HEADER_VERSION 1
  43. #ifdef TX_PER_PDEV_DESC_POOL
  44. #ifdef QCA_LL_TX_FLOW_CONTROL_V2
  45. #define DP_TX_GET_DESC_POOL_ID(vdev) (vdev->vdev_id)
  46. #else /* QCA_LL_TX_FLOW_CONTROL_V2 */
  47. #define DP_TX_GET_DESC_POOL_ID(vdev) (vdev->pdev->pdev_id)
  48. #endif /* QCA_LL_TX_FLOW_CONTROL_V2 */
  49. #define DP_TX_GET_RING_ID(vdev) (vdev->pdev->pdev_id)
  50. #else
  51. #ifdef TX_PER_VDEV_DESC_POOL
  52. #define DP_TX_GET_DESC_POOL_ID(vdev) (vdev->vdev_id)
  53. #define DP_TX_GET_RING_ID(vdev) (vdev->pdev->pdev_id)
  54. #endif /* TX_PER_VDEV_DESC_POOL */
  55. #endif /* TX_PER_PDEV_DESC_POOL */
  56. #define DP_TX_QUEUE_MASK 0x3
  57. /* number of dwords for htt_tx_msdu_desc_ext2_t */
  58. #define DP_TX_MSDU_INFO_META_DATA_DWORDS 7
  59. /**
  60. * struct dp_tx_frag_info_s
  61. * @vaddr: hlos vritual address for buffer
  62. * @paddr_lo: physical address lower 32bits
  63. * @paddr_hi: physical address higher bits
  64. * @len: length of the buffer
  65. */
  66. struct dp_tx_frag_info_s {
  67. uint8_t *vaddr;
  68. uint32_t paddr_lo;
  69. uint16_t paddr_hi;
  70. uint16_t len;
  71. };
  72. /**
  73. * struct dp_tx_seg_info_s - Segmentation Descriptor
  74. * @nbuf: NBUF pointer if segment corresponds to separate nbuf
  75. * @frag_cnt: Fragment count in this segment
  76. * @total_len: Total length of segment
  77. * @frags: per-Fragment information
  78. * @next: pointer to next MSDU segment
  79. */
  80. struct dp_tx_seg_info_s {
  81. qdf_nbuf_t nbuf;
  82. uint16_t frag_cnt;
  83. uint16_t total_len;
  84. struct dp_tx_frag_info_s frags[DP_TX_MAX_NUM_FRAGS];
  85. struct dp_tx_seg_info_s *next;
  86. };
  87. /**
  88. * struct dp_tx_sg_info_s - Scatter Gather Descriptor
  89. * @num_segs: Number of segments (TSO/ME) in the frame
  90. * @total_len: Total length of the frame
  91. * @curr_seg: Points to current segment descriptor to be processed. Chain of
  92. * descriptors for SG frames/multicast-unicast converted packets.
  93. *
  94. * Used for SG (802.3 or Raw) frames and Multicast-Unicast converted frames to
  95. * carry fragmentation information
  96. * Raw Frames will be handed over to driver as an SKB chain with MPDU boundaries
  97. * indicated through flags in SKB CB (first_msdu and last_msdu). This will be
  98. * converted into set of skb sg (nr_frags) structures.
  99. */
  100. struct dp_tx_sg_info_s {
  101. uint32_t num_segs;
  102. uint32_t total_len;
  103. struct dp_tx_seg_info_s *curr_seg;
  104. };
  105. /**
  106. * struct dp_tx_queue - Tx queue
  107. * @desc_pool_id: Descriptor Pool to be used for the tx queue
  108. * @ring_id: TCL descriptor ring ID corresponding to the tx queue
  109. *
  110. * Tx queue contains information of the software (Descriptor pool)
  111. * and hardware resources (TCL ring id) to be used for a particular
  112. * transmit queue (obtained from skb_queue_mapping in case of linux)
  113. */
  114. struct dp_tx_queue {
  115. uint8_t desc_pool_id;
  116. uint8_t ring_id;
  117. };
  118. /**
  119. * struct dp_tx_msdu_info_s - MSDU Descriptor
  120. * @frm_type: Frame type - Regular/TSO/SG/Multicast enhancement
  121. * @tx_queue: Tx queue on which this MSDU should be transmitted
  122. * @num_seg: Number of segments (TSO)
  123. * @tid: TID (override) that is sent from HLOS
  124. * @u.tso_info: TSO information for TSO frame types
  125. * (chain of the TSO segments, number of segments)
  126. * @u.sg_info: Scatter Gather information for non-TSO SG frames
  127. * @meta_data: Mesh meta header information
  128. * @exception_fw: Duplicate frame to be sent to firmware
  129. * @ppdu_cookie: 16-bit ppdu_cookie that has to be replayed back in completions
  130. * @ix_tx_sniffer: Indicates if the packet has to be sniffed
  131. *
  132. * This structure holds the complete MSDU information needed to program the
  133. * Hardware TCL and MSDU extension descriptors for different frame types
  134. *
  135. */
  136. struct dp_tx_msdu_info_s {
  137. enum dp_tx_frm_type frm_type;
  138. struct dp_tx_queue tx_queue;
  139. uint32_t num_seg;
  140. uint8_t tid;
  141. uint8_t exception_fw;
  142. uint8_t is_tx_sniffer;
  143. uint8_t search_type;
  144. union {
  145. struct qdf_tso_info_t tso_info;
  146. struct dp_tx_sg_info_s sg_info;
  147. } u;
  148. uint32_t meta_data[DP_TX_MSDU_INFO_META_DATA_DWORDS];
  149. uint16_t ppdu_cookie;
  150. uint16_t ast_idx;
  151. uint16_t ast_hash;
  152. };
  153. /**
  154. * dp_tx_deinit_pair_by_index() - Deinit TX rings based on index
  155. * @soc: core txrx context
  156. * @index: index of ring to deinit
  157. *
  158. * Deinit 1 TCL and 1 WBM2SW release ring on as needed basis using
  159. * index of the respective TCL/WBM2SW release in soc structure.
  160. * For example, if the index is 2 then &soc->tcl_data_ring[2]
  161. * and &soc->tx_comp_ring[2] will be deinitialized.
  162. *
  163. * Return: none
  164. */
  165. void dp_tx_deinit_pair_by_index(struct dp_soc *soc, int index);
  166. QDF_STATUS dp_tx_vdev_attach(struct dp_vdev *vdev);
  167. QDF_STATUS dp_tx_vdev_detach(struct dp_vdev *vdev);
  168. void dp_tx_vdev_update_search_flags(struct dp_vdev *vdev);
  169. void dp_tx_tso_cmn_desc_pool_deinit(struct dp_soc *soc, uint8_t num_pool);
  170. void dp_tx_tso_cmn_desc_pool_free(struct dp_soc *soc, uint8_t num_pool);
  171. QDF_STATUS dp_tx_tso_cmn_desc_pool_alloc(struct dp_soc *soc,
  172. uint8_t num_pool,
  173. uint16_t num_desc);
  174. QDF_STATUS dp_tx_tso_cmn_desc_pool_init(struct dp_soc *soc,
  175. uint8_t num_pool,
  176. uint16_t num_desc);
  177. void dp_tx_tso_cmn_desc_pool_deinit(struct dp_soc *soc, uint8_t num_pool);
  178. void dp_tx_tso_cmn_desc_pool_free(struct dp_soc *soc, uint8_t num_pool);
  179. void dp_soc_tx_desc_sw_pools_free(struct dp_soc *soc);
  180. void dp_soc_tx_desc_sw_pools_deinit(struct dp_soc *soc);
  181. QDF_STATUS dp_tx_tso_cmn_desc_pool_alloc(struct dp_soc *soc,
  182. uint8_t num_pool,
  183. uint16_t num_desc);
  184. QDF_STATUS dp_tx_tso_cmn_desc_pool_init(struct dp_soc *soc,
  185. uint8_t num_pool,
  186. uint16_t num_desc);
  187. QDF_STATUS dp_soc_tx_desc_sw_pools_alloc(struct dp_soc *soc);
  188. QDF_STATUS dp_soc_tx_desc_sw_pools_init(struct dp_soc *soc);
  189. /**
  190. * dp_tso_attach() - TSO Attach handler
  191. * @txrx_soc: Opaque Dp handle
  192. *
  193. * Reserve TSO descriptor buffers
  194. *
  195. * Return: QDF_STATUS_E_FAILURE on failure or
  196. * QDF_STATUS_SUCCESS on success
  197. */
  198. QDF_STATUS dp_tso_soc_attach(struct cdp_soc_t *txrx_soc);
  199. /**
  200. * dp_tso_detach() - TSO Detach handler
  201. * @txrx_soc: Opaque Dp handle
  202. *
  203. * Deallocate TSO descriptor buffers
  204. *
  205. * Return: QDF_STATUS_E_FAILURE on failure or
  206. * QDF_STATUS_SUCCESS on success
  207. */
  208. QDF_STATUS dp_tso_soc_detach(struct cdp_soc_t *txrx_soc);
  209. QDF_STATUS dp_tx_pdev_init(struct dp_pdev *pdev);
  210. qdf_nbuf_t dp_tx_send(struct cdp_soc_t *soc, uint8_t vdev_id, qdf_nbuf_t nbuf);
  211. qdf_nbuf_t dp_tx_send_vdev_id_check(struct cdp_soc_t *soc, uint8_t vdev_id,
  212. qdf_nbuf_t nbuf);
  213. qdf_nbuf_t dp_tx_send_exception(struct cdp_soc_t *soc, uint8_t vdev_id,
  214. qdf_nbuf_t nbuf,
  215. struct cdp_tx_exception_metadata *tx_exc);
  216. qdf_nbuf_t dp_tx_send_exception_vdev_id_check(struct cdp_soc_t *soc,
  217. uint8_t vdev_id,
  218. qdf_nbuf_t nbuf,
  219. struct cdp_tx_exception_metadata *tx_exc);
  220. qdf_nbuf_t dp_tx_send_mesh(struct cdp_soc_t *soc, uint8_t vdev_id,
  221. qdf_nbuf_t nbuf);
  222. qdf_nbuf_t
  223. dp_tx_send_msdu_single(struct dp_vdev *vdev, qdf_nbuf_t nbuf,
  224. struct dp_tx_msdu_info_s *msdu_info, uint16_t peer_id,
  225. struct cdp_tx_exception_metadata *tx_exc_metadata);
  226. #if QDF_LOCK_STATS
  227. noinline qdf_nbuf_t
  228. dp_tx_send_msdu_multiple(struct dp_vdev *vdev, qdf_nbuf_t nbuf,
  229. struct dp_tx_msdu_info_s *msdu_info);
  230. #else
  231. qdf_nbuf_t dp_tx_send_msdu_multiple(struct dp_vdev *vdev, qdf_nbuf_t nbuf,
  232. struct dp_tx_msdu_info_s *msdu_info);
  233. #endif
  234. #ifdef FEATURE_WLAN_TDLS
  235. /**
  236. * dp_tx_non_std() - Allow the control-path SW to send data frames
  237. * @soc_hdl: Datapath soc handle
  238. * @vdev_id: id of vdev
  239. * @tx_spec: what non-standard handling to apply to the tx data frames
  240. * @msdu_list: NULL-terminated list of tx MSDUs
  241. *
  242. * Return: NULL on success,
  243. * nbuf when it fails to send
  244. */
  245. qdf_nbuf_t dp_tx_non_std(struct cdp_soc_t *soc_hdl, uint8_t vdev_id,
  246. enum ol_tx_spec tx_spec, qdf_nbuf_t msdu_list);
  247. #endif
  248. int dp_tx_frame_is_drop(struct dp_vdev *vdev, uint8_t *srcmac, uint8_t *dstmac);
  249. /**
  250. * dp_tx_comp_handler() - Tx completion handler
  251. * @int_ctx: pointer to DP interrupt context
  252. * @soc: core txrx main context
  253. * @hal_srng: Opaque HAL SRNG pointer
  254. * @ring_id: completion ring id
  255. * @quota: No. of packets/descriptors that can be serviced in one loop
  256. *
  257. * This function will collect hardware release ring element contents and
  258. * handle descriptor contents. Based on contents, free packet or handle error
  259. * conditions
  260. *
  261. * Return: Number of TX completions processed
  262. */
  263. uint32_t dp_tx_comp_handler(struct dp_intr *int_ctx, struct dp_soc *soc,
  264. hal_ring_handle_t hal_srng, uint8_t ring_id,
  265. uint32_t quota);
  266. QDF_STATUS
  267. dp_tx_prepare_send_me(struct dp_vdev *vdev, qdf_nbuf_t nbuf);
  268. QDF_STATUS
  269. dp_tx_prepare_send_igmp_me(struct dp_vdev *vdev, qdf_nbuf_t nbuf);
  270. #ifndef FEATURE_WDS
  271. static inline void dp_tx_mec_handler(struct dp_vdev *vdev, uint8_t *status)
  272. {
  273. return;
  274. }
  275. #endif
  276. #ifndef ATH_SUPPORT_IQUE
  277. static inline void dp_tx_me_exit(struct dp_pdev *pdev)
  278. {
  279. return;
  280. }
  281. #endif
  282. #ifndef QCA_MULTIPASS_SUPPORT
  283. static inline
  284. bool dp_tx_multipass_process(struct dp_soc *soc, struct dp_vdev *vdev,
  285. qdf_nbuf_t nbuf,
  286. struct dp_tx_msdu_info_s *msdu_info)
  287. {
  288. return true;
  289. }
  290. static inline
  291. void dp_tx_vdev_multipass_deinit(struct dp_vdev *vdev)
  292. {
  293. }
  294. #else
  295. bool dp_tx_multipass_process(struct dp_soc *soc, struct dp_vdev *vdev,
  296. qdf_nbuf_t nbuf,
  297. struct dp_tx_msdu_info_s *msdu_info);
  298. void dp_tx_vdev_multipass_deinit(struct dp_vdev *vdev);
  299. #endif
  300. /**
  301. * dp_tx_get_queue() - Returns Tx queue IDs to be used for this Tx frame
  302. * @vdev: DP Virtual device handle
  303. * @nbuf: Buffer pointer
  304. * @queue: queue ids container for nbuf
  305. *
  306. * TX packet queue has 2 instances, software descriptors id and dma ring id
  307. * Based on tx feature and hardware configuration queue id combination could be
  308. * different.
  309. * For example -
  310. * With XPS enabled,all TX descriptor pools and dma ring are assigned per cpu id
  311. * With no XPS,lock based resource protection, Descriptor pool ids are different
  312. * for each vdev, dma ring id will be same as single pdev id
  313. *
  314. * Return: None
  315. */
  316. #ifdef QCA_OL_TX_MULTIQ_SUPPORT
  317. static inline void dp_tx_get_queue(struct dp_vdev *vdev,
  318. qdf_nbuf_t nbuf, struct dp_tx_queue *queue)
  319. {
  320. uint16_t queue_offset = qdf_nbuf_get_queue_mapping(nbuf) &
  321. DP_TX_QUEUE_MASK;
  322. queue->desc_pool_id = queue_offset;
  323. queue->ring_id = qdf_get_cpu();
  324. QDF_TRACE(QDF_MODULE_ID_DP, QDF_TRACE_LEVEL_DEBUG,
  325. "%s, pool_id:%d ring_id: %d",
  326. __func__, queue->desc_pool_id, queue->ring_id);
  327. }
  328. /*
  329. * dp_tx_get_hal_ring_hdl()- Get the hal_tx_ring_hdl for data transmission
  330. * @dp_soc - DP soc structure pointer
  331. * @ring_id - Transmit Queue/ring_id to be used when XPS is enabled
  332. *
  333. * Return - HAL ring handle
  334. */
  335. static inline hal_ring_handle_t dp_tx_get_hal_ring_hdl(struct dp_soc *soc,
  336. uint8_t ring_id)
  337. {
  338. if (ring_id == soc->num_tcl_data_rings)
  339. return soc->tcl_cmd_credit_ring.hal_srng;
  340. return soc->tcl_data_ring[ring_id].hal_srng;
  341. }
  342. /*
  343. * dp_tx_get_rbm_id()- Get the RBM ID for data transmission completion.
  344. * @dp_soc - DP soc structure pointer
  345. * @ring_id - Transmit Queue/ring_id to be used when XPS is enabled
  346. *
  347. * Return - HAL ring handle
  348. */
  349. static inline uint8_t dp_tx_get_rbm_id(struct dp_soc *doc,
  350. uint8_t ring_id)
  351. {
  352. return (ring_id ? HAL_WBM_SW0_BM_ID + (ring_id - 1) :
  353. HAL_WBM_SW2_BM_ID);
  354. }
  355. #else /* QCA_OL_TX_MULTIQ_SUPPORT */
  356. static inline void dp_tx_get_queue(struct dp_vdev *vdev,
  357. qdf_nbuf_t nbuf, struct dp_tx_queue *queue)
  358. {
  359. /* get flow id */
  360. queue->desc_pool_id = DP_TX_GET_DESC_POOL_ID(vdev);
  361. queue->ring_id = DP_TX_GET_RING_ID(vdev);
  362. QDF_TRACE(QDF_MODULE_ID_DP, QDF_TRACE_LEVEL_DEBUG,
  363. "%s, pool_id:%d ring_id: %d",
  364. __func__, queue->desc_pool_id, queue->ring_id);
  365. }
  366. static inline hal_ring_handle_t dp_tx_get_hal_ring_hdl(struct dp_soc *soc,
  367. uint8_t ring_id)
  368. {
  369. return soc->tcl_data_ring[ring_id].hal_srng;
  370. }
  371. static inline uint8_t dp_tx_get_rbm_id(struct dp_soc *soc,
  372. uint8_t ring_id)
  373. {
  374. return (ring_id + HAL_WBM_SW0_BM_ID);
  375. }
  376. #endif
  377. #ifdef QCA_OL_TX_LOCK_LESS_ACCESS
  378. /*
  379. * dp_tx_hal_ring_access_start()- hal_tx_ring access for data transmission
  380. * @dp_soc - DP soc structure pointer
  381. * @hal_ring_hdl - HAL ring handle
  382. *
  383. * Return - None
  384. */
  385. static inline int dp_tx_hal_ring_access_start(struct dp_soc *soc,
  386. hal_ring_handle_t hal_ring_hdl)
  387. {
  388. return hal_srng_access_start_unlocked(soc->hal_soc, hal_ring_hdl);
  389. }
  390. /*
  391. * dp_tx_hal_ring_access_end()- hal_tx_ring access for data transmission
  392. * @dp_soc - DP soc structure pointer
  393. * @hal_ring_hdl - HAL ring handle
  394. *
  395. * Return - None
  396. */
  397. static inline void dp_tx_hal_ring_access_end(struct dp_soc *soc,
  398. hal_ring_handle_t hal_ring_hdl)
  399. {
  400. hal_srng_access_end_unlocked(soc->hal_soc, hal_ring_hdl);
  401. }
  402. /*
  403. * dp_tx_hal_ring_access_reap()- hal_tx_ring access for data transmission
  404. * @dp_soc - DP soc structure pointer
  405. * @hal_ring_hdl - HAL ring handle
  406. *
  407. * Return - None
  408. */
  409. static inline void dp_tx_hal_ring_access_end_reap(struct dp_soc *soc,
  410. hal_ring_handle_t
  411. hal_ring_hdl)
  412. {
  413. }
  414. #else
  415. static inline int dp_tx_hal_ring_access_start(struct dp_soc *soc,
  416. hal_ring_handle_t hal_ring_hdl)
  417. {
  418. return hal_srng_access_start(soc->hal_soc, hal_ring_hdl);
  419. }
  420. static inline void dp_tx_hal_ring_access_end(struct dp_soc *soc,
  421. hal_ring_handle_t hal_ring_hdl)
  422. {
  423. hal_srng_access_end(soc->hal_soc, hal_ring_hdl);
  424. }
  425. static inline void dp_tx_hal_ring_access_end_reap(struct dp_soc *soc,
  426. hal_ring_handle_t
  427. hal_ring_hdl)
  428. {
  429. hal_srng_access_end_reap(soc->hal_soc, hal_ring_hdl);
  430. }
  431. #endif
  432. #ifdef FEATURE_PERPKT_INFO
  433. QDF_STATUS
  434. dp_get_completion_indication_for_stack(struct dp_soc *soc,
  435. struct dp_pdev *pdev,
  436. struct dp_peer *peer,
  437. struct hal_tx_completion_status *ts,
  438. qdf_nbuf_t netbuf,
  439. uint64_t time_latency);
  440. void dp_send_completion_to_stack(struct dp_soc *soc, struct dp_pdev *pdev,
  441. uint16_t peer_id, uint32_t ppdu_id,
  442. qdf_nbuf_t netbuf);
  443. #endif
  444. void dp_iterate_update_peer_list(struct cdp_pdev *pdev_hdl);
  445. #ifdef ATH_TX_PRI_OVERRIDE
  446. #define DP_TX_TID_OVERRIDE(_msdu_info, _nbuf) \
  447. ((_msdu_info)->tid = qdf_nbuf_get_priority(_nbuf))
  448. #else
  449. #define DP_TX_TID_OVERRIDE(_msdu_info, _nbuf)
  450. #endif
  451. void
  452. dp_handle_wbm_internal_error(struct dp_soc *soc, void *hal_desc,
  453. uint32_t buf_type);
  454. /* TODO TX_FEATURE_NOT_YET */
  455. static inline void dp_tx_comp_process_exception(struct dp_tx_desc_s *tx_desc)
  456. {
  457. return;
  458. }
  459. /* TODO TX_FEATURE_NOT_YET */
  460. #ifndef WLAN_TX_PKT_CAPTURE_ENH
  461. static inline
  462. QDF_STATUS dp_peer_set_tx_capture_enabled(struct dp_pdev *pdev,
  463. struct dp_peer *peer_handle,
  464. uint8_t value, uint8_t *peer_mac)
  465. {
  466. return QDF_STATUS_SUCCESS;
  467. }
  468. #endif
  469. void dp_tx_desc_flush(struct dp_pdev *pdev, struct dp_vdev *vdev,
  470. bool force_free);
  471. #endif