summaryrefslogtreecommitdiff
path: root/kernel
diff options
context:
space:
mode:
authorJustin Iurman <justin.iurman@uliege.be>2024-12-03 13:49:44 +0100
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2025-02-21 14:01:38 +0100
commit2fcc9f3798ef82399564d247458e69abd10e683b (patch)
tree724ba9929a42a3f9599a9079d5827fc97ea8af4e /kernel
parent8471e228448a818e4c27cab4b681b2e758e46cf5 (diff)
downloadlinux-2fcc9f3798ef82399564d247458e69abd10e683b.tar.gz
linux-2fcc9f3798ef82399564d247458e69abd10e683b.tar.bz2
linux-2fcc9f3798ef82399564d247458e69abd10e683b.zip
net: ipv6: seg6_iptunnel: mitigate 2-realloc issue
[ Upstream commit 40475b63761abb6f8fdef960d03228a08662c9c4 ] This patch mitigates the two-reallocations issue with seg6_iptunnel by providing the dst_entry (in the cache) to the first call to skb_cow_head(). As a result, the very first iteration would still trigger two reallocations (i.e., empty cache), while next iterations would only trigger a single reallocation. Performance tests before/after applying this patch, which clearly shows the improvement: - before: https://ibb.co/3Cg4sNH - after: https://ibb.co/8rQ350r Signed-off-by: Justin Iurman <justin.iurman@uliege.be> Cc: David Lebrun <dlebrun@google.com> Signed-off-by: Paolo Abeni <pabeni@redhat.com> Stable-dep-of: 92191dd10730 ("net: ipv6: fix dst ref loops in rpl, seg6 and ioam6 lwtunnels") Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'kernel')
0 files changed, 0 insertions, 0 deletions