Static L2 forwarding: per-VLAN mac_learning, BUM flood control, static FDB#4780
Open
AnantKishorSharma wants to merge 3 commits into
Open
Static L2 forwarding: per-VLAN mac_learning, BUM flood control, static FDB#4780AnantKishorSharma wants to merge 3 commits into
AnantKishorSharma wants to merge 3 commits into
Conversation
Signed-off-by: Anant Kishor Sharma <anant.kishor-sharma@hpe.com>
Signed-off-by: Anant Kishor Sharma <anant.kishor-sharma@hpe.com>
|
Azure Pipelines: There may be pipelines that require an authorized user to comment /azp run to run. |
Collaborator
|
/azp run |
|
Azure Pipelines: Successfully started running 1 pipeline(s). |
AnantKishorSharma
marked this pull request as ready for review
July 22, 2026 10:07
|
Azure Pipelines: There may be pipelines that require an authorized user to comment /azp run to run. |
Signed-off-by: Anant Kishor Sharma <anant.kishor-sharma@hpe.com>
AnantKishorSharma
force-pushed
the
static-l2-fwd
branch
from
July 23, 2026 05:07
72a6471 to
d00b7a6
Compare
Collaborator
|
/azp run |
|
Azure Pipelines: Successfully started running 1 pipeline(s). |
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.
What I did
Config-driven static L2 forwarding — wires three independent, per-VLAN, SAI-backed
sub-features from CONFIG_DB to the ASIC, each defaulting to today's behavior (no
functional change unless configured). Kept as three commits, one per sub-feature:
SAI_VLAN_ATTR_LEARN_DISABLESAI_VLAN_ATTR_{UNKNOWN_UNICAST,UNKNOWN_MULTICAST,BROADCAST}_FLOOD_CONTROL_TYPE = NONEvlanmgrconsumes the reservedFDBtable → APPLFDB_TABLE(type=static);FdbOrchalready programsSAI_FDB_ENTRY_TYPE_STATIC(unchanged).Why I did it
None of these per-VLAN behaviors is configurable today (learning is per-bridge-port only;
per-VLAN flood control is set only internally by proxy_arp / VXLAN-EVPN; the CONFIG_DB
FDBtable is reserved but has no consumer). The SAI attributes already exist, so the gap is the
CONFIG_DB schema + config→APPL plumbing. HLD: sonic-net/SONiC#2468.
How I verified it
tests/mock_tests/portsorch_ut.cpp) + VS (tests/test_vlan.py,tests/test_fdb.py) tests.config apply-patch/gNMI → CONFIG_DB → APPL → ASIC verified forLEARN_DISABLE=true, the three*_FLOOD_CONTROL_TYPE=NONE, andSAI_FDB_ENTRY_TYPE_STATIC;plus L2 traffic (broadcast not flooded when disabled; unknown-unicast dropped without an
entry, forwarded once a static FDB entry exists).
Details if related
Needs YANG sonic-net/sonic-buildimage#28545 and the
config macCLI sonic-net/sonic-utilities#4713.Feature request: sonic-net/sonic-buildimage#28539.