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

[hash] update GH frontend with IPV6_FLOW_LABEL for ECMP/LAG switch hash configuration #3730

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

ayurkiv-nvda
Copy link
Contributor

What I did

CLI updated with ability to configure generic hash with IPV6_FLOW_LABEL parameter

How I did it

Updated HASH_FIELD_LIST
Updated sonic-utilities tests
Updated doc file

How to verify it

root@sonic:/home/admin# config switch-hash global ecmp-hash IPV6_FLOW_LABEL
root@sonic:/home/admin# config switch-hash global lag-hash IPV6_FLOW_LABEL
root@sonic:/home/admin# show switch-hash global
+--------+-----------------------------------+
| Hash   | Configuration                     |
+========+===================================+
| ECMP   | +-----------------+-------------+ |
|        | | Hash Field      | Algorithm   | |
|        | |-----------------+-------------| |
|        | | IPV6_FLOW_LABEL | CRC         | |
|        | +-----------------+-------------+ |
+--------+-----------------------------------+
| LAG    | +-----------------+-------------+ |
|        | | Hash Field      | Algorithm   | |
|        | |-----------------+-------------| |
|        | | IPV6_FLOW_LABEL | XOR         | |
|        | +-----------------+-------------+ |
+--------+-----------------------------------+

root@sonic:/home/admin# show switch-hash capabilities
+--------+-------------------------------------+
| Hash   | Capabilities                        |
+========+=====================================+
| ECMP   | +-------------------+-------------+ |
|        | | Hash Field        | Algorithm   | |
|        | |-------------------+-------------| |
|        | | SRC_IP            | CRC         | |
|        | | DST_IP            | XOR         | |
|        | | INNER_SRC_IP      | RANDOM      | |
|        | | INNER_DST_IP      | CRC_CCITT   | |
|        | | VLAN_ID           |             | |
|        | | IP_PROTOCOL       |             | |
|        | | ETHERTYPE         |             | |
|        | | L4_SRC_PORT       |             | |
|        | | L4_DST_PORT       |             | |
|        | | SRC_MAC           |             | |
|        | | DST_MAC           |             | |
|        | | IN_PORT           |             | |
|        | | INNER_IP_PROTOCOL |             | |
|        | | INNER_ETHERTYPE   |             | |
|        | | INNER_L4_SRC_PORT |             | |
|        | | INNER_L4_DST_PORT |             | |
|        | | INNER_SRC_MAC     |             | |
|        | | INNER_DST_MAC     |             | |
|        | | IPV6_FLOW_LABEL   |             | |
|        | +-------------------+-------------+ |
+--------+-------------------------------------+
| LAG    | +-------------------+-------------+ |
|        | | Hash Field        | Algorithm   | |
|        | |-------------------+-------------| |
|        | | SRC_IP            | CRC         | |
|        | | DST_IP            | XOR         | |
|        | | INNER_SRC_IP      | RANDOM      | |
|        | | INNER_DST_IP      | CRC_CCITT   | |
|        | | VLAN_ID           |             | |
|        | | IP_PROTOCOL       |             | |
|        | | ETHERTYPE         |             | |
|        | | L4_SRC_PORT       |             | |
|        | | L4_DST_PORT       |             | |
|        | | SRC_MAC           |             | |
|        | | DST_MAC           |             | |
|        | | IN_PORT           |             | |
|        | | INNER_IP_PROTOCOL |             | |
|        | | INNER_ETHERTYPE   |             | |
|        | | INNER_L4_SRC_PORT |             | |
|        | | INNER_L4_DST_PORT |             | |
|        | | INNER_SRC_MAC     |             | |
|        | | INNER_DST_MAC     |             | |
|        | | IPV6_FLOW_LABEL   |             | |
|        | +-------------------+-------------+ |
+--------+-------------------------------------+

Previous command output (if the output of a command-line utility has changed)

New command output (if the output of a command-line utility has changed)

…sh configuration

Signed-off-by: Andriy Yurkiv <ayurkiv@nvidia.com>
@mssonicbld
Copy link
Collaborator

/azp run

Copy link

Azure Pipelines successfully started running 1 pipeline(s).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants