You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Use Vlan MAC as src MAC for link prober by default (#93)
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 [email protected]
0 commit comments