clear sgw s1u path if delete session response is received

This commit is contained in:
Sukchan Lee 2018-02-09 16:26:55 +09:00
parent f904b63053
commit 382c52a481
3 changed files with 9 additions and 1 deletions

View File

@ -385,6 +385,13 @@ struct _mme_ue_t {
#define MME_HAVE_SGW_S1U_PATH(__sESS) \
((__sESS) && (mme_bearer_first(__sESS)) && \
((mme_default_bearer_in_sess(__sESS)->sgw_s1u_teid)))
#define CLEAR_SGW_S1U_PATH(__sESS) \
do { \
mme_bearer_t *__bEARER = NULL; \
d_assert((__sESS), break, "Null param"); \
__bEARER = mme_default_bearer_in_sess(__sESS); \
__bEARER->sgw_s1u_teid = 0; \
} while(0)
#define SESSION_CONTEXT_IS_AVAILABLE(__mME) \
((__mME) && ((__mME)->sgw_s11_teid))

View File

@ -210,6 +210,7 @@ void mme_s11_handle_delete_session_response(
*
* Session will be removed
* if Deactivate bearer context accept is received */
CLEAR_SGW_S1U_PATH(sess);
return;
}
else

View File

@ -519,7 +519,7 @@ status_t s1ap_build_e_rab_release_command(pkbuf_t **s1apbuf,
subscription_data = &mme_ue->subscription_data;
d_assert(subscription_data, return CORE_ERROR, "Null param");
d_trace(3, "[MME] E-RAB release request\n");
d_trace(3, "[MME] E-RAB release command\n");
d_trace(5, " ENB_UE_S1AP_ID[%d] MME_UE_S1AP_ID[%d]\n",
enb_ue->enb_ue_s1ap_id, enb_ue->mme_ue_s1ap_id);