Skip to content

Commit 1c6dd8c

Browse files
frankistandrepuschmann
authored andcommitted
delete erab if gtpu tunnel creation failed
1 parent e27ba38 commit 1c6dd8c

File tree

3 files changed

+3
-1
lines changed

3 files changed

+3
-1
lines changed

srsenb/src/stack/rrc/rrc_bearer_cfg.cc

+1-1
Original file line numberDiff line numberDiff line change
@@ -417,7 +417,7 @@ void bearer_cfg_handler::rem_gtpu_bearer(uint32_t erab_id)
417417
{
418418
auto it = erabs.find(erab_id);
419419
if (it == erabs.end()) {
420-
logger->error("Removing erab_id=%d from GTPU", erab_id);
420+
logger->warning("Removing erab_id=%d from GTPU", erab_id);
421421
return;
422422
}
423423
gtpu->rem_bearer(rnti, it->second.lcid);

srsenb/src/stack/rrc/rrc_mobility.cc

+1
Original file line numberDiff line numberDiff line change
@@ -925,6 +925,7 @@ bool rrc::ue::rrc_mobility::apply_ho_prep_cfg(const ho_prep_info_r8_ies_s&
925925
erabs_failed_to_setup.back().erab_id = erab.erab_id;
926926
erabs_failed_to_setup.back().cause.set_transport().value =
927927
asn1::s1ap::cause_transport_opts::transport_res_unavailable;
928+
rrc_ue->bearer_list.release_erab(erab.erab_id);
928929
continue;
929930
}
930931
}

srsenb/src/stack/rrc/rrc_ue.cc

+1
Original file line numberDiff line numberDiff line change
@@ -1092,6 +1092,7 @@ int rrc::ue::setup_erab(uint16_t erab_
10921092
}
10931093
if (bearer_list.add_gtpu_bearer(erab_id) != SRSRAN_SUCCESS) {
10941094
cause.set_radio_network().value = asn1::s1ap::cause_radio_network_opts::radio_res_not_available;
1095+
bearer_list.release_erab(erab_id);
10951096
return SRSRAN_ERROR;
10961097
}
10971098
return SRSRAN_SUCCESS;

0 commit comments

Comments
 (0)