]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-client.git/commit
Merge branch 'seg6-fix-dst_cache-sharing-in-seg6-lwtunnel'
authorJakub Kicinski <kuba@kernel.org>
Wed, 8 Apr 2026 03:20:59 +0000 (20:20 -0700)
committerJakub Kicinski <kuba@kernel.org>
Wed, 8 Apr 2026 03:21:00 +0000 (20:21 -0700)
commitf821664dde29302e8450aa0597bf1e4c7c5b0a22
tree8015badc6619dc635972bc7d47c2e2f6d88bc7fd
parentefaa71faf212324ecbf6d5339e9717fe53254f58
parent32dfd742f06a68fac6499a58f52025990c854031
Merge branch 'seg6-fix-dst_cache-sharing-in-seg6-lwtunnel'

Andrea Mayer says:

====================
seg6: fix dst_cache sharing in seg6 lwtunnel

The seg6 lwtunnel encap uses a single per-route dst_cache shared
between seg6_input_core() and seg6_output_core(). These two paths
can perform the post-encap SID lookup in different routing contexts
(e.g., ip rules matching on the ingress interface, or VRF table
separation). Whichever path runs first populates the cache, and the
other reuses it blindly, bypassing its own lookup.

Patch 1 fixes this by splitting the cache into cache_input and
cache_output. Patch 2 adds a selftest that validates the isolation.
====================

Link: https://patch.msgid.link/20260404004405.4057-1-andrea.mayer@uniroma2.it
Signed-off-by: Jakub Kicinski <kuba@kernel.org>