]> www.infradead.org Git - users/jedix/linux-maple.git/commit
inet: frags: add inet_frag_putn() helper
authorEric Dumazet <edumazet@google.com>
Wed, 12 Mar 2025 08:22:47 +0000 (08:22 +0000)
committerPaolo Abeni <pabeni@redhat.com>
Tue, 18 Mar 2025 12:18:36 +0000 (13:18 +0100)
commitae2d90355aa5592b0e99c8bbb4c3fa1d8e205f1b
tree9cba351968ad775449b48104114ea678c7cf9849
parent24faa63bcea88b6f24b0a3a710708505a876f9ba
inet: frags: add inet_frag_putn() helper

inet_frag_putn() can release multiple references
in one step.

Use it in inet_frags_free_cb().

Replace inet_frag_put(X) with inet_frag_putn(X, 1)

Signed-off-by: Eric Dumazet <edumazet@google.com>
Link: https://patch.msgid.link/20250312082250.1803501-2-edumazet@google.com
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
include/net/inet_frag.h
include/net/ipv6_frag.h
net/ieee802154/6lowpan/reassembly.c
net/ipv4/inet_fragment.c
net/ipv4/ip_fragment.c
net/ipv6/netfilter/nf_conntrack_reasm.c
net/ipv6/reassembly.c