Handling E1 connection loss on CU-CP
- it triggers the RRC callback after SCTP SHUTDOWN indication - CUUP entity cleanup at RRC level
This commit is contained in:
committed by
Robert Schmidt
parent
b9bfff3327
commit
45ca753b24
@@ -129,6 +129,9 @@ sctp_assoc_t get_existing_cuup_for_ue(const gNB_RRC_INST *rrc, const gNB_RRC_UE_
|
||||
sctp_assoc_t get_new_cuup_for_ue(const gNB_RRC_INST *rrc, const gNB_RRC_UE_t *ue, int sst, int sd);
|
||||
int rrc_gNB_process_e1_setup_req(sctp_assoc_t assoc_id, e1ap_setup_req_t *req);
|
||||
|
||||
/* Process indication of E1 connection loss on CU-CP */
|
||||
void rrc_gNB_process_e1_lost_connection(gNB_RRC_INST *rrc, e1ap_lost_connection_t *lc, sctp_assoc_t assoc_id);
|
||||
|
||||
void bearer_context_setup_direct(e1ap_bearer_setup_req_t *req,
|
||||
instance_t instance);
|
||||
|
||||
|
||||
@@ -2476,6 +2476,10 @@ void *rrc_gnb_task(void *args_p) {
|
||||
rrc_gNB_process_e1_bearer_context_release_cplt(&E1AP_BEARER_CONTEXT_RELEASE_CPLT(msg_p));
|
||||
break;
|
||||
|
||||
case E1AP_LOST_CONNECTION: /* CUCP */
|
||||
rrc_gNB_process_e1_lost_connection(RC.nrrrc[0], &E1AP_LOST_CONNECTION(msg_p), msg_p->ittiMsgHeader.originInstance);
|
||||
break;
|
||||
|
||||
case NGAP_PAGING_IND:
|
||||
rrc_gNB_process_PAGING_IND(msg_p, instance);
|
||||
break;
|
||||
|
||||
@@ -189,3 +189,28 @@ int rrc_gNB_process_e1_setup_req(sctp_assoc_t assoc_id, e1ap_setup_req_t *req)
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief RRC Processing of the indication of E1 connection loss on CU-CP
|
||||
*/
|
||||
void rrc_gNB_process_e1_lost_connection(gNB_RRC_INST *rrc, e1ap_lost_connection_t *lc, sctp_assoc_t assoc_id)
|
||||
{
|
||||
LOG_I(NR_RRC, "Received E1 connection loss indication on RRC\n");
|
||||
AssertFatal(assoc_id != 0, "illegal assoc_id == 0: should be -1 (monolithic) or >0 (split)\n");
|
||||
nr_rrc_cuup_container_t e = {.assoc_id = assoc_id};
|
||||
nr_rrc_cuup_container_t *cuup = RB_FIND(rrc_cuup_tree, &rrc->cuups, &e);
|
||||
if (cuup == NULL) {
|
||||
LOG_W(NR_RRC, "CU-UP for assoc_id %d not found!\n", assoc_id);
|
||||
return;
|
||||
}
|
||||
if (cuup->setup_req != NULL) {
|
||||
e1ap_setup_req_t *req = cuup->setup_req;
|
||||
LOG_I(NR_RRC, "releasing CU-UP %s on assoc_id %d\n", req->gNB_cu_up_name, assoc_id);
|
||||
free(cuup->setup_req);
|
||||
}
|
||||
nr_rrc_cuup_container_t *removed = RB_REMOVE(rrc_cuup_tree, &rrc->cuups, cuup);
|
||||
// Free relevant CU-UP structures
|
||||
free(cuup);
|
||||
DevAssert(removed != NULL);
|
||||
rrc->num_cuups--;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user