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>
diff --git a/src/plugins/lb/node.c b/src/plugins/lb/node.c
index 7f196c9..a37fe11 100644
--- a/src/plugins/lb/node.c
+++ b/src/plugins/lb/node.c
@@ -217,6 +217,7 @@
/* 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;