[Accton][minipack3bta] Disable src-mac==dst-mac drop for L3 loopback fwd test#1392
Open
jeankuo wants to merge 1 commit into
Open
[Accton][minipack3bta] Disable src-mac==dst-mac drop for L3 loopback fwd test#1392jeankuo wants to merge 1 commit into
jeankuo wants to merge 1 commit into
Conversation
…fwd test AgentL3ForwardingTest.ttl255 injects a packet whose src MAC == dst MAC (both the interface/router MAC) out of a port, relies on loopback to re-ingress on a front panel port, and expects it to be L3-routed. On BCM78920 the front-port ingress drops a frame whose src MAC == dst MAC before routing, so the egress port never sees the packet and the test fails. Set sai_disable_srcmacqedstmac_ctrl: 0x1 in the minipack3bta agent config global section to disable this drop, allowing the loopback forwarding test to pass. Verified on-box: the same packet with a different src MAC routes and egresses correctly.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Pre-submission checklist
pip install -r requirements-dev.txt && pre-commit installpre-commit runSummary
AgentL3ForwardingTest.ttl255injects a packet whose src MAC == dst MAC (the interface/router MAC) out of a port, relies on loopback to re-ingress on a front panel port, and expects it to be L3-routed to the next hop. On BCM78920 (minipack3bta) the front-port ingress drops a frame whose src MAC == dst MAC before routing, so the egress port never counts the packet and the test fails.This sets
sai_disable_srcmacqedstmac_ctrl: 0x1in the minipack3bta agent configbcm_device:0:globalsection to disable that drop.Test Plan
On-box (BCM78920 / SAI_15_4_EA_ODP): the
ttl255packet (src == dst MAC) injected via diagtxwith port loopback is dropped at ingress (RDBGC_0) and not routed; the same packet with a different src MAC routes and egresses correctly. With this config the drop is disabled so the loopback-based forwarding test can route.AgentL3ForwardingTest.ttl255_20260717_184821.zip