Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 18 additions & 0 deletions inc/saiswitch.h
Original file line number Diff line number Diff line change
Expand Up @@ -504,6 +504,10 @@ typedef enum _sai_switch_tunnel_attr_t
/**
* @brief Tunnel UDP source port
*
* See also SAI_SWITCH_TUNNEL_ATTR_VXLAN_UDP_SPORT_SECURITY.
* This attribute is applied to VXLAN pockets ingressing the switch. If the incoming
* packet does not match the configured UDP source port range, the packet is dropped.
*
* @type sai_uint16_t
* @flags CREATE_AND_SET
* @isvlan false
Expand Down Expand Up @@ -576,6 +580,20 @@ typedef enum _sai_switch_tunnel_attr_t
*/
SAI_SWITCH_TUNNEL_ATTR_DECAP_QOS_TC_TO_PRIORITY_GROUP_MAP,

/**
* @brief Drop tunnel packets with not allowed UDP source port
*
* Upon enabling this feature, if the tunnel packet ingresses with
* UDP source port outside of range defined for this tunnel, it
* will be dropped.
*
* @type bool
* @flags CREATE_AND_SET
* @default false
* @validonly SAI_SWITCH_TUNNEL_ATTR_TUNNEL_TYPE == SAI_TUNNEL_TYPE_VXLAN and SAI_SWITCH_TUNNEL_ATTR_TUNNEL_VXLAN_UDP_SPORT_MODE == SAI_TUNNEL_VXLAN_UDP_SPORT_MODE_USER_DEFINED
*/
SAI_SWITCH_TUNNEL_ATTR_VXLAN_UDP_SPORT_SECURITY,

/**
* @brief End of attributes
*/
Expand Down
4 changes: 4 additions & 0 deletions inc/saitunnel.h
Original file line number Diff line number Diff line change
Expand Up @@ -660,6 +660,10 @@ typedef enum _sai_tunnel_attr_t
/**
* @brief Tunnel UDP source port
*
* See also SAI_TUNNEL_ATTR_VXLAN_UDP_SPORT_SECURITY.
* This attribute is applied to VXLAN pockets ingressing the switch. If the incoming
* packet does not match the configured UDP source port range, the packet is dropped.
*
* @type sai_uint16_t
* @flags CREATE_AND_SET
* @isvlan false
Expand Down