-
Notifications
You must be signed in to change notification settings - Fork 557
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
[fpmsyncd] Implement pending route suppression feature #2551
Merged
Merged
Changes from all commits
Commits
Show all changes
29 commits
Select commit
Hold shift + click to select a range
ad39a92
[fpmsyncd] record protocol in APPL_DB
stepanblyschak 8521ddf
[fpm] add send netlink message API
stepanblyschak b7a4a52
[fpmsyncd] send offload reply messages
stepanblyschak 51c6f56
[fpmsyncd] implement feedback mechanism
stepanblyschak 728d8f7
[fpmsyncd] support warm restart with responses
stepanblyschak 4c59435
add response channel to select
stepanblyschak 22abcf0
move files
stepanblyschak 4c87474
add more test cases
stepanblyschak e04a3fb
add a define
stepanblyschak 435ca0b
modify mock fpm to work with older gmock
stepanblyschak ae2ec35
change field name
stepanblyschak 75fac9a
fix some review comments
stepanblyschak 2a67069
remove cyclic depdency from RouteSync
stepanblyschak 5c94391
break cycle
stepanblyschak 8926ddd
style
stepanblyschak 277c6ed
add comments
stepanblyschak 41e4747
set NLM_F_REQUEST flag
stepanblyschak 7f902d2
fi
stepanblyschak b38772d
debugh
stepanblyschak beedfcb
Revert "debugh"
stepanblyschak 41165ef
refresh link cache on NEWLINK/DELLINK because in case of Vrf delation…
stepanblyschak 2cb0668
dont set offload flag twice
stepanblyschak c406539
add vs test for offload
stepanblyschak 97d984e
use kernel proto in unit tests
stepanblyschak e87dfb5
add return after receiving newlink/dellink
stepanblyschak 75f55b8
Update test_route.py
stepanblyschak a7db827
Merge branch 'master' of github.com:azure/sonic-swss into fpm-response
stepanblyschak e9dc153
fix typo
stepanblyschak c8d7d0c
send offload flag for all routes when switching from suppression enab…
stepanblyschak File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@stepanblyschak what's the usage for RTM_NETLINK?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I listen for newlink/dellink events to refill link cache - https://github.com/sonic-net/sonic-swss/pull/2551/files#diff-0555c0a4f1e207c410ac8ab7d4a44f48a0925da2ed14c57499a4e9175223be57R607.
E.g, we need link cache to map VRF linux interface name to VRF if_index to pass to FRR. In case VRF linux interface is removed and then re-created with the same name the link cache will have an invalid entry. So I refill the cache on newlink/dellink events.