summaryrefslogtreecommitdiffstats
path: root/src/plugins/lb
diff options
context:
space:
mode:
authorDave Wallace <dwallacelf@gmail.com>2023-10-10 23:19:18 -0400
committerDave Wallace <dwallacelf@gmail.com>2023-10-10 23:19:18 -0400
commit21bc900c3498599a2ff1bd83a8482cf0682914d6 (patch)
tree7dfa09960927ce1023190b2d796477c94ec64810 /src/plugins/lb
parent84c9ee3d696ef5c1162530a30ba591b806a7e175 (diff)
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 <dwallacelf@gmail.com>
Diffstat (limited to 'src/plugins/lb')
-rw-r--r--src/plugins/lb/node.c1
1 files changed, 1 insertions, 0 deletions
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;