From d5c98a330e5b1aae87e96a4e3f66f6fa6e841acb Mon Sep 17 00:00:00 2001 From: Sean Khan Date: Sun, 14 Jul 2024 19:39:14 -0400 Subject: [PATCH] qualcommax: add notes about SKB_RECYCLER_PREALLOC and SKB_FIXED_SIZE_2K Signed-off-by: Sean Khan --- config/Config-ipq.in | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/config/Config-ipq.in b/config/Config-ipq.in index 71255055da..7b36443b1c 100644 --- a/config/Config-ipq.in +++ b/config/Config-ipq.in @@ -61,9 +61,18 @@ config KERNEL_SKB_RECYCLER_MULTI_CPU default y config KERNEL_SKB_RECYCLER_PREALLOC - bool "Enable preallocation of SKBs" + bool "Enable preallocation of SKBs (For SFE not NSS)" depends on KERNEL_SKB_RECYCLER default n + help + NOTE: This is primarily for platforms utilizing SFE (Shortcut Forwarding Engine) + and not NSS (Network Subsystem) offload. + + NSS offload platforms mostly utilize the SKB recycling feature when managing memory. + Mostly when to "reclaim" it. + + This option enables preallocation of SKBs. + The default is '16384' which means 16384 x 4096 (Size of SKB) = 64MB. config KERNEL_SKB_RECYCLE_MAX_PREALLOC_SKBS int "Number of SKBs to be preallocated" @@ -75,7 +84,7 @@ config KERNEL_SKB_FIXED_SIZE_2K default n default y if KERNEL_IPQ_MEM_PROFILE < 512 help - SKB size fixed at 2K. + SKB size fixed at 2K. Primarily for platforms with less than 512MB memory. config KERNEL_ALLOC_SKB_PAGE_FRAG_DISABLE depends on KERNEL_SKB_RECYCLER