]> www.infradead.org Git - users/jedix/linux-maple.git/commit
inet: frags: save a pair of atomic operations in reassembly
authorEric Dumazet <edumazet@google.com>
Wed, 12 Mar 2025 08:22:50 +0000 (08:22 +0000)
committerPaolo Abeni <pabeni@redhat.com>
Tue, 18 Mar 2025 12:18:36 +0000 (13:18 +0100)
commitca0359df45a55a9eb4d6dc09a481064abf78320f
tree4a9e6bcd4806324cfaf4b4b67f0fd082d99ae4cb
parenteb0dfc0ef195a04e519b15d73cf25d8c25ee8df7
inet: frags: save a pair of atomic operations in reassembly

As mentioned in commit 648700f76b03 ("inet: frags:
use rhashtables for reassembly units"):

  A followup patch will even remove the refcount hold/release
  left from prior implementation and save a couple of atomic
  operations.

This patch implements this idea, seven years later.

Signed-off-by: Eric Dumazet <edumazet@google.com>
Reviewed-by: Jacob Keller <jacob.e.keller@intel.com>
Link: https://patch.msgid.link/20250312082250.1803501-5-edumazet@google.com
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
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