qcacld-3.0: Allow drop pkts when pending is large

On some cases, dp_rx_thread can not handle nbufs in time,
then a large number of packets are pending in
rx_thread->nbuf_queue, which run out of system memory at
last and failed to malloc new buffers for refill buffer ring,
fw crash is encountered. To avoid this, drop RX packets when
the pending number becomes large.

Change-Id: Ie4e001dc584821cf68253aa3a15a5fd72394c736
CRs-Fixed: 2737181
This commit is contained in:
Yu Tian 2020-07-22 11:17:06 +08:00 • committed by snandini
commit 636f42c23a
4 changed files with 97 additions and 3 deletions

View file

@ -1014,6 +1014,7 @@ ifeq ($(CONFIG_LITHIUM), y)
CONFIG_WLAN_RECORD_RX_PADDR := y
CONFIG_HIF_CPU_PERF_AFFINE_MASK := y
CONFIG_WLAN_FEATURE_DP_RX_RING_HISTORY := y
CONFIG_ALLOW_PKT_DROPPING := y
endif
CONFIG_DYNAMIC_RX_AGGREGATION := y
CONFIG_RX_DESC_DEBUG_CHECK:= y