From: Dave Wallace Date: Wed, 11 Oct 2023 03:19:18 +0000 (-0400) Subject: lb: fix intermittent per-port-vip idx lookup failure X-Git-Tag: v24.06-rc0~229 X-Git-Url: https://gerrit.fd.io/r/gitweb?a=commitdiff_plain;h=21bc900c3498599a2ff1bd83a8482cf0682914d6;p=vpp.git 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 --- 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;