-
Notifications
You must be signed in to change notification settings - Fork 689
EVPN VxLAN enhancement to support P2MP tunnel based programming for Layer2 extension #1858
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
Merged
Merged
Changes from 12 commits
Commits
Show all changes
16 commits
Select commit
Hold shift + click to select a range
d9e23ad
Vxlan evpn p2mp changes for Layer2 functionality
dgsudharsan 3b6620b
Fixing compilation
dgsudharsan 979860f
Added referencing logic
dgsudharsan c458dba
Addressing code review comments
dgsudharsan 67ca9cc
Addressing code review comments
dgsudharsan 6cc06ec
Merge branch 'master' of github.com:Azure/sonic-swss into vxlan_evpn_…
dgsudharsan beeb58a
Fixing lgtm
dgsudharsan 04858de
Addressing code review comments
dgsudharsan e2061ec
Addressing code review comments
dgsudharsan d0c92ef
Merge branch 'master' of github.com:Azure/sonic-swss into HEAD
dgsudharsan 9e07e78
Fixing test issues and flaky tests
dgsudharsan a74eb57
Merge remote-tracking branch 'upstream/master' into vxlan_evpn_p2mp
dgsudharsan ffbf06a
Addressing code review comments
dgsudharsan c750f17
Cosmetic cleanups
dgsudharsan dd9781a
Merge branch 'master' of github.com:Azure/sonic-swss into vxlan_evpn_…
dgsudharsan c0631dc
Updating tests
dgsudharsan 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 hidden or 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 hidden or 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 |
|---|---|---|
|
|
@@ -46,6 +46,7 @@ sai_object_id_t gUnderlayIfId; | |
| sai_object_id_t gSwitchId = SAI_NULL_OBJECT_ID; | ||
| MacAddress gMacAddress; | ||
| MacAddress gVxlanMacAddress; | ||
| bool gP2PTunnelSupported; | ||
|
|
||
| extern size_t gMaxBulkSize; | ||
|
|
||
|
|
@@ -643,6 +644,32 @@ int main(int argc, char **argv) | |
| orchDaemon = make_shared<FabricOrchDaemon>(&appl_db, &config_db, &state_db, chassis_app_db.get()); | ||
| } | ||
|
|
||
| uint32_t max_tunnel_modes = 2; | ||
|
||
| vector<int32_t> tunnel_peer_modes(max_tunnel_modes, 0); | ||
| sai_s32_list_t values; | ||
| values.count = max_tunnel_modes; | ||
| values.list = tunnel_peer_modes.data(); | ||
|
|
||
| status = sai_query_attribute_enum_values_capability(gSwitchId, SAI_OBJECT_TYPE_TUNNEL, | ||
| SAI_TUNNEL_ATTR_PEER_MODE, &values); | ||
| if (status != SAI_STATUS_SUCCESS) | ||
| { | ||
| SWSS_LOG_WARN("Unable to get supported tunnel peer modes. Defaulting to P2P"); | ||
| gP2PTunnelSupported = true; | ||
| } | ||
| else | ||
| { | ||
| gP2PTunnelSupported = false; | ||
| for (uint32_t idx = 0; idx < values.count; idx++) | ||
| { | ||
| if (values.list[idx] == SAI_TUNNEL_PEER_MODE_P2P) | ||
| { | ||
| gP2PTunnelSupported = true; | ||
| break; | ||
| } | ||
| } | ||
| } | ||
|
|
||
| if (!orchDaemon->init()) | ||
| { | ||
| SWSS_LOG_ERROR("Failed to initialize orchestration daemon"); | ||
|
|
||
This file contains hidden or 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 hidden or 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.
Is this an intentional change ? By not removing this line the message will continue to remain in the m_tosync queue and be processed infinitely.
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.
That's a good catch. It got removed during a merge conflict. I have added it back.