Commit 04a1acf3 authored by Guido Casati's avatar Guido Casati

PDCP: rename add_drb to nr_pdcp_add_drb

parent 0348aa08
...@@ -325,7 +325,7 @@ The PDCP implementation is secured by a general mutex, akin to the design of the ...@@ -325,7 +325,7 @@ The PDCP implementation is secured by a general mutex, akin to the design of the
Initialization of the PDCP layer follows a structure similar to that of the RLC layer. The function `nr_pdcp_layer_init()` initializes PDCP, while a second initialization function, `pdcp_module_init()`, must also be invoked. Initialization of the PDCP layer follows a structure similar to that of the RLC layer. The function `nr_pdcp_layer_init()` initializes PDCP, while a second initialization function, `pdcp_module_init()`, must also be invoked.
To manage UE connections, `nr_pdcp_add_srbs()` is employed for adding UE SRBs in PDCP, while `nr_pdcp_remove_UE()` is used for their removal. Similarly, `add_drb()` adds UE DRB in PDCP, with `nr_pdcp_remove_UE()` handling their removal. To manage UE connections, `nr_pdcp_add_srbs()` is employed for adding UE SRBs in PDCP, while `nr_pdcp_remove_UE()` is used for their removal. Similarly, `nr_pdcp_add_drb()` adds UE DRB in PDCP, with `nr_pdcp_remove_UE()` handling their removal.
## PDCP Tx flow ## PDCP Tx flow
......
...@@ -155,7 +155,7 @@ static void e1_add_bearers(const int ue_id, const NR_DRB_ToAddModList_t *addMod, ...@@ -155,7 +155,7 @@ static void e1_add_bearers(const int ue_id, const NR_DRB_ToAddModList_t *addMod,
// add SDAP entity // add SDAP entity
new_nr_sdap_entity(GNB_FLAG_YES, ue_id, sdap); new_nr_sdap_entity(GNB_FLAG_YES, ue_id, sdap);
// add PDCP entity // add PDCP entity
add_drb(GNB_FLAG_YES, ue_id, drb->pdcp_Config, &sdap, sp); nr_pdcp_add_drb(GNB_FLAG_YES, ue_id, drb->pdcp_Config, &sdap, sp);
} }
} }
......
...@@ -575,11 +575,11 @@ void add_srb(int is_gnb, ...@@ -575,11 +575,11 @@ void add_srb(int is_gnb,
nr_pdcp_manager_unlock(nr_pdcp_ue_manager); nr_pdcp_manager_unlock(nr_pdcp_ue_manager);
} }
void add_drb(int is_gnb, void nr_pdcp_add_drb(int is_gnb,
const ue_id_t UEid, const ue_id_t UEid,
const NR_PDCP_Config_t *pdcp, const NR_PDCP_Config_t *pdcp,
sdap_config_t *sdap, const sdap_config_t *sdap,
const nr_pdcp_entity_security_keys_and_algos_t *security_parameters) const nr_pdcp_entity_security_keys_and_algos_t *security_parameters)
{ {
nr_pdcp_ue_t *ue; nr_pdcp_ue_t *ue;
......
...@@ -48,11 +48,11 @@ void nr_pdcp_add_srbs(eNB_flag_t enb_flag, ...@@ -48,11 +48,11 @@ void nr_pdcp_add_srbs(eNB_flag_t enb_flag,
NR_SRB_ToAddModList_t *const srb2add_list, NR_SRB_ToAddModList_t *const srb2add_list,
const nr_pdcp_entity_security_keys_and_algos_t *security_parameters); const nr_pdcp_entity_security_keys_and_algos_t *security_parameters);
void add_drb(int is_gnb, void nr_pdcp_add_drb(int is_gnb,
const ue_id_t UEid, const ue_id_t UEid,
const NR_PDCP_Config_t *pdcp, const NR_PDCP_Config_t *pdcp,
struct sdap_configuration_s *sdap, const struct sdap_configuration_s *sdap,
const nr_pdcp_entity_security_keys_and_algos_t *security_parameters); const nr_pdcp_entity_security_keys_and_algos_t *security_parameters);
void nr_pdcp_remove_UE(ue_id_t ue_id); void nr_pdcp_remove_UE(ue_id_t ue_id);
void nr_pdcp_reestablishment(ue_id_t ue_id, void nr_pdcp_reestablishment(ue_id_t ue_id,
......
...@@ -179,7 +179,7 @@ static void rrc_nsa_add_drb(const int ue_id, ...@@ -179,7 +179,7 @@ static void rrc_nsa_add_drb(const int ue_id,
// add SDAP entity (terminated at gNB, since it's EPC) // add SDAP entity (terminated at gNB, since it's EPC)
new_nr_sdap_entity(GNB_FLAG_YES, ue_id, sdap); new_nr_sdap_entity(GNB_FLAG_YES, ue_id, sdap);
// add PDCP entity // add PDCP entity
add_drb(GNB_FLAG_YES, ue_id, drb->pdcp_Config, &sdap, sp); nr_pdcp_add_drb(GNB_FLAG_YES, ue_id, drb->pdcp_Config, &sdap, sp);
} }
} }
......
...@@ -621,7 +621,7 @@ static void rrc_ue_add_bearer(const int ue_id, const NR_DRB_ToAddMod_t *drb, con ...@@ -621,7 +621,7 @@ static void rrc_ue_add_bearer(const int ue_id, const NR_DRB_ToAddMod_t *drb, con
// add SDAP entity // add SDAP entity
new_nr_sdap_entity(GNB_FLAG_NO, ue_id, sdap); new_nr_sdap_entity(GNB_FLAG_NO, ue_id, sdap);
// add PDCP entity // add PDCP entity
add_drb(GNB_FLAG_NO, ue_id, drb->pdcp_Config, &sdap, sp); nr_pdcp_add_drb(GNB_FLAG_NO, ue_id, drb->pdcp_Config, &sdap, sp);
} }
/** /**
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment