Skip to content

Commit

Permalink
temp checkin.
Browse files Browse the repository at this point in the history
  • Loading branch information
r12f committed Dec 8, 2023
1 parent 126e7a3 commit f41fc24
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
12 changes: 6 additions & 6 deletions dash-pipeline/bmv2/dash_pipeline.p4
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ control dash_ingress(
@name("vip|dash_vip")
table vip {
key = {
hdr.ip_0.ipv4.dst_addr : exact @name("hdr.ip_0.ipv4.dst_addr:VIP");
hdr.ip_0.ipv4.dst_addr : exact @name("hdr.ipv4.dst_addr:VIP");
}

actions = {
Expand All @@ -64,7 +64,7 @@ control dash_ingress(
@name("direction_lookup|dash_direction_lookup")
table direction_lookup {
key = {
hdr.encap_0.vxlan.vni : exact @name("hdr.encap_0.vxlan.vni:VNI");
hdr.encap_0.vxlan.vni : exact @name("hdr.vxlan.vni:VNI");
}

actions = {
Expand Down Expand Up @@ -192,7 +192,7 @@ control dash_ingress(
table pa_validation {
key = {
meta.eni.vnet_id: exact @name("meta.eni.vnet_id:vnet_id");
hdr.ip_0.ipv4.src_addr : exact @name("hdr.ip_0.ipv4.src_addr:sip");
hdr.ip_0.ipv4.src_addr : exact @name("hdr.ipv4.src_addr:sip");
}

actions = {
Expand All @@ -207,8 +207,8 @@ control dash_ingress(
table inbound_routing {
key = {
meta.pipeline_oid: exact @name("meta.pipeline_oid:pipeline_oid");
hdr.encap_0.vxlan.vni : exact @name("hdr.encap_0.vxlan.vni:VNI");
hdr.ip_0.ipv4.src_addr : ternary @name("hdr.ip_0.ipv4.src_addr:sip");
hdr.encap_0.vxlan.vni : exact @name("hdr.vxlan.vni:VNI");
hdr.ip_0.ipv4.src_addr : ternary @name("hdr.ipv4.src_addr:sip");
}
actions = {
vxlan_decap(hdr);
Expand Down Expand Up @@ -251,7 +251,7 @@ control dash_ingress(
table meter_rule {
key = {
meta.meter_policy_id: exact @name("meta.meter_policy_id:meter_policy_id") @Sai[type="sai_object_id_t", isresourcetype="true", objects="METER_POLICY"];
hdr.ip_0.ipv4.dst_addr : ternary @name("hdr.ip_0.ipv4.dst_addr:dip");
hdr.ip_0.ipv4.dst_addr : ternary @name("hdr.ipv4.dst_addr:dip");
}

actions = {
Expand Down
2 changes: 2 additions & 0 deletions dash-pipeline/bmv2/dash_routeaction.p4
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ control action_tunnel(inout headers_t hdr, inout metadata_t meta)
meta.tunnel_0.tunnel_dmac = tunnel_dmac != 0 ? tunnel_dmac : meta.tunnel_0.tunnel_dmac;
}

@name("tunnel_underlay0|dash_tunnel_underlay0")
table tunnel_underlay0 {
key = {
meta.tunnel_underlay0_id : exact @name("meta.tunnel_underlay0_id:tunnel_underlay0_id");
Expand All @@ -74,6 +75,7 @@ control action_tunnel(inout headers_t hdr, inout metadata_t meta)
meta.tunnel_0.tunnel_dmac = tunnel_dmac != 0 ? tunnel_dmac : meta.tunnel_0.tunnel_dmac;
}

@name("tunnel_underlay1|dash_tunnel_underlay1")
table tunnel_underlay1 {
key = {
meta.tunnel_underlay1_id : exact @name("meta.tunnel_underlay1_id:tunnel_underlay1_id");
Expand Down

0 comments on commit f41fc24

Please sign in to comment.