From 75e691425fd906e360eb3632334f40bb0965c76a Mon Sep 17 00:00:00 2001 From: Yeshwanth Sriram Guntuka Date: Fri, 30 Apr 2021 14:54:03 +0530 Subject: [PATCH] qcacmn: Allocate memory for fisa pkt history separately Fisa packet history is around 6KB for each sw fisa flow entry and this is part of the dp_fisa_rx_sw_ft structure. The total size of the SW FT as a result is around 830KB and the higher order memory allocation via kzalloc for this could fail in low/fragmented memory scenarios. Fix is to allocate memory for FISA pkt history separately and attach it to the SW FT entry. Change-Id: I7296d7269c1b86ec38ea1668e8a0893335bbdb6f CRs-Fixed: 2936353 --- dp/wifi3.0/dp_types.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dp/wifi3.0/dp_types.h b/dp/wifi3.0/dp_types.h index f6d9e15218a1..93a00543509f 100644 --- a/dp/wifi3.0/dp_types.h +++ b/dp/wifi3.0/dp_types.h @@ -3042,7 +3042,7 @@ struct dp_fisa_rx_sw_ft { qdf_time_t flow_init_ts; qdf_time_t last_accessed_ts; #ifdef WLAN_SUPPORT_RX_FISA_HIST - struct fisa_pkt_hist pkt_hist; + struct fisa_pkt_hist *pkt_hist; #endif };