From: Jason Xing The previous value 16 is a bit conservative, so adjust it along with NAPI_SKB_CACHE_SIZE, which can minimize triggering memory allocation in napi_skb_cache_get*(). Suggested-by: Eric Dumazet Signed-off-by: Jason Xing --- net/core/skbuff.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/net/core/skbuff.c b/net/core/skbuff.c index e4abf0e56776..b6fe7ab85c4a 100644 --- a/net/core/skbuff.c +++ b/net/core/skbuff.c @@ -224,7 +224,7 @@ static void skb_under_panic(struct sk_buff *skb, unsigned int sz, void *addr) } #define NAPI_SKB_CACHE_SIZE 128 -#define NAPI_SKB_CACHE_BULK 16 +#define NAPI_SKB_CACHE_BULK 32 #define NAPI_SKB_CACHE_HALF (NAPI_SKB_CACHE_SIZE / 2) struct napi_alloc_cache { -- 2.41.3