# 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 
- List: netdev
- Page: https://ratatoskr.run/netdev/2026/11/17891722
- Thread: https://ratatoskr.run/netdev/2026/11/17891321/t.md

```text
On Sun, Nov 08, 2026 at 07:06:17PM +0900, Haishuang Yan wrote:
> 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>
```
