Browse Source

core: Limit the number of pages printed in print_pfn event

This function was otherwise exceeding the stack size limit as
notified during compile time-

ld.lld: warning: stack frame size (2112) exceeds limit (2048) in
function 'rmnet_descriptor_trace_pfn'

CRs-Fixed: 3221860
Change-Id: I162101b70a4a3d8bfa28fd73ca65a17e3bb6f0ca
Signed-off-by: Subash Abhinov Kasiviswanathan <[email protected]>
Subash Abhinov Kasiviswanathan 3 years ago
parent
commit
c7cf3b260b
1 changed files with 1 additions and 1 deletions
  1. 1 1
      core/rmnet_descriptor.c

+ 1 - 1
core/rmnet_descriptor.c

@@ -797,7 +797,7 @@ static void rmnet_frag_partial_csum(struct sk_buff *skb,
 	skb->csum_start = (u8 *)iph + frag_desc->ip_len - skb->head;
 }
 
-#define PFN_ENTRY_MAX (256)
+#define PFN_ENTRY_MAX (128)
 #define PFNI (count++ % PFN_ENTRY_MAX)
 static void rmnet_descriptor_trace_pfn(struct sk_buff *skb)
 {