sonic-swss icon indicating copy to clipboard operation
sonic-swss copied to clipboard

[Nbrmgrd] [Neighsyncd] Neighbor Cache for neighbor refresh feature

Open LaveenBrcm opened this issue 2 years ago • 0 comments

What I did

Added neighbor cache in nbrmgrd to handle neighbor refresh

Neighsyncd receives neighbor table events from kernel and adds the neighbor in NEIGH_REFRESH_TABLE.

Nbrmgrd subscribes NEIGH_REFRESH_TABLE events and adds/deletes neighbor entries in neighbor cache.

While adding/updating neighbor entries, current time and the refresh timeout is also stored, which are then used for timeout handling.

Why I did it

Below PR has the details. https://github.com/sonic-net/SONiC/pull/1043

How I verified it

There are no new processing in OA based on this change, hence no update to Syncd/SAI.

Verified with syslogs that the neighbors are added/deleted in Nbrmgrd neighbor cache.

Details if related

This is one part of the change to support neighbor refresh functionality. For the complete list of related Code PRs, please refer to https://github.com/sonic-net/SONiC/pull/1043.

LaveenBrcm avatar Sep 15 '22 08:09 LaveenBrcm