Re: [PATCH net-next] net: dropreason: add SKB_DROP_REASON_FRAG_MEM_LIMIT

From: Eric Dumazet

Date: Wed Nov 18 2026 - 03:38:37 EST


Le mer. 18 nov. 2026 à 08:05, Jiayuan Chen <jiayuan.chen@xxxxxxxxx> a écrit :
>
> This is used to track fragments dropped when the reassembly memory is
> over the limit (ipfrag_high_thresh, ip6frag_high_thresh).
>
> Fragments dropped because high_thresh is 0 get this reason too, the
> same way they are counted in IPSTATS_MIB_REASMFAILS.
>
> Tested with pwru.
>
> Before:
>
> ... PROTO MTU LEN FUNC
> ... 0x0800 65536 1500 ip_defrag
> ... 0x0800 65536 548 ip_defrag
> ... 0x0800 65536 548 sk_skb_reason_drop(SKB_DROP_REASON_NOT_SPECIFIED)
>
> After:
>
> ... PROTO MTU LEN FUNC
> ... 0x0800 65536 1500 ip_defrag
> ... 0x0800 65536 548 ip_defrag
> ... 0x0800 65536 548 sk_skb_reason_drop(SKB_DROP_REASON_FRAG_MEM_LIMIT)
>
> Signed-off-by: Jiayuan Chen <jiayuan.chen@xxxxxxxxx>

Reviewed-by: Eric Dumazet <edumazet@xxxxxxxxxx>