Skip to content

[202012] Use Vlan MAC as src MAC for link prober by default #93#209

Merged
zjswhhh merged 4 commits intosonic-net:202012from
zjswhhh:vlan_mac_202012
Jun 28, 2023
Merged

[202012] Use Vlan MAC as src MAC for link prober by default #93#209
zjswhhh merged 4 commits intosonic-net:202012from
zjswhhh:vlan_mac_202012

Conversation

@zjswhhh
Copy link
Copy Markdown
Collaborator

@zjswhhh zjswhhh commented May 23, 2023

Description of PR

TASK 18434754

Summary:
Fixes # (issue)

Cherry picking #93 into 202012 branch.

sign-off: Jing Zhang zhangjing@microsoft.com

Type of change

  • Bug fix
  • New feature
  • Doc/Design
  • Unit test

Approach

What is the motivation for this PR?

How did you do it?

How did you verify/test it?

Any platform specific information?

Documentation

zjswhhh added 4 commits May 22, 2023 21:38
What is the motivation for this PR?
In active-standby, scenario ICMP request is replied by server host and duplicated by smart cable. In active-active scenario, ICMP is replied by FPGA, and it will simply reverse src MAC and dest MAC. If we continue to use device MAC address as src MAC in active-active scenarios, heartbeats won't be duplicated to both sides.

How did you do it?
Get Vlan MAC address when initializing, and use it for link prober by default.
Add handlers to support switching between using Vlan MAC and ToR MAC.
To use ToR MAC, set src_mac field in MUX_LINKMGR|LINK_PROBER table in CONFIG DB to value ToRMac.
How did you verify/test it?
Tested on dualToR testbeds, captured the ICMP requests and replies:

Able to see src MAC as Vlan MAC by default
Able to see src MAC switch to Device MAC after updating CONFIG DB entry
Able to see replies flood back to both sides.

sign-off: Jing Zhang zhangjing@microsfot.com
@zjswhhh zjswhhh marked this pull request as ready for review May 23, 2023 17:27
@zjswhhh zjswhhh requested review from lguohan, lolyu and yxieca May 23, 2023 17:27
@zjswhhh zjswhhh requested review from ganglyu and qiluo-msft June 8, 2023 23:13
@zjswhhh zjswhhh requested a review from liuh-80 June 16, 2023 22:35
@zjswhhh
Copy link
Copy Markdown
Collaborator Author

zjswhhh commented Jun 23, 2023

@yxieca @lolyu please help review.

@zjswhhh zjswhhh merged commit 3f89fce into sonic-net:202012 Jun 28, 2023
@zjswhhh zjswhhh deleted the vlan_mac_202012 branch June 28, 2023 17:18
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