Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add switch attributes for hash offset configuration. #1195

Merged
merged 5 commits into from
Mar 18, 2021
Merged
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
24 changes: 24 additions & 0 deletions inc/saiswitch.h
Original file line number Diff line number Diff line change
Expand Up @@ -1166,6 +1166,18 @@ typedef enum _sai_switch_attr_t
*/
SAI_SWITCH_ATTR_ECMP_DEFAULT_HASH_SEED,

/**
* @brief SAI ECMP default hash offset
*
* When set, the output of the ECMP hash calculation will be rotated right
* by the specified number of bits.
*
* @type sai_uint8_t
* @flags CREATE_AND_SET
* @default 0
*/
SAI_SWITCH_ATTR_ECMP_DEFAULT_HASH_OFFSET,
mikeberesford marked this conversation as resolved.
Show resolved Hide resolved

/**
* @brief SAI ECMP default symmetric hash
*
Expand Down Expand Up @@ -1231,6 +1243,18 @@ typedef enum _sai_switch_attr_t
*/
SAI_SWITCH_ATTR_LAG_DEFAULT_HASH_SEED,

/**
* @brief SAI LAG default hash offset
*
* When set, the output of the LAG hash calculation will be rotated right
* by the specified number of bits.
*
* @type sai_uint8_t
* @flags CREATE_AND_SET
* @default 0
*/
SAI_SWITCH_ATTR_LAG_DEFAULT_HASH_OFFSET,
mikeberesford marked this conversation as resolved.
Show resolved Hide resolved

/**
* @brief SAI LAG default symmetric hash
*
Expand Down