Skip to content

Commit

Permalink
User defined VxLAN UDP source port calculation (#1205)
Browse files Browse the repository at this point in the history
Signed-off-by: Marian Pritsak <marianp@mellanox.com>
  • Loading branch information
marian-pritsak authored Apr 21, 2021
1 parent 2c8dd5c commit fafbf60
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 0 deletions.
14 changes: 14 additions & 0 deletions inc/saiswitch.h
Original file line number Diff line number Diff line change
Expand Up @@ -490,6 +490,20 @@ typedef enum _sai_switch_tunnel_attr_t
*/
SAI_SWITCH_TUNNEL_ATTR_VXLAN_UDP_SPORT,

/**
* @brief Tunnel UDP source port mask
*
* Sport mask defining the number of least significant bits
* reserved for the calculated hash value. 0 means a fixed value.
*
* @type sai_uint8_t
* @flags CREATE_AND_SET
* @isvlan false
* @default 0
* @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_MASK,

/**
* @brief End of attributes
*/
Expand Down
14 changes: 14 additions & 0 deletions inc/saitunnel.h
Original file line number Diff line number Diff line change
Expand Up @@ -614,6 +614,20 @@ typedef enum _sai_tunnel_attr_t
*/
SAI_TUNNEL_ATTR_VXLAN_UDP_SPORT,

/**
* @brief Tunnel UDP source port mask
*
* Sport mask defining the number of least significant bits
* reserved for the calculated hash value. 0 means a fixed value.
*
* @type sai_uint8_t
* @flags CREATE_AND_SET
* @isvlan false
* @default 0
* @validonly SAI_TUNNEL_ATTR_TYPE == SAI_TUNNEL_TYPE_VXLAN and SAI_TUNNEL_ATTR_VXLAN_UDP_SPORT_MODE == SAI_TUNNEL_VXLAN_UDP_SPORT_MODE_USER_DEFINED
*/
SAI_TUNNEL_ATTR_VXLAN_UDP_SPORT_MASK,

/**
* @brief End of attributes
*/
Expand Down

0 comments on commit fafbf60

Please sign in to comment.