Skip to content
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

[202211][ppi]: Implement port bulk comparison logic (#2564) #2821

Merged
merged 6 commits into from
Jul 23, 2023

Conversation

nazariig
Copy link
Collaborator

@nazariig nazariig commented Jun 14, 2023

Signed-off-by: Nazarii Hnydyn [email protected]

DEPENDS:

  1. [ppi]: Enable bulk API sonic-sairedis#1171
  2. [syncd]: Enable port bulk API sonic-sairedis#1197
  3. [subinterface] Fix admin state handling #2806

HLD: sonic-net/SONiC#1084

What I did

  • Implemented port bulk add/remove comparison logic
  • Refactored Port OA to facilitate port config operations

Why I did it

  • To improve switch Fast Boot startup time

How I verified it

  • UT tests
  • VS tests

Details if related

@nazariig
Copy link
Collaborator Author

/azpw run

@mssonicbld
Copy link
Collaborator

/AzurePipelines run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@nazariig
Copy link
Collaborator Author

/azpw run

@mssonicbld
Copy link
Collaborator

/AzurePipelines run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@nazariig
Copy link
Collaborator Author

/azpw run

@mssonicbld
Copy link
Collaborator

/AzurePipelines run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@nazariig nazariig marked this pull request as ready for review June 16, 2023 11:57
@nazariig nazariig requested a review from prsunny as a code owner June 16, 2023 11:57
@nazariig
Copy link
Collaborator Author

/azpw run

@mssonicbld
Copy link
Collaborator

/AzurePipelines run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@liat-grozovik
Copy link
Collaborator

@saiarcot895 as this is backport for a PR you approved on master, can you please review this as well?

@liat-grozovik
Copy link
Collaborator

/azp run Azure.sonic-swss

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@nazariig
Copy link
Collaborator Author

/azpw run

@mssonicbld
Copy link
Collaborator

/AzurePipelines run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@nazariig
Copy link
Collaborator Author

/azpw run

@mssonicbld
Copy link
Collaborator

/AzurePipelines run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@liat-grozovik
Copy link
Collaborator

/azp run Azure.sonic-swss

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@mssonicbld
Copy link
Collaborator

/AzurePipelines run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@@ -12,6 +12,9 @@
#include "pfcactionhandler.h"
#include <sys/mman.h>
#undef private
#define private public
#include "warm_restart.h"
#undef private
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Rather than doing this hack, can friendship declarations be used instead?

Copy link
Contributor

@saiarcot895 saiarcot895 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approved with a comment.

qiluo-msft pushed a commit that referenced this pull request Jul 12, 2023
…late. (#2843)

**What I did**
* Increase robustness of `CodeQL`: use only dependencies with the relevant versions

**Why I did it**
* To fix `CodeQL` compilation failures

**How I verified it**
1. Make a PR
2. Do a push

**Details if related**
* Backport from `master`: #2845
* Resolves checker issue: #2821
* Takes effect only after PR is merged
@nazariig
Copy link
Collaborator Author

/azpw run

@mssonicbld
Copy link
Collaborator

/AzurePipelines run

@azure-pipelines
Copy link

No commit pushedDate could be found for PR 2821 in repo sonic-net/sonic-swss

@nazariig
Copy link
Collaborator Author

/azpw run

@mssonicbld
Copy link
Collaborator

/AzurePipelines run

@azure-pipelines
Copy link

No commit pushedDate could be found for PR 2821 in repo sonic-net/sonic-swss

Copy link
Contributor

@prgeor prgeor left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM.
@nazariig @liat-grozovik please attach the test results for the manual test done to verify AN/LT,FEC, port breakout

@nazariig
Copy link
Collaborator Author

/azpw run

@mssonicbld
Copy link
Collaborator

/AzurePipelines run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@liat-grozovik
Copy link
Collaborator

/azp run EasyCLA

@azure-pipelines
Copy link

No commit pushedDate could be found for PR 2821 in repo sonic-net/sonic-swss

@liat-grozovik liat-grozovik merged commit 6ec611d into sonic-net:202211 Jul 23, 2023
13 checks passed
@liat-grozovik liat-grozovik changed the title [202211][ppi]: Implement port bulk comparison logic [202211][ppi]: Implement port bulk comparison logic (#2564) Jul 23, 2023
StormLiangMS pushed a commit that referenced this pull request Sep 25, 2023
DEPENDS:

[202211][ppi]: Implement port bulk comparison logic (#2564)  #2821
HLD: sonic-net/SONiC#1084

What I did

Removed unused code
Why I did it

To complete code cleanup
How I verified it

UT tests
VS tests
Details if related

Backport from master: [ppi]: General code cleanup: remove unused methods #2867
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants