]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
net: IP defrag: encapsulate rbtree defrag code into callable functions
authorPeter Oskolkov <posk@google.com>
Tue, 23 Apr 2019 17:48:22 +0000 (10:48 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 27 Apr 2019 07:35:40 +0000 (09:35 +0200)
commitccfa73daf762f3adac3f6c0e2f09c3c74548775f
treeb6ff86c40a1152c67b602f904c70a2efd409a13b
parenta885a0ff776680ab6cb79cf891a81da9a2c18371
net: IP defrag: encapsulate rbtree defrag code into callable functions

[ Upstream commit c23f35d19db3b36ffb9e04b08f1d91565d15f84f ]

This is a refactoring patch: without changing runtime behavior,
it moves rbtree-related code from IPv4-specific files/functions
into .h/.c defrag files shared with IPv6 defragmentation code.

v2: make handling of overlapping packets match upstream.

Signed-off-by: Peter Oskolkov <posk@google.com>
Cc: Eric Dumazet <edumazet@google.com>
Cc: Florian Westphal <fw@strlen.de>
Cc: Tom Herbert <tom@herbertland.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Sasha Levin <sashal@kernel.org>
include/net/inet_frag.h
net/ipv4/inet_fragment.c
net/ipv4/ip_fragment.c