-
Notifications
You must be signed in to change notification settings - Fork 273
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
FDB notification for static entries #978
Comments
previously that case was handling only LEARNED entries which were dynamic by default, and MOVE was added here #670, i'm assuming that FDB static entries will not generate LEARNED/AGED notification, but probably (not sure here) can generate MOVE notification when something will be changed and then this SAI_FDB_ENTRY_TYPE_DYNAMIC should be STATIC but what exact behavior should be here, i not 100% sure, @lguohan should you help here to brighten situation ? @mdivyamohan did you faced any issues related to this ? if so what scenario ? |
@kcudnik, this is background information: For the ASIC that I am using, the SDK is generating generating LEARNED/AGED notifications for static FDB entries as well. Now in SAI implementation, I am trying to understand what would be the correct way - (1) or (2). (1) Convert all SDK notifications (irrespective of whether entry is static or dynamic) to fdb event and send event to syncd. This causes the problem with static entries, that syncd updates the entry to SAI_FDB_ENTRY_TYPE_DYNAMIC in ASIC DB. To fix this problem,
(2) Assume the expectation is that fdb events should be sent to syncd only for dynamic FDB entries. |
When code was written then assumption was like in 2nd you described, because it seems redundant to send notification when user creates explicitly static entries, compared to dynamic entries when they can be created/remove at any time, hence notification is required. This approach seems logical to me, and so far platforms that im aware like mlnx or brcm, follow the same (although i don't remember if sonic is creating any static entries, or just deal with dynamic one) I think this is a topic for SAI OCP weekly meeting (thursday), will you be able to create SAI issue related to this one in SAI repo, and perhaps join OCP meeting and describe the issue ? |
@kcudnik I have opened a case in OCP SAI - opencomputeproject/SAI#1353 |
Hi,
I wanted to understand what is the expected behaviour from ASIC's SAI implementation related to FDB notification handling for static entries.
In
redisPutFdbEntryToAsicView()
of NotificationProcessor.cpp, entry type is assumed to be 'dynamic'.Does this mean that when a static entry is added or deleted, SAI implementation is expected not to call fdb event callback?
The text was updated successfully, but these errors were encountered: