Re: [PATCH net 2/2] net: add a KUnit test for the alloc_skb_with_frags() tail split

From
Narcisa Vasile <hidden>
Date
2026-11-08 08:24:02
Also in
lkml
Reply to
Haishuang Yan, 2026-11-08
On Sun, Nov 08, 2026 at 07:06:17PM +0900, Haishuang Yan wrote:
quoted hunk ↗ jump to hunk
Allocate MAX_SKB_FRAGS - 2 full chunks of PAGE_ALLOC_COSTLY_ORDER plus
a 7 page tail. Rounding the tail down to 4 + 2 + 1 pages would need
one frag more than MAX_SKB_FRAGS, which made the allocation fail with
-ENOBUFS before the previous patch.

Signed-off-by: Haishuang Yan <redacted>
---
 net/core/net_test.c | 24 ++++++++++++++++++++++++
 1 file changed, 24 insertions(+)
diff --git a/net/core/net_test.c b/net/core/net_test.c
Thanks, I tried it locally.
Reviewed-by: Narcisa Vasile <redacted>
Thread (10 messages) 10 messages, 3 authors, last reply 12d ago
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help