Skip to content

Commit

Permalink
Add attributes on ENI for reverse tunnel information.
Browse files Browse the repository at this point in the history
  • Loading branch information
r12f committed Sep 2, 2024
1 parent 78fca1e commit 9100172
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
13 changes: 13 additions & 0 deletions dash-pipeline/SAI/specs/dash_eni.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -598,6 +598,19 @@ sai_apis:
valid_only: null
is_vlan: false
deprecated: false
- !!python/object:utils.sai_spec.sai_attribute.SaiAttribute
name: SAI_ENI_ATTR_REVERSE_TUNNEL_SIP
description: Action parameter reverse tunnel sip
type: sai_ip_address_t
attr_value_field: ipaddr
default: 0.0.0.0
isresourcetype: false
flags: CREATE_AND_SET
object_name: null
allow_null: false
valid_only: null
is_vlan: false
deprecated: false
stats:
- !!python/object:utils.sai_spec.sai_attribute.SaiAttribute
name: SAI_ENI_STAT_RX_BYTES
Expand Down
2 changes: 2 additions & 0 deletions dash-pipeline/bmv2/dash_pipeline.p4
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,8 @@ control dash_ingress(
bit<1> full_flow_resimulation_requested,
bit<64> max_resimulated_flow_per_second,
@SaiVal[type="sai_object_id_t"] bit<16> outbound_routing_group_id,
@SaiVal[type="sai_ip_address_t"] IPv4ORv6Address reverse_tunnel_sip,
bit<1> reverse_tunnel_sip_is_v6,
bit<1> is_ha_flow_owner)
{
meta.eni_data.cps = cps;
Expand Down

0 comments on commit 9100172

Please sign in to comment.