Skip to contentSkip to conversation

net: expand napi_skb_cache use

PATCH Applied Eric Dumazet 4 participants 20 messages Nov 16, 2025 – Nov 19, 2025

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

v3 cover net: expand napi_skb_cache use

This is a followup of commit e20dfbad8aab ("net: fix napi_consume_skb() with alien skbs").

Now the per-cpu napi_skb_cache is populated from TX completion path, we can make use of this cache, especially for cpus not used from a driver NAPI poll (primary user of napi_cache).

With this series, I consistently reach 130 Mpps on my UDP tx stress test and reduce SLUB spinlock contention to smaller values.

v3: Addressed Jason feedback on patch 2/3
v2: https://lore.kernel.org/netdev/[email protected]/

Eric Dumazet (3):
net: add a new @alloc parameter to napi_skb_cache_get()
net: __alloc_skb() cleanup
net: use napi_skb_cache even in process context

 net/core/skbuff.c | 48 ++++++++++++++++++++++++++++++-----------------
 1 file changed, 31 insertions(+), 17 deletions(-)
Signature · 1 line
2.52.0.rc1.455.g30608eb744-goog
#1 lore raw

PATCH v3 1/3 net: add a new @alloc parameter to napi_skb_cache_get()

We want to be able in the series last patch to get an skb from napi_skb_cache from process context, if there is one available.

---
 net/core/skbuff.c | 15 ++++++++-------
 1 file changed, 8 insertions(+), 7 deletions(-)
net/core/skbuff.c +8 -7
index f34372666e67cee5329d3ba1d3c86f8622facac3..88b5530f9c460d86e12c98e410774444367e0404 100644
@@ -280,17 +280,18 @@ EXPORT_SYMBOL(__netdev_alloc_frag_align);
  */
 static u32 skbuff_cache_size __read_mostly;
 
