From 21bc900c3498599a2ff1bd83a8482cf0682914d6 Mon Sep 17 00:00:00 2001 From: Dave Wallace Date: Tue, 10 Oct 2023 23:19:18 -0400 Subject: [PATCH] lb: fix intermittent per-port-vip idx lookup failure - Causes per-port-vip testcases to fail when the uninitialized reserved field in the stack variable key for the hash lookup was a non-zero stack memory location. Type: fix Change-Id: I56afa15e7df60bc2340514f2c7ce5e71a9cb47a9 Signed-off-by: Dave Wallace --- src/plugins/lb/node.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/plugins/lb/node.c b/src/plugins/lb/node.c index 7f196c986d9..a37fe11a9b4 100644 --- a/src/plugins/lb/node.c +++ b/src/plugins/lb/node.c @@ -217,6 +217,7 @@ lb_node_get_hash (lb_main_t *lbm, vlib_buffer_t *p, u8 is_input_v4, u32 *hash, /* For per-port-vip case, ip lookup stores placeholder index */ key.vip_prefix_index = *vip_idx; key.port = (u16) (ports & 0xFFFF); + key.rsv = 0; if (is_input_v4) { key.protocol = ip40->protocol; -- 2.16.6