u8 tc = mm->tc_copy ? ip4->tos : mm->tc;
u32 vtcfl = 0x6 << 28;
vtcfl |= tc << 20;
- vtcfl |= vnet_buffer(p)->ip.flow_hash && 0x000fffff;
+ vtcfl |= vnet_buffer(p)->ip.flow_hash & 0x000fffff;
return (clib_host_to_net_u32(vtcfl));
}
vlib_get_next_frame(vm, node, next_index, to_next, n_left_to_next);
/* Dual loop */
- while (n_left_from > 4 && n_left_to_next > 2) {
+ while (n_left_from >= 4 && n_left_to_next >= 2) {
u32 pi0, pi1;
vlib_buffer_t *p0, *p1;
map_domain_t *d0, *d1;