Ver código fonte

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
Rakesh Pillai 5 anos atrás
pai
commit
f2e0f22bf7
1 arquivos alterados com 1 adições e 1 exclusões
  1. 1 1
      dp/wifi3.0/dp_rx.c

+ 1 - 1
dp/wifi3.0/dp_rx.c

@@ -1709,7 +1709,7 @@ bool dp_is_special_data(qdf_nbuf_t nbuf)
  *
  *
  * Return: None
  * Return: None
  */
  */
-static inline
+static
 void dp_rx_deliver_to_stack_no_peer(struct dp_soc *soc, qdf_nbuf_t nbuf)
 void dp_rx_deliver_to_stack_no_peer(struct dp_soc *soc, qdf_nbuf_t nbuf)
 {
 {
 	uint16_t peer_id;
 	uint16_t peer_id;