aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/scripts/Makefile.thinlto
diff options
context:
space:
mode:
authorJoas Antonio dos Santos <joasantonio108@gmail.com>2026-10-07 12:25:00 -0300
committerPaolo Abeni <pabeni@redhat.com>2026-10-13 12:02:08 +0200
commitd538cc3ec0bc4cb7b40981b3213a6c6671959ed5 (patch)
treebc095d8251b20257ae37f50effb5b22ee0c91350 /scripts/Makefile.thinlto
parentbnge: skip dev_addr when building the VNIC unicast list (diff)
calipso: hash the cache key, not the option start, in calipso_cache_add()
calipso_cache_add() stores calipso_ptr + 2 as the cache key, but computes entry->hash over calipso_ptr, i.e. starting two bytes earlier at the option type and length. calipso_opt_getattr() looks entries up with calipso_cache_check(calipso + 2, calipso[1], ...), which hashes the key itself. The two hashes only match on a jhash collision, so the CALIPSO label cache never hits and every labelled packet takes the full DOI lookup and category conversion path. The memcmp() on the key keeps lookups correct, so this is a performance bug only. Hash the stored key, as cipso_v4_cache_add() does for CIPSO. Fixes: 4fee5242bf41 ("calipso: Add a label cache.") Signed-off-by: Joas Antonio dos Santos <joasantonio108@gmail.com> Assisted-by: Claude:claude-opus-5-5 Reviewed-by: Daniel Machon <daniel.machon@microchip.com> Link: https://patch.msgid.link/179138670045.80227.16155454353416856947@gmail.com Signed-off-by: Paolo Abeni <pabeni@redhat.com>
Diffstat (limited to 'scripts/Makefile.thinlto')
0 files changed, 0 insertions, 0 deletions