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>
This commit is contained in:
@ -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;
|
||||
|
Reference in New Issue
Block a user