qualcommax: skbuff_recycle: allow specifiying max size

Signed-off-by: Sean Khan <datapronix@protonmail.com>
This commit is contained in:
Sean Khan 2024-07-09 02:01:55 -04:00
parent aa89d5e95f
commit a5c7dc2f73
2 changed files with 5 additions and 2 deletions

View File

@ -639,7 +639,7 @@ void skb_recycler_print_all_lists(void)
preempt_enable();
}
#ifdef SKB_FAST_RECYCLABLE_DEBUG_ENABLE
#ifdef CONFIG_SKB_FAST_RECYCLABLE_DEBUG_ENABLE
/**
* consume_skb_can_fast_recycle_debug - Debug API to flag any sanity check
* failures on a fast recycled skb

View File

@ -43,7 +43,10 @@
#include <linux/prefetch.h>
#include <linux/if.h>
#define SKB_RECYCLE_SIZE 2304
#ifndef CONFIG_SKB_RECYCLE_SIZE
#define CONFIG_SKB_RECYCLE_SIZE 2304
#endif
#define SKB_RECYCLE_SIZE CONFIG_SKB_RECYCLE_SIZE
#define SKB_RECYCLE_MIN_SIZE SKB_RECYCLE_SIZE
#define SKB_RECYCLE_MAX_SIZE SKB_RECYCLE_SIZE
#define SKB_RECYCLE_MAX_SKBS 1024