Browse Source

qcacld-3.0: Update prealloc size for srng from CFG

Update the prealloc size for RXDMA_BUF and REO_DST
rings using the ini values which have been configured.

Change-Id: Idc53bf8626017dd234767da65e131557f3a5600d
CRs-Fixed: 3283991
Rakesh Pillai 2 years ago
parent
commit
4419bf30e6
1 changed files with 8 additions and 0 deletions
  1. 8 0
      core/dp/txrx3.0/dp_txrx.c

+ 8 - 0
core/dp/txrx3.0/dp_txrx.c

@@ -681,6 +681,14 @@ dp_update_mem_size_by_ring_type(struct wlan_dp_prealloc_cfg *cfg,
 		*mem_size = (sizeof(struct reo_destination_ring)) *
 			    cfg->num_reo_exception_ring_entries;
 		return;
+	case REO_DST:
+		*mem_size = (sizeof(struct reo_destination_ring)) *
+			    cfg->num_reo_dst_ring_entries;
+		return;
+	case RXDMA_BUF:
+		*mem_size = (sizeof(struct wbm_buffer_ring)) *
+			    cfg->num_rxdma_buf_ring_entries;
+		return;
 	default:
 		return;
 	}