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

fix(agw): Modified code at s1ap to remove dependency on common state manager class #14116

Merged
merged 129 commits into from
Oct 28, 2022

Conversation

rsarwad
Copy link
Contributor

@rsarwad rsarwad commented Oct 10, 2022

Summary

fix(agw): Modified code at s1ap to remove dependency on common state manager class
In this PR, new class StateUtility is added that contains common state variables and function which shall be used across various tasks like s1ap, mme_app and spgw task
This PR partially addresses the issue, #11192

Test Plan

Executed s1ap sanity test suite and unit test cases

Signed-off-by: Rashmi <rashmi.sarwad@radisys.com>
…tion_10869

Signed-off-by: Rashmi <rashmi.sarwad@radisys.com>
Signed-off-by: Rashmi <rashmi.sarwad@radisys.com>
Signed-off-by: Rashmi <rashmi.sarwad@radisys.com>
…_c_to_cpp

Signed-off-by: Rashmi <rashmi.sarwad@radisys.com>
Signed-off-by: Rashmi <rashmi.sarwad@radisys.com>
…tion_10869

Signed-off-by: Rashmi <rashmi.sarwad@radisys.com>
Signed-off-by: Rashmi <rashmi.sarwad@radisys.com>
Signed-off-by: Rashmi <rashmi.sarwad@radisys.com>
Signed-off-by: Rashmi <rashmi.sarwad@radisys.com>
…_c_to_cpp

Signed-off-by: Rashmi <rashmi.sarwad@radisys.com>
…ad/magma into rsarwad_s1ap_integrate_proto_map

Signed-off-by: Rashmi <rashmi.sarwad@radisys.com>
Signed-off-by: Rashmi <rashmi.sarwad@radisys.com>
Signed-off-by: Rashmi <rashmi.sarwad@radisys.com>
Signed-off-by: Rashmi <rashmi.sarwad@radisys.com>
Signed-off-by: Rashmi <rashmi.sarwad@radisys.com>
…ad/magma into rsarwad_s1ap_integrate_proto_map

Signed-off-by: Rashmi <rashmi.sarwad@radisys.com>
Signed-off-by: Rashmi <rashmi.sarwad@radisys.com>
…_c_to_cpp

Signed-off-by: Rashmi <rashmi.sarwad@radisys.com>
Signed-off-by: Rashmi <rashmi.sarwad@radisys.com>
Signed-off-by: Rashmi <rashmi.sarwad@radisys.com>
Signed-off-by: Rashmi <rashmi.sarwad@radisys.com>
Signed-off-by: Rashmi <rashmi.sarwad@radisys.com>
…tion_10869

Signed-off-by: Rashmi <rashmi.sarwad@radisys.com>
…tion_10869

Signed-off-by: Rashmi <rashmi.sarwad@radisys.com>
…odule

Signed-off-by: Rashmi <rashmi.sarwad@radisys.com>
Signed-off-by: Rashmi <rashmi.sarwad@radisys.com>
…tion_10869

Signed-off-by: Rashmi <rashmi.sarwad@radisys.com>
…ntext

Signed-off-by: Rashmi <rashmi.sarwad@radisys.com>
…agma into rsarwad_move_s1ap_state_ctx

Signed-off-by: Rashmi <rashmi.sarwad@radisys.com>
Signed-off-by: Rashmi <rashmi.sarwad@radisys.com>
Signed-off-by: Rashmi <rashmi.sarwad@radisys.com>
…_state_ctx

Signed-off-by: Rashmi <rashmi.sarwad@radisys.com>
…_state_ctx

Signed-off-by: Rashmi <rashmi.sarwad@radisys.com>
Signed-off-by: Rashmi <rashmi.sarwad@radisys.com>
…manager class

