qcacmn: Delay allocation of rings for monitor mode

In existing implementation, for monitor mode below allocation
are done at pdev attach and init time.

	a. 64 monitor buffer allocation for RxDMA monitor buffer ring
	b. Link descriptor memory allocation for monitor link descriptor ring

This memory is waste of memory for customers not using monitor mode and
low memory profile.

To optimize this memory, allocate all buffers and link descriptor memory
at monitor vdev creation time.

Change-Id: I873c76d2f625a782532a101037915b0353928a5b
CRs-Fixed: 2829402
This commit is contained in:
Amir Patel
2020-12-24 14:34:34 +05:30
committad av snandini
förälder d36905a34a
incheckning 76b9febd3d
7 ändrade filer med 189 tillägg och 30 borttagningar

Visa fil

@@ -1091,6 +1091,9 @@
CFG_INI_BOOL("wow_check_rx_pending_enable", \
false, \
"enable rx frame pending check in WoW mode")
#define CFG_DP_DELAY_MON_REPLENISH \
CFG_INI_BOOL("delay_mon_replenish", \
true, "Delay Monitor Replenish")
/*
* <ini>
@@ -1203,5 +1206,6 @@
CFG(CFG_DP_RX_RADIO_1_DEFAULT_REO) \
CFG(CFG_DP_RX_RADIO_2_DEFAULT_REO) \
CFG(CFG_DP_WOW_CHECK_RX_PENDING) \
CFG(CFG_FORCE_RX_64_BA)
CFG(CFG_FORCE_RX_64_BA) \
CFG(CFG_DP_DELAY_MON_REPLENISH)
#endif /* _CFG_DP_H_ */