فهرست منبع

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
Tallapragada Kalyan 5 سال پیش
والد
کامیت
b1a2f9fbad
1فایلهای تغییر یافته به همراه2 افزوده شده و 22 حذف شده
  1. 2 22
      dp/wifi3.0/dp_rx_err.c

+ 2 - 22
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);