Signed-off-by: Rashmi <rashmi.sarwad@radisys.com>
@rsarwad rsarwad requested review from a team, nstng and ardzoht October 10, 2022 15:33
@pull-request-size pull-request-size bot added the size/L Denotes a Pull Request that changes 100-499 lines. label Oct 10, 2022
@github-actions
Copy link
Contributor

Thanks for opening a PR! 💯

A couple initial guidelines

Howto

  • Reviews. The "Reviewers" listed for this PR are the Magma maintainers who will shepherd it.
  • Checks. All required CI checks must pass before merge.
  • Merge. Once approved and passing CI checks, use the ready2merge label to indicate the maintainers can merge your PR.

More info

Please take a moment to read through the Magma project's

If this is your first Magma PR, also consider reading

@github-actions github-actions bot added the component: agw Access gateway-related issue label Oct 10, 2022
#include "lte/gateway/c/core/oai/common/conversions.h"
#include "lte/gateway/c/core/oai/common/redis_utils/redis_client.hpp"

namespace {
Copy link
Contributor

Choose a reason for hiding this comment

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

[cpplint] reported by reviewdog 🐶
Do not use unnamed namespaces in header files. See https://google-styleguide.googlecode.com/svn/trunk/cppguide.xml#Namespaces for more information. [build/namespaces_headers] [4]

Copy link
Contributor

Choose a reason for hiding this comment

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

@rsarwad Can you fix it, please?

@github-actions
Copy link
Contributor

github-actions bot commented Oct 10, 2022

feg-workflow

    2 files  203 suites   40s ⏱️
374 tests 374 ✔️ 0 💤 0
388 runs  388 ✔️ 0 💤 0

Results for commit 8370bab.

♻️ This comment has been updated with latest results.

@github-actions
Copy link
Contributor

github-actions bot commented Oct 10, 2022

dp-workflow

14 tests   14 ✔️  3m 6s ⏱️
  1 suites    0 💤
  1 files      0

Results for commit 8370bab.

♻️ This comment has been updated with latest results.

@github-actions
Copy link
Contributor

github-actions bot commented Oct 10, 2022

agw-workflow

615 tests   611 ✔️  3m 58s ⏱️
    2 suites      4 💤
    2 files        0

Results for commit 8370bab.

♻️ This comment has been updated with latest results.

@rsarwad rsarwad requested review from ssanadhya and removed request for ardzoht October 11, 2022 06:03
Copy link
Contributor

@nstng nstng left a comment

Choose a reason for hiding this comment

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

bazel changes lgtm

Signed-off-by: Rashmi <rashmi.sarwad@radisys.com>
@@ -129,15 +128,15 @@ TEST_F(S1APStateConverterTest, S1apStateConversionExpectedEnbCount) {
enb_map.map = init_state->mutable_enbs();
// Inserting 1 enb association
enb_map.insert(enb_association.sctp_assoc_id(), enb_association);
// state_to_proto should update num_enbs to match expected eNB count on the
// map
// Write the state info to DB and should update num_enbs to match expected eNB
Copy link
Collaborator

Choose a reason for hiding this comment

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

Suggested change
// Write the state info to DB and should update num_enbs to match expected eNB
// Write the state info to DB and update num_enbs to match expected eNB

Copy link
Collaborator

@ssanadhya ssanadhya left a comment

Choose a reason for hiding this comment

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

LGTM, with minor comment

Signed-off-by: Rashmi <rashmi.sarwad@radisys.com>
Signed-off-by: Rashmi <rashmi.sarwad@radisys.com>
@rsarwad rsarwad merged commit 9419ae6 into magma:master Oct 28, 2022
lucasgonze pushed a commit to lucasgonze/magma that referenced this pull request Feb 29, 2024
…manager class (magma#14116)

fix(agw): Modified code at s1ap to remove dependency on common state manager class
Signed-off-by: Rashmi <rashmi.sarwad@radisys.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component: agw Access gateway-related issue size/L Denotes a Pull Request that changes 100-499 lines.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants