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

When Bridge port is deleted treat L2 call back event AGED as FLUSH #2623

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

prasanna-cls
Copy link
Contributor

What I did
When a L2 aged call back 'SAI_FDB_EVENT_AGED'  is received after the underlying Bridgeport is deleted, then treat it as 'SAI_FDB_EVENT_FLUSHED' 

Why I did it
For the scenario explained in the issue #2254 , the fix made does not handle it for the broadcom based platforms.
Broadcom based platforms, does not support "SAI_FDB_EVENT_FLUSHED" event and only "SAI_FDB_EVENT_AGED" is posted instead. Hence when a L2 call back routine is received as AGED event after the underlying bridge port is deleted, then to clean-up the internal cache . its treated as SAI_FDB_EVENT_FLUSHED.

How I verified it
In broadcom based platforms) create vlan say 100b) associate interface say Ethernet0 with vlan 100c) Learn about 100 dynamic macs on Ethernet0,vlan100d) remove Ethernet0, vlan100 membership) remove vlan 100
Without fix, step 'e' will fail , as the internal cache would not be deleted. With Fix, it will be deleted successfully from the Application DB. 

Which release branch to backport (provide reason below if selected)

  • 201811
  • 201911
  • 202006
  • 202012
  • 202106
  • 202111
  • 202205

Description for the changelog

Treat AGED event as FLUSH when bridge port is deleted for broadcom based platforms.

…port will be bulk flushed.

When SAI sends the notification to orchagent, some Platforms like Broadcom, sends them as Aged event instead
of FLUSH event.
if the bridge port is already deleted, to clean up the stale entries,
consider the age event as FLUSH event.
@prasanna-cls prasanna-cls requested a review from prsunny as a code owner January 18, 2023 05:30
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.

1 participant