qcacmn: Add support to configure rbm id through ini

For legacy tx monitor, we need msdu completion in sequence.
Modifying the return buffer manager id during enqueue will serialize
the msdu completion.

Return buffer manager will be over ride only when tx_monitor
is turned enabled.

Change-Id: I500065077b59b3ea3561ec8fc49af8cbe58c1dfe
CRs-Fixed: 3539636
This commit is contained in:
nobelj
2023-06-23 17:28:51 -07:00
committed by Rahul Choudhary
parent 0ef7402a2b
commit 6f8e9cffb0
5 changed files with 104 additions and 0 deletions

View File

@@ -848,12 +848,26 @@ static inline void dp_tx_get_queue(struct dp_vdev *vdev,
}
#endif
#else
#ifdef WLAN_TX_PKT_CAPTURE_ENH
static inline void dp_tx_get_queue(struct dp_vdev *vdev,
qdf_nbuf_t nbuf, struct dp_tx_queue *queue)
{
if (qdf_unlikely(vdev->is_override_rbm_id))
queue->ring_id = vdev->rbm_id;
else
queue->ring_id = qdf_get_cpu();
queue->desc_pool_id = queue->ring_id;
}
#else
static inline void dp_tx_get_queue(struct dp_vdev *vdev,
qdf_nbuf_t nbuf, struct dp_tx_queue *queue)
{
queue->ring_id = qdf_get_cpu();
queue->desc_pool_id = queue->ring_id;
}
#endif
#endif
/**