Skip to content

Commit

Permalink
Update dash_outbound.p4
Browse files Browse the repository at this point in the history
  • Loading branch information
marian-pritsak authored Sep 22, 2023
1 parent fbcca88 commit 9829827
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions dash-pipeline/bmv2/dash_outbound.p4
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ control outbound(inout headers_t hdr,
bit<16> meter_class,
bit<1> meter_class_override) {
meta.encap_data.dash_encapsulation = dash_encapsulation;
meta.encap_data.service_tunnel_key = tunnel_key;
meta.encap_data.vni = tunnel_key;

service_tunnel_encode(hdr,
overlay_dip,
Expand Down Expand Up @@ -246,15 +246,15 @@ control outbound(inout headers_t hdr,
meta.encap_data.underlay_dip,
meta.encap_data.underlay_sip,
meta.encap_data.overlay_dmac,
meta.encap_data.service_tunnel_key);
meta.encap_data.vni);
} else if (meta.encap_data.dash_encapsulation == dash_encapsulation_t.NVGRE) {
nvgre_encap(hdr,
meta.encap_data.underlay_dmac,
meta.encap_data.underlay_smac,
meta.encap_data.underlay_dip,
meta.encap_data.underlay_sip,
meta.encap_data.overlay_dmac,
meta.encap_data.service_tunnel_key);
meta.encap_data.vni);
} else {
drop();
}
Expand Down

0 comments on commit 9829827

Please sign in to comment.