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

Fixes for timer expiry for stateless mme #1957

Conversation

rsarwad
Copy link
Contributor

@rsarwad rsarwad commented Jul 15, 2020

Description:
Issue #1 : While testing the Implicit detach timer with MME restart observed that UE contexts were not updated to redis DB. Because on timer expiry, imsi64 was neither received from timer module nor got from the handler function. So imsi64 was set to "INVALID_IMSI64". Only for valid imsi64 values, UE contexts are updated to DB.

Approach followed to address above issue:

  1. Modified code to get imsi64 for all timers on expiry.

Issue #2: The prototype of timer start function is int timer_setup(
uint32_t interval_sec, uint32_t interval_us, task_id_t task_id,
int32_t instance, timer_type_t type, void* timer_arg, size_t arg_size,
long* timer_id)
Which expects seconds and micro-seconds to be of datatype uint32_t, but for most timers while calling timer_setup, seconds and micro-seconds were defined as long

  1. Modified the datatype of duration of all timers to to match prototype of timer start function.

Test Plan:
Executed s1ap tester sanity test suite

Fixed the memory leaks for mme_app timers
…enb_s1ap_id_same_ue.py

2. With this fix basic attach-detach test case is passing on enabling stateles MME
…fferent_enb_s1ap_id_same_ue.py"

This reverts commit f6658a0.
@119Vik
Copy link
Contributor

119Vik commented Jul 25, 2020

Can one of the admins verify this patch?

@ulaskozat
Copy link
Contributor

during commit, have you included "-s" option for sign off? check out https://github.com/magma/community/blob/main/CONTRIBUTING.md

@ulaskozat
Copy link
Contributor

In the summary, could you put more context, e.g., why the change is done in addition to what the change is?

Copy link
Contributor

@ulaskozat ulaskozat left a comment

Choose a reason for hiding this comment

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

The code changes look good to me, but summary and sign off should be taken care of.

Signed-off-by: rashmi <rashmi.sarwad@radisys.com>
@rsarwad rsarwad force-pushed the rsarwad_fixes_for_timer_expiry_for_stateless branch from 94b2940 to de026d0 Compare July 28, 2020 13:26
…_timer_expiry_for_stateless

Signed-off-by: rashmi <rashmi.sarwad@radisys.com>
@rsarwad rsarwad closed this Aug 3, 2020
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.

None yet

5 participants