-
Notifications
You must be signed in to change notification settings - Fork 592
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): Converted s6a task files to cpp #14089
fix(agw): Converted s6a task files to cpp #14089
Conversation
Signed-off-by: Ankit Kumar Aman <ankit.aman@radisys.com>
Thanks for opening a PR! 💯
Howto
More infoPlease take a moment to read through the Magma project's
If this is your first Magma PR, also consider reading
|
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.
Minor comments.
Please add in summary why you need to use fd_msg_browse_internal
and make sure that Magma-OAI-Jenkins CI check is passing with this change.
Signed-off-by: VinashakAnkitAman <ankit.aman@radisys.com>
Signed-off-by: VinashakAnkitAman <ankit.aman@radisys.com>
Signed-off-by: VinashakAnkitAman <ankit.aman@radisys.com>
Signed-off-by: VinashakAnkitAman <ankit.aman@radisys.com>
Signed-off-by: VinashakAnkitAman <ankit.aman@radisys.com>
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.
Lgtm, can be merged once @rsarwad approves.
Signed-off-by: VinashakAnkitAman <ankit.aman@radisys.com>
Signed-off-by: VinashakAnkitAman <ankit.aman@radisys.com>
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.
Bazel changes lgtm
Signed-off-by: Ankit Kumar Aman <ankit.aman@radisys.com>
Signed-off-by: Ankit Kumar Aman <ankit.aman@radisys.com>
Signed-off-by: Ankit Kumar Aman <ankit.aman@radisys.com>
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.
LGTM
* fix(agw): Converted s6a task files to cpp Signed-off-by: Ankit Kumar Aman <ankit.aman@radisys.com>
Title
fix(agw): Converted s6a task files to cpp [Extension to Github Issue: #13096]
Summary
Migrated all the files related to s6a task in the folders
magma/lte/gateway/c/core/oai/tasks/s6a/
andmagma/lte/gateway/c/core/oai/include/
tocpp/hpp
and fixed all the compilation errors and warnings.Note: The function
fd_msg_browse()
is a macro function expanding tofd_msg_browse_internal()
in the file/usr/local/include/freeDiameter/libfdproto.h
, which passes the 3rd argument of function by casting to (void *), but received as (msg_or_avp **). This is failing with c++ explicit typecasting validation. To fix this all thefd_msg_browse()
calls have been shifted tofd_msg_browse_internal()
function calls to avoid intermediate type conversion by the macro and the 3rd argument is now passed as typecasted value to (msg_or_avp **)For reference: https://github.com/Metaswitch/freeDiameter/blob/master/include/freeDiameter/libfdproto.h#:~:text=int%20fd_msg_browse_internal%20(%20msg_or_avp,*)(found)%2C%20(depth)%20)
Also followed the guidelines for order of headers from https://google.github.io/styleguide/cppguide.html#Names_and_Order_of_Includes
Test plan
Verified compilation with following:
make clean; make build_oai;
make clean; make test_oai;
make clean; make test_oai BUILD_TYPE=Debug OAI_TESTS=test_amf_app
make clean; bazel build --config=production //lte/gateway/c/core:agw_of
make clean; bazel test //lte/gateway/c/core/oai/test/amf:amf_stateless_test
make clean; make FEATURES=mme_oai build_oai
make clean; export FEATURES=mme_oai; make build_oai
Verified with sanity and in CI
Note: After using
FEATURES=mme_oai;
flag, make test_oai started failing in spgw module with undefined reference to some config functions. Needed to exit out from the VM and re-login to fix the issue.Signed-off-by: VinashakAnkitAman ankit.aman@radisys.com