-static struct sk_buff *napi_skb_cache_get(void)
+static struct sk_buff *napi_skb_cache_get(bool alloc)
 {
 	struct napi_alloc_cache *nc = this_cpu_ptr(&napi_alloc_cache);
 	struct sk_buff *skb;
 
 	local_lock_nested_bh(&napi_alloc_cache.bh_lock);
 	if (unlikely(!nc->skb_count)) {
-		nc->skb_count = kmem_cache_alloc_bulk(net_hotdata.skbuff_cache,
-						      GFP_ATOMIC | __GFP_NOWARN,
-						      NAPI_SKB_CACHE_BULK,
-						      nc->skb_cache);
+		if (alloc)
+			nc->skb_count = kmem_cache_alloc_bulk(net_hotdata.skbuff_cache,
+						GFP_ATOMIC | __GFP_NOWARN,
+						NAPI_SKB_CACHE_BULK,
+						nc->skb_cache);
 		if (unlikely(!nc->skb_count)) {
 			local_unlock_nested_bh(&napi_alloc_cache.bh_lock);
 			return NULL;
@@ -530,7 +531,7 @@ static struct sk_buff *__napi_build_skb(void *data, unsigned int frag_size)
 {
 	struct sk_buff *skb;
 
-	skb = napi_skb_cache_get();
+	skb = napi_skb_cache_get(true);
 	if (unlikely(!skb))
 		return NULL;
 
@@ -659,7 +660,7 @@ struct sk_buff *__alloc_skb(unsigned int size, gfp_t gfp_mask,
 	/* Get the HEAD */
 	if ((flags & (SKB_ALLOC_FCLONE | SKB_ALLOC_NAPI)) == SKB_ALLOC_NAPI &&
 	    likely(node == NUMA_NO_NODE || node == numa_mem_id()))
-		skb = napi_skb_cache_get();
+		skb = napi_skb_cache_get(true);
 	else
 		skb = kmem_cache_alloc_node(cache, gfp_mask & ~GFP_DMA, node);
 	if (unlikely(!skb))
Signature · 1 line
2.52.0.rc1.455.g30608eb744-goog
#4 lore raw

PATCH v3 2/3 net: __alloc_skb() cleanup

In reply to Eric Dumazet

This patch refactors __alloc_skb() to prepare the following one, and does not change functionality.

---
 net/core/skbuff.c | 28 ++++++++++++++++++----------
 1 file changed, 18 insertions(+), 10 deletions(-)
net/core/skbuff.c +18 -10
index 88b5530f9c460d86e12c98e410774444367e0404..8a0a4ca7fa5dbb2fa3044ee45bb0b9c8c3ca85ea 100644
@@ -646,25 +646,33 @@ static void *kmalloc_reserve(unsigned int *size, gfp_t flags, int node,
 struct sk_buff *__alloc_skb(unsigned int size, gfp_t gfp_mask,
 			    int flags, int node)
 {
+	struct sk_buff *skb = NULL;
 	struct kmem_cache *cache;
-	struct sk_buff *skb;
 	bool pfmemalloc;
 	u8 *data;
 
-	cache = (flags & SKB_ALLOC_FCLONE)
-		? net_hotdata.skbuff_fclone_cache : net_hotdata.skbuff_cache;
-
 	if (sk_memalloc_socks() && (flags & SKB_ALLOC_RX))
 		gfp_mask |= __GFP_MEMALLOC;
 
-	/* Get the HEAD */
-	if ((flags & (SKB_ALLOC_FCLONE | SKB_ALLOC_NAPI)) == SKB_ALLOC_NAPI &&
-	    likely(node == NUMA_NO_NODE || node == numa_mem_id()))
+	if (flags & SKB_ALLOC_FCLONE) {
+		cache = net_hotdata.skbuff_fclone_cache;
+		goto fallback;
+	}
+	cache = net_hotdata.skbuff_cache;
+	if (unlikely(node != NUMA_NO_NODE && node != numa_mem_id()))
+		goto fallback;
+
+	if (flags & SKB_ALLOC_NAPI) {
 		skb = napi_skb_cache_get(true);
-	else
+		if (unlikely(!skb))
+			return NULL;
+	}
+	if (!skb) {
+fallback:
 		skb = kmem_cache_alloc_node(cache, gfp_mask & ~GFP_DMA, node);
-	if (unlikely(!skb))
-		return NULL;
+		if (unlikely(!skb))
+			return NULL;
+	}
 	prefetchw(skb);
 
 	/* We do our best to align skb_shared_info on a separate cache
Signature · 1 line
2.52.0.rc1.455.g30608eb744-goog
#7 lore raw

PATCH v3 3/3 net: use napi_skb_cache even in process context

In reply to Eric Dumazet

This is a followup of commit e20dfbad8aab ("net: fix napi_consume_skb() with alien skbs").

Now the per-cpu napi_skb_cache is populated from TX completion path, we can make use of this cache, especially for cpus not used from a driver NAPI poll (primary user of napi_cache).

We can use the napi_skb_cache only if current context is not from hard irq.

With this patch, I consistently reach 130 Mpps on my UDP tx stress test and reduce SLUB spinlock contention to smaller values.

Note there is still some SLUB contention for skb->head allocations.

I had to tune /sys/kernel/slab/skbuff_small_head/cpu_partial and /sys/kernel/slab/skbuff_small_head/min_partial depending on the platform taxonomy.

---
 net/core/skbuff.c | 5 +++++
 1 file changed, 5 insertions(+)
net/core/skbuff.c +5 -0
index 8a0a4ca7fa5dbb2fa3044ee45bb0b9c8c3ca85ea..9feea830a4dbb61c1c661e802ed315eaeebcc809 100644
@@ -666,7 +666,12 @@ struct sk_buff *__alloc_skb(unsigned int size, gfp_t gfp_mask,
 		skb = napi_skb_cache_get(true);
 		if (unlikely(!skb))
 			return NULL;
+	} else if (!in_hardirq() && !irqs_disabled()) {
+		local_bh_disable();
+		skb = napi_skb_cache_get(false);
+		local_bh_enable();
 	}
+
 	if (!skb) {
 fallback:
 		skb = kmem_cache_alloc_node(cache, gfp_mask & ~GFP_DMA, node);
Signature · 1 line
2.52.0.rc1.455.g30608eb744-goog
Reviewed-by on v3 3/3
#8 lore raw

Re: [PATCH v3 net-next 3/3] net: use napi_skb_cache even in process context

Quoted 13 lines · Eric Dumazet

This is a followup of commit e20dfbad8aab ("net: fix napi_consume_skb() with alien skbs").

Now the per-cpu napi_skb_cache is populated from TX completion path, we can make use of this cache, especially for cpus not used from a driver NAPI poll (primary user of napi_cache).

We can use the napi_skb_cache only if current context is not from hard irq.

With this patch, I consistently reach 130 Mpps on my UDP tx stress test and reduce SLUB spinlock contention to smaller values.

Quoted 7 lines

Note there is still some SLUB contention for skb->head allocations.

I had to tune /sys/kernel/slab/skbuff_small_head/cpu_partial and /sys/kernel/slab/skbuff_small_head/min_partial depending on the platform taxonomy.

Thanks for working on this. Previously I was thinking about this as well since it affects the hot path for xsk (please see __xsk_generic_xmit()->xsk_build_skb()->sock_alloc_send_pskb()). But I wasn't aware of the benefits between disabling irq and allocating memory. AFAIK, I once removed an enabling/disabling irq pair and saw a minor improvement as this commit[1] says. Would you share your invaluable experience with us in this case?

In the meantime, I will do more rounds of experiments to see how they perform.

[1]
commit 30ed05adca4a05c50594384cff18910858dd1d35

Author: Jason Xing <[email protected]>
Date:   Thu Oct 30 08:06:46 2025 +0800

xsk: use a smaller new lock for shared pool case

- Split cq_lock into two smaller locks: cq_prod_lock and cq_cached_prod_lock
- Avoid disabling/enabling interrupts in the hot xmit path

Thanks,
Jason

Tested-by
#9 lore raw

Re: [PATCH v3 net-next 3/3] net: use napi_skb_cache even in process context

Quoted 33 lines · Jason Xing
Quoted 13 lines · Eric Dumazet

This is a followup of commit e20dfbad8aab ("net: fix napi_consume_skb() with alien skbs").

Now the per-cpu napi_skb_cache is populated from TX completion path, we can make use of this cache, especially for cpus not used from a driver NAPI poll (primary user of napi_cache).

We can use the napi_skb_cache only if current context is not from hard irq.

With this patch, I consistently reach 130 Mpps on my UDP tx stress test and reduce SLUB spinlock contention to smaller values.

Quoted 7 lines

Note there is still some SLUB contention for skb->head allocations.

I had to tune /sys/kernel/slab/skbuff_small_head/cpu_partial and /sys/kernel/slab/skbuff_small_head/min_partial depending on the platform taxonomy.

Thanks for working on this. Previously I was thinking about this as well since it affects the hot path for xsk (please see __xsk_generic_xmit()->xsk_build_skb()->sock_alloc_send_pskb()). But I wasn't aware of the benefits between disabling irq and allocating memory. AFAIK, I once removed an enabling/disabling irq pair and saw a minor improvement as this commit[1] says. Would you share your invaluable experience with us in this case?

Quoted 1 line

In the meantime, I will do more rounds of experiments to see how they perform.

Done! I managed to see an improvement. The pps number goes from 1,458,644 to 1,647,235 by running [2].

But sadly the news is that the previous commit [3] leads to a huge decrease in af_xdp from 1,980,000 to 1,458,644. With commit [3] applied, I observed and found xdpsock always allocated the skb on cpu 0 but the napi poll triggered skb_attempt_defer_free() on another call[4], which affected the final results.

[2]
taskset -c 0 ./xdpsock -i enp2s0f1 -q 1 -t -S -s 64

[3]
commit e20dfbad8aab2b7c72571ae3c3e2e646d6b04cb7

Author: Eric Dumazet <[email protected]>
Date:   Thu Nov 6 20:29:34 2025 +0000

net: fix napi_consume_skb() with alien skbs

There is a lack of NUMA awareness and more generally lack of slab caches affinity on TX completion path.

[4]
@c[

    skb_attempt_defer_free+1
    ixgbe_clean_tx_irq+723
    ixgbe_poll+119
    __napi_poll+48

, ksoftirqd/24]: 1964731

@c[

    kick_defer_list_purge+1
    napi_consume_skb+333
    ixgbe_clean_tx_irq+723
    ixgbe_poll+119

, 34, swapper/34]: 123779

Thanks,
Jason

Quoted 14 lines

[1]
commit 30ed05adca4a05c50594384cff18910858dd1d35

Author: Jason Xing <[email protected]>
Date:   Thu Oct 30 08:06:46 2025 +0800

xsk: use a smaller new lock for shared pool case

- Split cq_lock into two smaller locks: cq_prod_lock and cq_cached_prod_lock
- Avoid disabling/enabling interrupts in the hot xmit path

Thanks,
Jason

#10 lore raw

Re: [PATCH v3 net-next 3/3] net: use napi_skb_cache even in process context

Quoted 38 lines · Jason Xing
Quoted 33 lines · Jason Xing
Quoted 13 lines · Eric Dumazet

This is a followup of commit e20dfbad8aab ("net: fix napi_consume_skb() with alien skbs").

Now the per-cpu napi_skb_cache is populated from TX completion path, we can make use of this cache, especially for cpus not used from a driver NAPI poll (primary user of napi_cache).

We can use the napi_skb_cache only if current context is not from hard irq.

With this patch, I consistently reach 130 Mpps on my UDP tx stress test and reduce SLUB spinlock contention to smaller values.

Quoted 7 lines

Note there is still some SLUB contention for skb->head allocations.

I had to tune /sys/kernel/slab/skbuff_small_head/cpu_partial and /sys/kernel/slab/skbuff_small_head/min_partial depending on the platform taxonomy.

Thanks for working on this. Previously I was thinking about this as well since it affects the hot path for xsk (please see __xsk_generic_xmit()->xsk_build_skb()->sock_alloc_send_pskb()). But I wasn't aware of the benefits between disabling irq and allocating memory. AFAIK, I once removed an enabling/disabling irq pair and saw a minor improvement as this commit[1] says. Would you share your invaluable experience with us in this case?

Quoted 1 line

In the meantime, I will do more rounds of experiments to see how they perform.

Quoted 8 lines

Done! I managed to see an improvement. The pps number goes from 1,458,644 to 1,647,235 by running [2].

But sadly the news is that the previous commit [3] leads to a huge decrease in af_xdp from 1,980,000 to 1,458,644. With commit [3] applied, I observed and found xdpsock always allocated the skb on cpu 0 but the napi poll triggered skb_attempt_defer_free() on another call[4], which affected the final results.

Typo: on another cpu.

#11 lore raw

Re: [PATCH v3 net-next 3/3] net: use napi_skb_cache even in process context

In reply to Jason Xing
Quoted 69 lines · Jason Xing
Quoted 33 lines · Jason Xing
Quoted 13 lines · Eric Dumazet

This is a followup of commit e20dfbad8aab ("net: fix napi_consume_skb() with alien skbs").

Now the per-cpu napi_skb_cache is populated from TX completion path, we can make use of this cache, especially for cpus not used from a driver NAPI poll (primary user of napi_cache).

We can use the napi_skb_cache only if current context is not from hard irq.

With this patch, I consistently reach 130 Mpps on my UDP tx stress test and reduce SLUB spinlock contention to smaller values.

Quoted 7 lines

Note there is still some SLUB contention for skb->head allocations.

I had to tune /sys/kernel/slab/skbuff_small_head/cpu_partial and /sys/kernel/slab/skbuff_small_head/min_partial depending on the platform taxonomy.

Thanks for working on this. Previously I was thinking about this as well since it affects the hot path for xsk (please see __xsk_generic_xmit()->xsk_build_skb()->sock_alloc_send_pskb()). But I wasn't aware of the benefits between disabling irq and allocating memory. AFAIK, I once removed an enabling/disabling irq pair and saw a minor improvement as this commit[1] says. Would you share your invaluable experience with us in this case?

Quoted 1 line

In the meantime, I will do more rounds of experiments to see how they perform.

Done! I managed to see an improvement. The pps number goes from 1,458,644 to 1,647,235 by running [2].

But sadly the news is that the previous commit [3] leads to a huge decrease in af_xdp from 1,980,000 to 1,458,644. With commit [3] applied, I observed and found xdpsock always allocated the skb on cpu 0 but the napi poll triggered skb_attempt_defer_free() on another call[4], which affected the final results.

[2]
taskset -c 0 ./xdpsock -i enp2s0f1 -q 1 -t -S -s 64

[3]
commit e20dfbad8aab2b7c72571ae3c3e2e646d6b04cb7

Author: Eric Dumazet <[email protected]>
Date:   Thu Nov 6 20:29:34 2025 +0000

net: fix napi_consume_skb() with alien skbs

There is a lack of NUMA awareness and more generally lack of slab caches affinity on TX completion path.

[4]
@c[

    skb_attempt_defer_free+1
    ixgbe_clean_tx_irq+723
    ixgbe_poll+119
    __napi_poll+48

, ksoftirqd/24]: 1964731

@c[

Quoted 8 lines
    kick_defer_list_purge+1
    napi_consume_skb+333
    ixgbe_clean_tx_irq+723
    ixgbe_poll+119

, 34, swapper/34]: 123779

Thanks,
Jason

Hi Jason.

It is a bit hard to guess without more details (cpu you are using), and perhaps perf profiles.
In particular which cpu is the bottleneck ?

1) There is still the missing part about tuning NAPI_SKB_CACHE_SIZE / NAPI_SKB_CACHE_BULK, I was hoping you could send the patch we discussed earlier ?

2) I am also working on allowing batches of skbs for skb_attempt_defer_free().

Another item I am working on is to let the qdisc being serviced preferably not by the cpu performing TX completion,
I mentioned about making qdisc->running a sequence that we can latch in __netif_schedule().
(Idea is to be able to not spin on qdisc spinlock from net_tx_action() if another cpu was able to call qdisc_run())

#12 lore raw

Re: [PATCH v3 net-next 3/3] net: use napi_skb_cache even in process context

Quoted 77 lines · Eric Dumazet
Quoted 75 lines · Jason Xing
Quoted 33 lines · Jason Xing
Quoted 13 lines · Eric Dumazet

This is a followup of commit e20dfbad8aab ("net: fix napi_consume_skb() with alien skbs").

Now the per-cpu napi_skb_cache is populated from TX completion path, we can make use of this cache, especially for cpus not used from a driver NAPI poll (primary user of napi_cache).

We can use the napi_skb_cache only if current context is not from hard irq.

With this patch, I consistently reach 130 Mpps on my UDP tx stress test and reduce SLUB spinlock contention to smaller values.

Quoted 7 lines

Note there is still some SLUB contention for skb->head allocations.

I had to tune /sys/kernel/slab/skbuff_small_head/cpu_partial and /sys/kernel/slab/skbuff_small_head/min_partial depending on the platform taxonomy.

Thanks for working on this. Previously I was thinking about this as well since it affects the hot path for xsk (please see __xsk_generic_xmit()->xsk_build_skb()->sock_alloc_send_pskb()). But I wasn't aware of the benefits between disabling irq and allocating memory. AFAIK, I once removed an enabling/disabling irq pair and saw a minor improvement as this commit[1] says. Would you share your invaluable experience with us in this case?

Quoted 1 line

In the meantime, I will do more rounds of experiments to see how they perform.

Done! I managed to see an improvement. The pps number goes from 1,458,644 to 1,647,235 by running [2].

But sadly the news is that the previous commit [3] leads to a huge decrease in af_xdp from 1,980,000 to 1,458,644. With commit [3] applied, I observed and found xdpsock always allocated the skb on cpu 0 but the napi poll triggered skb_attempt_defer_free() on another call[4], which affected the final results.

[2]
taskset -c 0 ./xdpsock -i enp2s0f1 -q 1 -t -S -s 64

[3]
commit e20dfbad8aab2b7c72571ae3c3e2e646d6b04cb7

Author: Eric Dumazet <[email protected]>
Date:   Thu Nov 6 20:29:34 2025 +0000

net: fix napi_consume_skb() with alien skbs

There is a lack of NUMA awareness and more generally lack of slab caches affinity on TX completion path.

[4]
@c[

    skb_attempt_defer_free+1
    ixgbe_clean_tx_irq+723
    ixgbe_poll+119
    __napi_poll+48

, ksoftirqd/24]: 1964731

@c[

    kick_defer_list_purge+1
    napi_consume_skb+333
    ixgbe_clean_tx_irq+723
    ixgbe_poll+119

, 34, swapper/34]: 123779

Quoted 7 lines
Quoted 2 lines

Thanks,
Jason

Hi Jason.

It is a bit hard to guess without more details (cpu you are using), and perhaps perf profiles.

Xdpsock only calculates the speed on the cpu where it sends packets. To put in more details, it will check if the packets are sent by inspecting the completion queue and then send another group of packets over and over again.

My test env is relatively old:
[root@localhost ~]# lscpu

Architecture:                x86_64
  CPU op-mode(s):            32-bit, 64-bit
  Address sizes:             46 bits physical, 48 bits virtual
  Byte Order:                Little Endian
CPU(s):                      48
  On-line CPU(s) list:       0-47
Vendor ID:                   GenuineIntel
  BIOS Vendor ID:            Intel(R) Corporation
  Model name:                Intel(R) Xeon(R) CPU E5-2670 v3 @ 2.30GHz
    BIOS Model name:         Intel(R) Xeon(R) CPU E5-2670 v3 @ 2.30GHz
 CPU @ 2.3GHz
    BIOS CPU family:         179
    CPU family:              6
    Model:                   63
    Thread(s) per core:      2
    Core(s) per socket:      12
    Socket(s):               2
    Stepping:                2
    CPU(s) scaling MHz:      84%
    CPU max MHz:             3100.0000
    CPU min MHz:             1200.0000

After that commit [3], the perf differs because of the interrupts jumping in the tx path frequently:
- 98.72% 0.09% xdpsock libc.so.6 [.]
__libc_sendto
▒
- __libc_sendto
◆
- 98.28% entry_SYSCALL_64_after_hwframe
▒
- 98.19% do_syscall_64
▒
- 97.94% x64_sys_call
▒
- 97.91% __x64_sys_sendto
▒
- 97.80% __sys_sendto
▒
- 97.28% xsk_sendmsg
▒
- 97.18% __xsk_sendmsg.constprop.0.isra.0 ▒
- 87.85% __xsk_generic_xmit
▒
- 41.71% xsk_build_skb
▒
- 33.06% sock_alloc_send_pskb ▒
+ 22.06% alloc_skb_with_frags ▒
+ 7.61% skb_set_owner_w ▒
+ 0.58%
asm_sysvec_call_function_single
▒
1.66% skb_store_bits
▒
1.60% memcpy_orig
▒
0.69% xp_raw_get_data
▒
- 32.56% __dev_direct_xmit
▒
+ 15.62% 0xffffffffa064e5ac ▒
- 7.33% __local_bh_enable_ip ▒
+ 6.18% do_softirq
▒
+ 0.70%
asm_sysvec_call_function_single
▒
+ 5.78% validate_xmit_skb ▒
- 6.08% asm_sysvec_call_function_single ▒
+ sysvec_call_function_single ▒
+ 1.62% xp_raw_get_data
▒
- 8.29% _raw_spin_lock
▒
+ 3.01% asm_sysvec_call_function_single

Prior to that patch, I didn't see any interrupts coming in, so I assume the defer part caused the problem.

Quoted 5 lines

In particular which cpu is the bottleneck ?

1) There is still the missing part about tuning NAPI_SKB_CACHE_SIZE / NAPI_SKB_CACHE_BULK, I was hoping you could send the patch we discussed earlier ?

Sure thing :) I've done that part locally, thinking I will post it as long as the current series gets merged?

Quoted 9 lines

2) I am also working on allowing batches of skbs for skb_attempt_defer_free().

Another item I am working on is to let the qdisc being serviced preferably not by the cpu performing TX completion,
I mentioned about making qdisc->running a sequence that we can latch in __netif_schedule().
(Idea is to be able to not spin on qdisc spinlock from net_tx_action() if another cpu was able to call qdisc_run())

Awesome work. Hope to see it very soon :)

Thanks,
Jason

#13 lore raw

Re: [PATCH v3 net-next 3/3] net: use napi_skb_cache even in process context

Quoted 179 lines · Jason Xing
Quoted 77 lines · Eric Dumazet
Quoted 75 lines · Jason Xing
Quoted 33 lines · Jason Xing
Quoted 13 lines · Eric Dumazet

This is a followup of commit e20dfbad8aab ("net: fix napi_consume_skb() with alien skbs").

Now the per-cpu napi_skb_cache is populated from TX completion path, we can make use of this cache, especially for cpus not used from a driver NAPI poll (primary user of napi_cache).

We can use the napi_skb_cache only if current context is not from hard irq.

With this patch, I consistently reach 130 Mpps on my UDP tx stress test and reduce SLUB spinlock contention to smaller values.

Quoted 7 lines

Note there is still some SLUB contention for skb->head allocations.

I had to tune /sys/kernel/slab/skbuff_small_head/cpu_partial and /sys/kernel/slab/skbuff_small_head/min_partial depending on the platform taxonomy.

Thanks for working on this. Previously I was thinking about this as well since it affects the hot path for xsk (please see __xsk_generic_xmit()->xsk_build_skb()->sock_alloc_send_pskb()). But I wasn't aware of the benefits between disabling irq and allocating memory. AFAIK, I once removed an enabling/disabling irq pair and saw a minor improvement as this commit[1] says. Would you share your invaluable experience with us in this case?

Quoted 1 line

In the meantime, I will do more rounds of experiments to see how they perform.

Done! I managed to see an improvement. The pps number goes from 1,458,644 to 1,647,235 by running [2].

But sadly the news is that the previous commit [3] leads to a huge decrease in af_xdp from 1,980,000 to 1,458,644. With commit [3] applied, I observed and found xdpsock always allocated the skb on cpu 0 but the napi poll triggered skb_attempt_defer_free() on another call[4], which affected the final results.

[2]
taskset -c 0 ./xdpsock -i enp2s0f1 -q 1 -t -S -s 64

[3]
commit e20dfbad8aab2b7c72571ae3c3e2e646d6b04cb7

Author: Eric Dumazet <[email protected]>
Date:   Thu Nov 6 20:29:34 2025 +0000

net: fix napi_consume_skb() with alien skbs

There is a lack of NUMA awareness and more generally lack of slab caches affinity on TX completion path.

[4]
@c[

    skb_attempt_defer_free+1
    ixgbe_clean_tx_irq+723
    ixgbe_poll+119
    __napi_poll+48

, ksoftirqd/24]: 1964731

@c[

    kick_defer_list_purge+1
    napi_consume_skb+333
    ixgbe_clean_tx_irq+723
    ixgbe_poll+119

, 34, swapper/34]: 123779

Quoted 7 lines
Quoted 2 lines

Thanks,
Jason

Hi Jason.

It is a bit hard to guess without more details (cpu you are using), and perhaps perf profiles.

Xdpsock only calculates the speed on the cpu where it sends packets. To put in more details, it will check if the packets are sent by inspecting the completion queue and then send another group of packets over and over again.

My test env is relatively old:
[root@localhost ~]# lscpu

Architecture:                x86_64
  CPU op-mode(s):            32-bit, 64-bit
  Address sizes:             46 bits physical, 48 bits virtual
  Byte Order:                Little Endian
CPU(s):                      48
  On-line CPU(s) list:       0-47
Vendor ID:                   GenuineIntel
  BIOS Vendor ID:            Intel(R) Corporation
  Model name:                Intel(R) Xeon(R) CPU E5-2670 v3 @ 2.30GHz
    BIOS Model name:         Intel(R) Xeon(R) CPU E5-2670 v3 @ 2.30GHz
 CPU @ 2.3GHz
    BIOS CPU family:         179
    CPU family:              6
    Model:                   63
    Thread(s) per core:      2
    Core(s) per socket:      12
    Socket(s):               2
    Stepping:                2
    CPU(s) scaling MHz:      84%
    CPU max MHz:             3100.0000
    CPU min MHz:             1200.0000

After that commit [3], the perf differs because of the interrupts jumping in the tx path frequently:
- 98.72% 0.09% xdpsock libc.so.6 [.]
__libc_sendto
▒
- __libc_sendto
◆
- 98.28% entry_SYSCALL_64_after_hwframe
▒
- 98.19% do_syscall_64
▒
- 97.94% x64_sys_call
▒
- 97.91% __x64_sys_sendto
▒
- 97.80% __sys_sendto
▒
- 97.28% xsk_sendmsg
▒
- 97.18% __xsk_sendmsg.constprop.0.isra.0 ▒
- 87.85% __xsk_generic_xmit
▒
- 41.71% xsk_build_skb
▒
- 33.06% sock_alloc_send_pskb ▒
+ 22.06% alloc_skb_with_frags ▒
+ 7.61% skb_set_owner_w ▒
+ 0.58%
asm_sysvec_call_function_single
▒
1.66% skb_store_bits
▒
1.60% memcpy_orig
▒
0.69% xp_raw_get_data
▒
- 32.56% __dev_direct_xmit
▒
+ 15.62% 0xffffffffa064e5ac ▒
- 7.33% __local_bh_enable_ip ▒
+ 6.18% do_softirq
▒
+ 0.70%
asm_sysvec_call_function_single
▒
+ 5.78% validate_xmit_skb ▒
- 6.08% asm_sysvec_call_function_single ▒
+ sysvec_call_function_single ▒
+ 1.62% xp_raw_get_data
▒
- 8.29% _raw_spin_lock
▒
+ 3.01% asm_sysvec_call_function_single

Quoted 2 lines

Prior to that patch, I didn't see any interrupts coming in, so I assume the defer part caused the problem.

This is a trade off.

If you are using a single cpu to send packets, then it will not really have contention on SLUB structures.

A bit like RFS : If you want to reach max throughput on a single flow, it is probably better _not_ using RFS/RPS,
so that more than one cpu can be involved in the rx work.

We can add a static key to enable/disable the behaviors that are most suited to a particular workload.

We could also call skb_defer_free_flush() (now it is IRQ safe) from napi_skb_cache_get() before
we attempt to allocate new sk_buff. This would prevent IPI from being sent.

Quoted 24 lines
Quoted 6 lines

In particular which cpu is the bottleneck ?

1) There is still the missing part about tuning NAPI_SKB_CACHE_SIZE / NAPI_SKB_CACHE_BULK, I was hoping you could send the patch we discussed earlier ?

Sure thing :) I've done that part locally, thinking I will post it as long as the current series gets merged?

Quoted 9 lines

2) I am also working on allowing batches of skbs for skb_attempt_defer_free().

Another item I am working on is to let the qdisc being serviced preferably not by the cpu performing TX completion,
I mentioned about making qdisc->running a sequence that we can latch in __netif_schedule().
(Idea is to be able to not spin on qdisc spinlock from net_tx_action() if another cpu was able to call qdisc_run())

Awesome work. Hope to see it very soon :)

Thanks,
Jason

#14 lore raw

Re: [PATCH v3 net-next 3/3] net: use napi_skb_cache even in process context

Quoted 41 lines · Eric Dumazet
Quoted 39 lines · Jason Xing
Quoted 37 lines · Eric Dumazet
Quoted 35 lines · Jason Xing
Quoted 33 lines · Jason Xing
Quoted 13 lines · Eric Dumazet

This is a followup of commit e20dfbad8aab ("net: fix napi_consume_skb() with alien skbs").

Now the per-cpu napi_skb_cache is populated from TX completion path, we can make use of this cache, especially for cpus not used from a driver NAPI poll (primary user of napi_cache).

We can use the napi_skb_cache only if current context is not from hard irq.

With this patch, I consistently reach 130 Mpps on my UDP tx stress test and reduce SLUB spinlock contention to smaller values.

Quoted 7 lines

Note there is still some SLUB contention for skb->head allocations.

I had to tune /sys/kernel/slab/skbuff_small_head/cpu_partial and /sys/kernel/slab/skbuff_small_head/min_partial depending on the platform taxonomy.

Thanks for working on this. Previously I was thinking about this as well since it affects the hot path for xsk (please see __xsk_generic_xmit()->xsk_build_skb()->sock_alloc_send_pskb()). But I wasn't aware of the benefits between disabling irq and allocating memory. AFAIK, I once removed an enabling/disabling irq pair and saw a minor improvement as this commit[1] says. Would you share your invaluable experience with us in this case?

Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 1 line

In the meantime, I will do more rounds of experiments to see how they perform.

Done! I managed to see an improvement. The pps number goes from 1,458,644 to 1,647,235 by running [2].

But sadly the news is that the previous commit [3] leads to a huge decrease in af_xdp from 1,980,000 to 1,458,644. With commit [3]

I have to rephrase a bit. What I did is on top of the commit just before [3], I tried out the tests to see the number w/o [3] series, so the numbers were respectively 1,458,644 and 1,980,000. That means reverting commit [3] brought back that much performance.

Furthermore, I did a few more tests and my env changed:
1) I tried the latest kernel, the number is around 1,680,000. And then revert commit [3], it's increased to 1,850,000.
2) I tried to apply the current series, the number was around 1,730,000.
3) I tried to apply the current series and reverted [3], the number was still around 1,730,000.

That means the current series negates the benefits of that commit [3]. I've done many rounds of tests, so the above numbers are quite stable. I feel I need to directly use the fallback memory allocation instead of trying napi_skb_cache_get for xsk? I'm not sure if any theory supports which one is good or not. From my instinct, trying disabling/enabling is saving time while using napi_skb_cache_get is also saving time...

Quoted 135 lines
Quoted 132 lines
Quoted 32 lines
Quoted 32 lines

applied, I observed and found xdpsock always allocated the skb on cpu 0 but the napi poll triggered skb_attempt_defer_free() on another call[4], which affected the final results.

[2]
taskset -c 0 ./xdpsock -i enp2s0f1 -q 1 -t -S -s 64

[3]
commit e20dfbad8aab2b7c72571ae3c3e2e646d6b04cb7

Author: Eric Dumazet <[email protected]>
Date:   Thu Nov 6 20:29:34 2025 +0000

net: fix napi_consume_skb() with alien skbs

There is a lack of NUMA awareness and more generally lack of slab caches affinity on TX completion path.

[4]
@c[

    skb_attempt_defer_free+1
    ixgbe_clean_tx_irq+723
    ixgbe_poll+119
    __napi_poll+48

, ksoftirqd/24]: 1964731

@c[

    kick_defer_list_purge+1
    napi_consume_skb+333
    ixgbe_clean_tx_irq+723
    ixgbe_poll+119

, 34, swapper/34]: 123779

Quoted 7 lines
Quoted 2 lines

Thanks,
Jason

Hi Jason.

It is a bit hard to guess without more details (cpu you are using), and perhaps perf profiles.

Xdpsock only calculates the speed on the cpu where it sends packets. To put in more details, it will check if the packets are sent by inspecting the completion queue and then send another group of packets over and over again.

My test env is relatively old:
[root@localhost ~]# lscpu

Architecture:                x86_64
  CPU op-mode(s):            32-bit, 64-bit
  Address sizes:             46 bits physical, 48 bits virtual
  Byte Order:                Little Endian
CPU(s):                      48
  On-line CPU(s) list:       0-47
Vendor ID:                   GenuineIntel
  BIOS Vendor ID:            Intel(R) Corporation
  Model name:                Intel(R) Xeon(R) CPU E5-2670 v3 @ 2.30GHz
    BIOS Model name:         Intel(R) Xeon(R) CPU E5-2670 v3 @ 2.30GHz
 CPU @ 2.3GHz
    BIOS CPU family:         179
    CPU family:              6
    Model:                   63
    Thread(s) per core:      2
    Core(s) per socket:      12
    Socket(s):               2
    Stepping:                2
    CPU(s) scaling MHz:      84%
    CPU max MHz:             3100.0000
    CPU min MHz:             1200.0000

After that commit [3], the perf differs because of the interrupts jumping in the tx path frequently:
- 98.72% 0.09% xdpsock libc.so.6 [.]
__libc_sendto
▒
- __libc_sendto
◆
- 98.28% entry_SYSCALL_64_after_hwframe
▒
- 98.19% do_syscall_64
▒
- 97.94% x64_sys_call
▒
- 97.91% __x64_sys_sendto
▒
- 97.80% __sys_sendto
▒
- 97.28% xsk_sendmsg
▒
- 97.18% __xsk_sendmsg.constprop.0.isra.0 ▒
- 87.85% __xsk_generic_xmit
▒
- 41.71% xsk_build_skb
▒
- 33.06% sock_alloc_send_pskb ▒
+ 22.06% alloc_skb_with_frags ▒
+ 7.61% skb_set_owner_w ▒
+ 0.58%
asm_sysvec_call_function_single
▒
1.66% skb_store_bits
▒
1.60% memcpy_orig
▒
0.69% xp_raw_get_data
▒
- 32.56% __dev_direct_xmit
▒
+ 15.62% 0xffffffffa064e5ac ▒
- 7.33% __local_bh_enable_ip ▒
+ 6.18% do_softirq
▒
+ 0.70%
asm_sysvec_call_function_single
▒
+ 5.78% validate_xmit_skb ▒
- 6.08% asm_sysvec_call_function_single ▒
+ sysvec_call_function_single ▒
+ 1.62% xp_raw_get_data
▒
- 8.29% _raw_spin_lock
▒
+ 3.01% asm_sysvec_call_function_single

Quoted 2 lines

Prior to that patch, I didn't see any interrupts coming in, so I assume the defer part caused the problem.

Quoted 8 lines

This is a trade off.

If you are using a single cpu to send packets, then it will not really have contention on SLUB structures.

A bit like RFS : If you want to reach max throughput on a single flow, it is probably better _not_ using RFS/RPS,
so that more than one cpu can be involved in the rx work.

Point taken!

Quoted 3 lines

We can add a static key to enable/disable the behaviors that are most suited to a particular workload.

Are we going to introduce a new knob to control this snippet in napi_consume_skb()?

Quoted 4 lines

We could also call skb_defer_free_flush() (now it is IRQ safe) from napi_skb_cache_get() before
we attempt to allocate new sk_buff. This would prevent IPI from being sent.

Well, it can but it adds more complexity into the allocation phase. I would prefer the static key approach :)

Thanks,
Jason

Quoted 25 lines
Quoted 25 lines
Quoted 7 lines

In particular which cpu is the bottleneck ?

1) There is still the missing part about tuning NAPI_SKB_CACHE_SIZE / NAPI_SKB_CACHE_BULK, I was hoping you could send the patch we discussed earlier ?

Sure thing :) I've done that part locally, thinking I will post it as long as the current series gets merged?

Quoted 9 lines

2) I am also working on allowing batches of skbs for skb_attempt_defer_free().

Another item I am working on is to let the qdisc being serviced preferably not by the cpu performing TX completion,
I mentioned about making qdisc->running a sequence that we can latch in __netif_schedule().
(Idea is to be able to not spin on qdisc spinlock from net_tx_action() if another cpu was able to call qdisc_run())

Awesome work. Hope to see it very soon :)

Thanks,
Jason

#15 lore raw

Re: [PATCH v3 net-next 3/3] net: use napi_skb_cache even in process context

Quoted 216 lines · Jason Xing
Quoted 41 lines · Eric Dumazet
Quoted 39 lines · Jason Xing
Quoted 37 lines · Eric Dumazet
Quoted 35 lines · Jason Xing
Quoted 33 lines · Jason Xing
Quoted 13 lines · Eric Dumazet

This is a followup of commit e20dfbad8aab ("net: fix napi_consume_skb() with alien skbs").

Now the per-cpu napi_skb_cache is populated from TX completion path, we can make use of this cache, especially for cpus not used from a driver NAPI poll (primary user of napi_cache).

We can use the napi_skb_cache only if current context is not from hard irq.

With this patch, I consistently reach 130 Mpps on my UDP tx stress test and reduce SLUB spinlock contention to smaller values.

Quoted 7 lines

Note there is still some SLUB contention for skb->head allocations.

I had to tune /sys/kernel/slab/skbuff_small_head/cpu_partial and /sys/kernel/slab/skbuff_small_head/min_partial depending on the platform taxonomy.

Thanks for working on this. Previously I was thinking about this as well since it affects the hot path for xsk (please see __xsk_generic_xmit()->xsk_build_skb()->sock_alloc_send_pskb()). But I wasn't aware of the benefits between disabling irq and allocating memory. AFAIK, I once removed an enabling/disabling irq pair and saw a minor improvement as this commit[1] says. Would you share your invaluable experience with us in this case?

Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 1 line

In the meantime, I will do more rounds of experiments to see how they perform.

Done! I managed to see an improvement. The pps number goes from 1,458,644 to 1,647,235 by running [2].

But sadly the news is that the previous commit [3] leads to a huge decrease in af_xdp from 1,980,000 to 1,458,644. With commit [3]

I have to rephrase a bit. What I did is on top of the commit just before [3], I tried out the tests to see the number w/o [3] series, so the numbers were respectively 1,458,644 and 1,980,000. That means reverting commit [3] brought back that much performance.

Furthermore, I did a few more tests and my env changed:
1) I tried the latest kernel, the number is around 1,680,000. And then revert commit [3], it's increased to 1,850,000.
2) I tried to apply the current series, the number was around 1,730,000.
3) I tried to apply the current series and reverted [3], the number was still around 1,730,000.

That means the current series negates the benefits of that commit [3]. I've done many rounds of tests, so the above numbers are quite stable. I feel I need to directly use the fallback memory allocation instead of trying napi_skb_cache_get for xsk? I'm not sure if any theory supports which one is good or not. From my instinct, trying disabling/enabling is saving time while using napi_skb_cache_get is also saving time...

Quoted 135 lines
Quoted 132 lines
Quoted 32 lines
Quoted 32 lines

applied, I observed and found xdpsock always allocated the skb on cpu 0 but the napi poll triggered skb_attempt_defer_free() on another call[4], which affected the final results.

[2]
taskset -c 0 ./xdpsock -i enp2s0f1 -q 1 -t -S -s 64

[3]
commit e20dfbad8aab2b7c72571ae3c3e2e646d6b04cb7

Author: Eric Dumazet <[email protected]>
Date:   Thu Nov 6 20:29:34 2025 +0000

net: fix napi_consume_skb() with alien skbs

There is a lack of NUMA awareness and more generally lack of slab caches affinity on TX completion path.

[4]
@c[

    skb_attempt_defer_free+1
    ixgbe_clean_tx_irq+723
    ixgbe_poll+119
    __napi_poll+48

, ksoftirqd/24]: 1964731

@c[

    kick_defer_list_purge+1
    napi_consume_skb+333
    ixgbe_clean_tx_irq+723
    ixgbe_poll+119

, 34, swapper/34]: 123779

Quoted 7 lines
Quoted 2 lines

Thanks,
Jason

Hi Jason.

It is a bit hard to guess without more details (cpu you are using), and perhaps perf profiles.

Xdpsock only calculates the speed on the cpu where it sends packets. To put in more details, it will check if the packets are sent by inspecting the completion queue and then send another group of packets over and over again.

My test env is relatively old:
[root@localhost ~]# lscpu

Architecture:                x86_64
  CPU op-mode(s):            32-bit, 64-bit
  Address sizes:             46 bits physical, 48 bits virtual
  Byte Order:                Little Endian
CPU(s):                      48
  On-line CPU(s) list:       0-47
Vendor ID:                   GenuineIntel
  BIOS Vendor ID:            Intel(R) Corporation
  Model name:                Intel(R) Xeon(R) CPU E5-2670 v3 @ 2.30GHz
    BIOS Model name:         Intel(R) Xeon(R) CPU E5-2670 v3 @ 2.30GHz
 CPU @ 2.3GHz
    BIOS CPU family:         179
    CPU family:              6
    Model:                   63
    Thread(s) per core:      2
    Core(s) per socket:      12
    Socket(s):               2
    Stepping:                2
    CPU(s) scaling MHz:      84%
    CPU max MHz:             3100.0000
    CPU min MHz:             1200.0000

After that commit [3], the perf differs because of the interrupts jumping in the tx path frequently:
- 98.72% 0.09% xdpsock libc.so.6 [.]
__libc_sendto
▒
- __libc_sendto
◆
- 98.28% entry_SYSCALL_64_after_hwframe
▒
- 98.19% do_syscall_64
▒
- 97.94% x64_sys_call
▒
- 97.91% __x64_sys_sendto
▒
- 97.80% __sys_sendto
▒
- 97.28% xsk_sendmsg
▒
- 97.18% __xsk_sendmsg.constprop.0.isra.0 ▒
- 87.85% __xsk_generic_xmit
▒
- 41.71% xsk_build_skb
▒
- 33.06% sock_alloc_send_pskb ▒
+ 22.06% alloc_skb_with_frags ▒
+ 7.61% skb_set_owner_w ▒
+ 0.58%
asm_sysvec_call_function_single
▒
1.66% skb_store_bits
▒
1.60% memcpy_orig
▒
0.69% xp_raw_get_data
▒
- 32.56% __dev_direct_xmit
▒
+ 15.62% 0xffffffffa064e5ac ▒
- 7.33% __local_bh_enable_ip ▒
+ 6.18% do_softirq
▒
+ 0.70%
asm_sysvec_call_function_single
▒
+ 5.78% validate_xmit_skb ▒
- 6.08% asm_sysvec_call_function_single ▒
+ sysvec_call_function_single ▒
+ 1.62% xp_raw_get_data
▒
- 8.29% _raw_spin_lock
▒
+ 3.01% asm_sysvec_call_function_single

Quoted 2 lines

Prior to that patch, I didn't see any interrupts coming in, so I assume the defer part caused the problem.

Quoted 8 lines

This is a trade off.

If you are using a single cpu to send packets, then it will not really have contention on SLUB structures.

A bit like RFS : If you want to reach max throughput on a single flow, it is probably better _not_ using RFS/RPS,
so that more than one cpu can be involved in the rx work.

Quoted 8 lines

Point taken!

Quoted 3 lines

We can add a static key to enable/disable the behaviors that are most suited to a particular workload.

Are we going to introduce a new knob to control this snippet in napi_consume_skb()?

That's it. For single flow in xsk scenarios, adding something like a static key to avoid 1) using napi_skb_cache_get() in this patch, 2) deferring free in commit [3] can contribute to a higher performance back to more than 1,900,000 pps. I have no clue if adding a new sysctl is acceptable.

Thanks,
Jason

#16 lore raw

Re: [PATCH v3 net-next 3/3] net: use napi_skb_cache even in process context

Quoted 11 lines · Jason Xing
Quoted 9 lines · Jason Xing
Quoted 6 lines · Eric Dumazet

We can add a static key to enable/disable the behaviors that are most suited to a particular workload.

Quoted 8 lines
Quoted 2 lines

Are we going to introduce a new knob to control this snippet in napi_consume_skb()?

That's it. For single flow in xsk scenarios, adding something like a static key to avoid 1) using napi_skb_cache_get() in this patch, 2) deferring free in commit [3] can contribute to a higher performance back to more than 1,900,000 pps. I have no clue if adding a new sysctl is acceptable.

I will add one as soon as this series is merged.

#17 lore raw

Re: [PATCH v3 net-next 3/3] net: use napi_skb_cache even in process context

Quoted 16 lines · Eric Dumazet
Quoted 14 lines · Jason Xing
Quoted 11 lines · Jason Xing
Quoted 6 lines · Eric Dumazet

We can add a static key to enable/disable the behaviors that are most suited to a particular workload.

Are we going to introduce a new knob to control this snippet in napi_consume_skb()?

Quoted 7 lines
Quoted 5 lines

That's it. For single flow in xsk scenarios, adding something like a static key to avoid 1) using napi_skb_cache_get() in this patch, 2) deferring free in commit [3] can contribute to a higher performance back to more than 1,900,000 pps. I have no clue if adding a new sysctl is acceptable.

I will add one as soon as this series is merged.

Great! Thanks!

Reviewed-by on v3 3/3
#18 lore raw

Re: [PATCH v3 net-next 3/3] net: use napi_skb_cache even in process context

In reply to Eric Dumazet
Quoted 13 lines · Eric Dumazet

This is a followup of commit e20dfbad8aab ("net: fix napi_consume_skb() with alien skbs").

Now the per-cpu napi_skb_cache is populated from TX completion path, we can make use of this cache, especially for cpus not used from a driver NAPI poll (primary user of napi_cache).

We can use the napi_skb_cache only if current context is not from hard irq.

With this patch, I consistently reach 130 Mpps on my UDP tx stress test and reduce SLUB spinlock contention to smaller values.

Quoted 7 lines

Note there is still some SLUB contention for skb->head allocations.

I had to tune /sys/kernel/slab/skbuff_small_head/cpu_partial and /sys/kernel/slab/skbuff_small_head/min_partial depending on the platform taxonomy.

#19 lore raw
In reply to Eric Dumazet
This series was applied to netdev/net-next.git (main) by Jakub Kicinski <[email protected]>:

Hello:

This series was applied to netdev/net-next.git (main) by Jakub Kicinski <[email protected]>:

Quoted 8 lines · On Sun, 16 Nov 2025 20:27:14 +0000 you wrote:

This is a followup of commit e20dfbad8aab ("net: fix napi_consume_skb() with alien skbs").

Now the per-cpu napi_skb_cache is populated from TX completion path, we can make use of this cache, especially for cpus not used from a driver NAPI poll (primary user of napi_cache).

[...]

Here is the summary with links:
- [v3,net-next,1/3] net: add a new @alloc parameter to napi_skb_cache_get()

    https://git.kernel.org/netdev/net-next/c/dac023607568
  - [v3,net-next,2/3] net: __alloc_skb() cleanup
    https://git.kernel.org/netdev/net-next/c/294e63825966
  - [v3,net-next,3/3] net: use napi_skb_cache even in process context
    https://git.kernel.org/netdev/net-next/c/21664814b89e

You are awesome, thank you!

Signature · 2 lines
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html