qcacmn: Set fast_recycled flag in fast xmit path

Set fast_recycled flag for packets in fast xmit path

Change-Id: I6388beb5d187d000c300898d1d1480e6654836eb
CRs-Fixed: 3306873
This commit is contained in:
Neha Bisht
2022-10-06 16:41:31 +05:30
committed by Madan Koyyalamudi
parent 8ed6f1a778
commit bd144caad7
2 changed files with 11 additions and 1 deletions

View File

@@ -1349,6 +1349,7 @@ void dp_tx_nbuf_unmap_be(struct dp_soc *soc,
* Return: NULL on success, * Return: NULL on success,
* nbuf when it fails to send * nbuf when it fails to send
*/ */
#ifdef QCA_DP_TX_NBUF_LIST_FREE
qdf_nbuf_t dp_tx_fast_send_be(struct cdp_soc_t *soc_hdl, uint8_t vdev_id, qdf_nbuf_t dp_tx_fast_send_be(struct cdp_soc_t *soc_hdl, uint8_t vdev_id,
qdf_nbuf_t nbuf) qdf_nbuf_t nbuf)
{ {
@@ -1404,6 +1405,7 @@ qdf_nbuf_t dp_tx_fast_send_be(struct cdp_soc_t *soc_hdl, uint8_t vdev_id,
tx_desc->pkt_offset = 0; tx_desc->pkt_offset = 0;
tx_desc->length = pkt_len; tx_desc->length = pkt_len;
tx_desc->flags |= DP_TX_DESC_FLAG_SIMPLE; tx_desc->flags |= DP_TX_DESC_FLAG_SIMPLE;
tx_desc->nbuf->fast_recycled = 1;
paddr = dp_tx_nbuf_map_be(vdev, tx_desc, nbuf); paddr = dp_tx_nbuf_map_be(vdev, tx_desc, nbuf);
if (!paddr) { if (!paddr) {
@@ -1483,3 +1485,4 @@ release_desc:
return nbuf; return nbuf;
} }
#endif

View File

@@ -70,6 +70,7 @@ QDF_STATUS dp_tx_hw_enqueue_be(struct dp_soc *soc, struct dp_vdev *vdev,
struct cdp_tx_exception_metadata *metadata, struct cdp_tx_exception_metadata *metadata,
struct dp_tx_msdu_info_s *msdu_info); struct dp_tx_msdu_info_s *msdu_info);
#ifdef QCA_DP_TX_NBUF_LIST_FREE
/** /**
* dp_tx_hw_enqueue_be() - This is a fast send API to directly enqueue to HW * dp_tx_hw_enqueue_be() - This is a fast send API to directly enqueue to HW
* @soc: DP Soc Handle * @soc: DP Soc Handle
@@ -82,9 +83,15 @@ QDF_STATUS dp_tx_hw_enqueue_be(struct dp_soc *soc, struct dp_vdev *vdev,
* Return: NULL for success * Return: NULL for success
* nbuf for failure * nbuf for failure
*/ */
qdf_nbuf_t dp_tx_fast_send_be(struct cdp_soc_t *soc, uint8_t vdev_id, qdf_nbuf_t dp_tx_fast_send_be(struct cdp_soc_t *soc, uint8_t vdev_id,
qdf_nbuf_t nbuf); qdf_nbuf_t nbuf);
#else
static inline qdf_nbuf_t dp_tx_fast_send_be(struct cdp_soc_t *soc, uint8_t vdev_id,
qdf_nbuf_t nbuf)
{
return NULL;
}
#endif
/** /**
* dp_tx_comp_get_params_from_hal_desc_be() - Get TX desc from HAL comp desc * dp_tx_comp_get_params_from_hal_desc_be() - Get TX desc from HAL comp desc