From b1a2f9fbadc465d0b48776fe5c6b6e6183d6bccd Mon Sep 17 00:00:00 2001 From: Tallapragada Kalyan Date: Thu, 2 Jul 2020 21:55:28 +0530 Subject: [PATCH] qcacmn: remove additional reap logic for SG buffers remove additional reap logic for SG buffers, as we are also maintaining a state for SG buffers in dp_soc structure CRs-Fixed: 2722245 Change-Id: Ibec3007036e78a2ec1c5055244b6518f889e16a4 --- dp/wifi3.0/dp_rx_err.c | 24 ++---------------------- 1 file changed, 2 insertions(+), 22 deletions(-) diff --git a/dp/wifi3.0/dp_rx_err.c b/dp/wifi3.0/dp_rx_err.c index 82227aca92f5..c31eff840a71 100644 --- a/dp/wifi3.0/dp_rx_err.c +++ b/dp/wifi3.0/dp_rx_err.c @@ -1683,28 +1683,8 @@ dp_rx_wbm_err_process(struct dp_intr *int_ctx, struct dp_soc *soc, while (qdf_likely(quota)) { ring_desc = hal_srng_dst_get_next(hal_soc, hal_ring_hdl); - - if (qdf_unlikely(!ring_desc)) { - /* Check hw hp in case of SG support */ - if (qdf_unlikely(soc->wbm_release_desc_rx_sg_support)) { - /* - * Update the cached hp from hw hp - * This is required for partially created - * SG packets while quote is still left - */ - hal_srng_sync_cachedhp(hal_soc, hal_ring_hdl); - ring_desc = hal_srng_dst_get_next(hal_soc, hal_ring_hdl); - if (!ring_desc) { - QDF_TRACE(QDF_MODULE_ID_DP, QDF_TRACE_LEVEL_ERROR, - FL("No Rx Hw Desc for intermediate sg -- %pK"), - hal_ring_hdl); - break; - } - } else { - /* Come out of the loop in Non SG support cases */ - break; - } - } + if (qdf_unlikely(!ring_desc)) + break; /* XXX */ buf_type = HAL_RX_WBM_BUF_TYPE_GET(ring_desc);