summaryrefslogtreecommitdiff
path: root/kernel
diff options
context:
space:
mode:
authorJustin Iurman <justin.iurman@uliege.be>2024-12-03 13:49:45 +0100
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2025-02-21 14:01:38 +0100
commit4a855c5aec41bf84922224ab7a74e088776e3ac4 (patch)
treea02f3f6ca58837f43d86f0873b563be8f17e4cf1 /kernel
parent2fcc9f3798ef82399564d247458e69abd10e683b (diff)
downloadlinux-4a855c5aec41bf84922224ab7a74e088776e3ac4.tar.gz
linux-4a855c5aec41bf84922224ab7a74e088776e3ac4.tar.bz2
linux-4a855c5aec41bf84922224ab7a74e088776e3ac4.zip
net: ipv6: rpl_iptunnel: mitigate 2-realloc issue
[ Upstream commit 985ec6f5e6235242191370628acb73d7a9f0c0ea ] This patch mitigates the two-reallocations issue with rpl_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 there is no impact (it even shows improvement): - before: https://ibb.co/nQJhqwc - after: https://ibb.co/4ZvW6wV Signed-off-by: Justin Iurman <justin.iurman@uliege.be> Cc: Alexander Aring <aahringo@redhat.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