Fix swa component host hit (#25085)

This commit is contained in:
Ke Bao
2026-05-12 21:03:39 +08:00
committed by GitHub
parent 693f49793a
commit 6be1a45d99
@@ -95,7 +95,7 @@ class SWAComponent(TreeComponent):
) -> MatchResult: ) -> MatchResult:
ct = self.component_type ct = self.component_type
n_swa = 0 n_swa = 0
node = result.last_device_node node = result.last_host_node
root = self.cache.root_node root = self.cache.root_node
while node is not root and n_swa < self.sliding_window_size: while node is not root and n_swa < self.sliding_window_size:
cd = node.component_data[ct] cd = node.component_data[ct]