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
1. config vlan add 40
2. config vlan member add 40 Ethernet0
On the other side.
3. sudo ip link add link enp4s0f0 name enp4s0f0.40 type vlan id 40
4. sudo ip link set enp4s0f0.40 up
5. Make sure a fdb entry is learnt.
root@sonic:/home/admin# fdbshow
No. Vlan MacAddress Port Type
----- ------ ----------------- --------- -------
1 40 7C:FE:90:12:22:EC Ethernet0 Dynamic
6. config vlan member del 40 Ethernet0
7. config vlan del 40
Describe the results you received:
1) Vlan delete couldn't be handled by OA
Apr 18 21:50:31.128148 sonic NOTICE swss#orchagent: :- removeVlan: VLAN Vlan40 still has assiciated FDB entries
2) Subsequently, this impacts Warm-reboot restartcheck.
Apr 18 10:57:41.244710 sonic NOTICE swss#orchagent: :- removeVlan: VLAN Vlan40 still has assiciated FDB entries
Apr 18 10:57:41.244797 sonic NOTICE swss#orchagent: :- warmRestartCheck: VLAN_TABLE:Vlan40|DEL
Apr 18 10:57:41.244825 sonic NOTICE swss#orchagent: :- warmRestartCheck: Restart check result: NOT_READY
Apr 18 10:57:41.244865 sonic NOTICE swss#orchagent_restart_check: :- main: RESTARTCHECK failed, orchagent is not ready for warm restart with status NOT_READY
3) FDB Entry from State DB is not removed. This is also documented here:#7538
4) OA doesn't have the logic to consolidate remove
Internal cache of OA which saves FDB entries use FdbEntry struct which uses the exact mac address as the part of key. To my knowledge, there is no section of the code which handles the consolidate remove and clear the FDB entries accordingly. https://github.com/Azure/sonic-swss/blob/master/orchagent/fdborch.h#L17
6) Individual fdb_counters i.e. m_fdb_count for port and vlan are only decremented when there is a AGED notification and not a FLUSHED notification.
Mellanox SDK doesn't generate a AGED notification when the VLAN is removed, it only generates a FLUSHED notification.
As i understand, Broadcom's SDK does generate a AGED notif in this case and the SONiC code is written in accordance to this behavior. Can someone point me to the spec where this is documented that AGED is appropriate rather that FLUSHED in this scenario? https://github.com/Azure/sonic-swss/blob/master/orchagent/fdborch.cpp#L434
@prsunny@dr412113 We may need to revert the check introduced in this PR sonic-net/sonic-swss#1716 to return failure to remove VLAN with FDB entries until the problems mentioned here are sorted out
Description
Steps to reproduce the issue:
Describe the results you received:
1) Vlan delete couldn't be handled by OA
2) Subsequently, this impacts Warm-reboot restartcheck.
3) FDB Entry from State DB is not removed. This is also documented here: #7538
4) OA doesn't have the logic to consolidate remove
Internal cache of OA which saves FDB entries use FdbEntry struct which uses the exact mac address as the part of key. To my knowledge, there is no section of the code which handles the consolidate remove and clear the FDB entries accordingly.
https://github.com/Azure/sonic-swss/blob/master/orchagent/fdborch.h#L17
5) FdbOrch doesn't have logic to clear internal cache and decrement corresponding fdb counters when the flush recieved from Syncd is for per port and per vlan.
https://github.com/Azure/sonic-swss/blob/master/orchagent/fdborch.cpp#L571
6) Individual fdb_counters i.e. m_fdb_count for port and vlan are only decremented when there is a AGED notification and not a FLUSHED notification.
Mellanox SDK doesn't generate a AGED notification when the VLAN is removed, it only generates a FLUSHED notification.
As i understand, Broadcom's SDK does generate a AGED notif in this case and the SONiC code is written in accordance to this behavior. Can someone point me to the spec where this is documented that AGED is appropriate rather that FLUSHED in this scenario?
https://github.com/Azure/sonic-swss/blob/master/orchagent/fdborch.cpp#L434
7) SAI/SDK notifications/functionality seems to be the expected lines:
The notification received from the SAI is of consolidated type:
https://github.com/opencomputeproject/SAI/blob/master/inc/saifdb.h#L304
Some extra info collected when Eth0 was a part of Vlan40
8) syslog:
Describe the results you expected:
The text was updated successfully, but these errors were encountered: