From f2e0f22bf702b30f981cc64b29e8722231e1ed46 Mon Sep 17 00:00:00 2001 From: Rakesh Pillai Date: Mon, 2 Mar 2020 14:09:18 +0530 Subject: [PATCH] qcacmn: Fix stack frame overflow for dp_rx_process dp_rx_process stack frame has grown to exceed the stack frame size of 4096. dp_rx_deliver_to_stack_no_peer is a big function which should not be inline. Calling it in other function increases the stack size consumed by the caller function a lot. Since dp_rx_deliver_to_stack_no_peer is not called very frequently from dp_rx_process, changing its type to non-inline function does not hit the core rx datapath much. Hence change dp_rx_deliver_to_stack_no_peer to a non-inline function. Change-Id: Ib042f74c1f5a9cbe5fd947a24f004bb2fecf1fb1 CRs-Fixed: 2636365 --- dp/wifi3.0/dp_rx.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dp/wifi3.0/dp_rx.c b/dp/wifi3.0/dp_rx.c index c1f0bcbe32..8014efddda 100644 --- a/dp/wifi3.0/dp_rx.c +++ b/dp/wifi3.0/dp_rx.c @@ -1709,7 +1709,7 @@ bool dp_is_special_data(qdf_nbuf_t nbuf) * * Return: None */ -static inline +static void dp_rx_deliver_to_stack_no_peer(struct dp_soc *soc, qdf_nbuf_t nbuf) { uint16_t peer_id;