dp_tx.h 16 KB

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