Skip to content

Commit

Permalink
Fix dpdk build.
Browse files Browse the repository at this point in the history
  • Loading branch information
r12f committed Oct 3, 2024
1 parent d5782f2 commit 75cbc21
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions dash-pipeline/bmv2/stages/tunnel_stage.p4
Original file line number Diff line number Diff line change
Expand Up @@ -107,13 +107,17 @@ control tunnel_stage(

// If max member size is greater than 1, the tunnel is programmed with multiple members.
if (meta.dash_tunnel_max_member_size > 1) {
#if defined(TARGET_BMV2_V1MODEL)
// Select tunnel member based on the hash of the packet tuples.
hash(meta.dash_tunnel_member_index, HashAlgorithm.crc32, (bit<32>)0, {
meta.dst_ip_addr,
meta.src_ip_addr,
meta.src_l4_port,
meta.dst_l4_port
}, meta.dash_tunnel_max_member_size);
#else
meta.dash_tunnel_member_index = 0;
#endif
tunnel_member_select.apply();

tunnel_member.apply();
Expand Down

0 comments on commit 75cbc21

Please sign in to comment.