qcacmn: Fix Tx queue selection when IPA is enable

When IPA is enable and TX DATA ring mask is not set for
TX ring given to IPA, Host should not select the TX queue
which is given to IPA, hence override the TX queue to 0 if
TX queue id is same as IPA TX data ring.

Change-Id: Ia7fe49ef50deee869c84de9e741362cb31d60bf0
CRs-Fixed: 3419264
这个提交包含在:
Devender Kumar
2023-03-08 11:14:23 +05:30
提交者 Madan Koyyalamudi
父节点 ca2123d842
当前提交 d67fc1fc09

查看文件

@@ -36,6 +36,7 @@
#include "dp_sawf.h"
#endif
#include <qdf_pkt_add_timestamp.h>
#include "dp_ipa.h"
#define DP_INVALID_VDEV_ID 0xFF
@@ -821,12 +822,25 @@ static inline enum qdf_dp_tx_rx_status dp_tx_hw_to_qdf(uint16_t status)
* Return: None
*/
#ifdef QCA_OL_TX_MULTIQ_SUPPORT
#if defined(IPA_OFFLOAD) && defined(QCA_IPA_LL_TX_FLOW_CONTROL)
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();
if (vdev->pdev->soc->wlan_cfg_ctx->ipa_enabled)
if (queue->ring_id == IPA_TCL_DATA_RING_IDX)
queue->ring_id = 0;
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
/**
* dp_tx_get_hal_ring_hdl() - Get the hal_tx_ring_hdl for data transmission