forked from sonic-net/sonic-swss
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[fpmsyncd] Implement pending route suppression feature (sonic-net#2551)
DEPENDS: sonic-net#2512 What I did I implemented support to enable pending routes suppression feature. When this feature is enabled, fpmsyncd will wait for reply from orchagent before sending offload status message to zebra. Why I did it This is done to not announce routes which aren't yet offloaded in HW. How I verified it UT and manual tests.
- Loading branch information
1 parent
a2bd92f
commit 840fe1d
Showing
13 changed files
with
864 additions
and
10 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
#pragma once | ||
|
||
#include <swss/selectable.h> | ||
#include <libnl3/netlink/netlink.h> | ||
|
||
#include "fpm/fpm.h" | ||
|
||
namespace swss | ||
{ | ||
|
||
/** | ||
* @brief FPM zebra communication interface | ||
*/ | ||
class FpmInterface : public Selectable | ||
{ | ||
public: | ||
virtual ~FpmInterface() = default; | ||
|
||
/** | ||
* @brief Send netlink message through FPM socket | ||
* @param msg Netlink message | ||
* @return True on success, otherwise false is returned | ||
*/ | ||
virtual bool send(nlmsghdr* nl_hdr) = 0; | ||
}; | ||
|
||
} |
This file contains 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
This file contains 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
This file contains 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
Oops, something went wrong.