Merge branch 'feature-127-protocol-split' of https://gitlab.eurecom.fr/oai/openairinterface5g into feature-127-protocol-split
This commit is contained in:
@@ -675,7 +675,12 @@ add_boolean_option(UE_EXPANSION False "enable UE_EXPANSION w
|
|||||||
add_boolean_option(PHY_TX_THREAD False "enable UE_EXPANSION with max 256 UE")
|
add_boolean_option(PHY_TX_THREAD False "enable UE_EXPANSION with max 256 UE")
|
||||||
add_boolean_option(PRE_SCD_THREAD False "enable UE_EXPANSION with max 256 UE")
|
add_boolean_option(PRE_SCD_THREAD False "enable UE_EXPANSION with max 256 UE")
|
||||||
|
|
||||||
########################
|
#############################################################################
|
||||||
|
# Flag for UE compilation to avoid issues in common eNB/UE PDCP/RLC functions
|
||||||
|
#############################################################################
|
||||||
|
|
||||||
|
add_boolean_option(UETARGET False "set UE as target for compiler")
|
||||||
|
|
||||||
# Include order
|
# Include order
|
||||||
##########################
|
##########################
|
||||||
add_boolean_option(ENB_MODE True "Swap the include directories between openair2 and openair3" )
|
add_boolean_option(ENB_MODE True "Swap the include directories between openair2 and openair3" )
|
||||||
|
|||||||
@@ -69,6 +69,7 @@ DISABLE_LOG_X="False"
|
|||||||
USRP_REC_PLAY="False"
|
USRP_REC_PLAY="False"
|
||||||
BUILD_ECLIPSE=0
|
BUILD_ECLIPSE=0
|
||||||
UE_NAS_USE_TUN="False"
|
UE_NAS_USE_TUN="False"
|
||||||
|
UETARGET="False"
|
||||||
BASIC_SIMULATOR=0
|
BASIC_SIMULATOR=0
|
||||||
trap handle_ctrl_c INT
|
trap handle_ctrl_c INT
|
||||||
|
|
||||||
@@ -226,6 +227,7 @@ function main() {
|
|||||||
shift;;
|
shift;;
|
||||||
--UE)
|
--UE)
|
||||||
UE=1
|
UE=1
|
||||||
|
UETARGET="True"
|
||||||
echo_info "Will compile UE"
|
echo_info "Will compile UE"
|
||||||
shift;;
|
shift;;
|
||||||
--mu)
|
--mu)
|
||||||
@@ -573,6 +575,9 @@ function main() {
|
|||||||
echo "set (UE_TIMING_TRACE $UE_TIMING_TRACE)" >> $cmake_file
|
echo "set (UE_TIMING_TRACE $UE_TIMING_TRACE)" >> $cmake_file
|
||||||
echo "set (DISABLE_LOG_X $DISABLE_LOG_X)" >> $cmake_file
|
echo "set (DISABLE_LOG_X $DISABLE_LOG_X)" >> $cmake_file
|
||||||
echo "set (USRP_REC_PLAY $USRP_REC_PLAY)" >> $cmake_file
|
echo "set (USRP_REC_PLAY $USRP_REC_PLAY)" >> $cmake_file
|
||||||
|
if [ "$UE" = 1 ] ; then
|
||||||
|
echo "set (UETARGET $UETARGET )" >> $cmake_file
|
||||||
|
fi
|
||||||
if [ "$UE" = 1 -a "$NOS1" = "0" ] ; then
|
if [ "$UE" = 1 -a "$NOS1" = "0" ] ; then
|
||||||
echo_info "Compiling UE S1 build : enabling Linux and NETLINK"
|
echo_info "Compiling UE S1 build : enabling Linux and NETLINK"
|
||||||
echo "set (LINUX True )" >> $cmake_file
|
echo "set (LINUX True )" >> $cmake_file
|
||||||
@@ -927,6 +932,7 @@ fi
|
|||||||
echo "set (USRP_REC_PLAY $USRP_REC_PLAY)" >> $cmake_file
|
echo "set (USRP_REC_PLAY $USRP_REC_PLAY)" >> $cmake_file
|
||||||
echo "set (LINUX True )" >> $cmake_file
|
echo "set (LINUX True )" >> $cmake_file
|
||||||
echo "set (PDCP_USE_NETLINK True )" >> $cmake_file
|
echo "set (PDCP_USE_NETLINK True )" >> $cmake_file
|
||||||
|
echo "set (UETARGET True )" >> $cmake_file
|
||||||
echo "set (BASIC_SIMULATOR \"True\" )" >> $cmake_file
|
echo "set (BASIC_SIMULATOR \"True\" )" >> $cmake_file
|
||||||
echo "set (UE_NAS_USE_TUN \"True\" )" >> $cmake_file
|
echo "set (UE_NAS_USE_TUN \"True\" )" >> $cmake_file
|
||||||
echo 'include(${CMAKE_CURRENT_SOURCE_DIR}/../../CMakeLists.txt)' >> $cmake_file
|
echo 'include(${CMAKE_CURRENT_SOURCE_DIR}/../../CMakeLists.txt)' >> $cmake_file
|
||||||
|
|||||||
@@ -374,6 +374,7 @@ boolean_t pdcp_data_req(
|
|||||||
"[MSG] PDCP DL %s PDU on rb_id %d\n",(srb_flagP)? "CONTROL" : "DATA", rb_idP);
|
"[MSG] PDCP DL %s PDU on rb_id %d\n",(srb_flagP)? "CONTROL" : "DATA", rb_idP);
|
||||||
|
|
||||||
LOG_F(PDCP,"\n");
|
LOG_F(PDCP,"\n");
|
||||||
|
#ifndef UETARGET
|
||||||
static cudu_params_t *cudu = NULL;
|
static cudu_params_t *cudu = NULL;
|
||||||
if (ctxt_pP->enb_flag == 1)
|
if (ctxt_pP->enb_flag == 1)
|
||||||
{
|
{
|
||||||
@@ -439,7 +440,7 @@ boolean_t pdcp_data_req(
|
|||||||
#endif
|
#endif
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
#endif /*UETARGET*/
|
||||||
}
|
}
|
||||||
|
|
||||||
switch (rlc_status) {
|
switch (rlc_status) {
|
||||||
|
|||||||
@@ -54,6 +54,7 @@ extern boolean_t pdcp_data_ind(
|
|||||||
|
|
||||||
#include "rlc_proto_agent_primitives.h"
|
#include "rlc_proto_agent_primitives.h"
|
||||||
// PROTO AGENT
|
// PROTO AGENT
|
||||||
|
#ifndef UETARGET
|
||||||
void
|
void
|
||||||
async_server_thread_init (void)
|
async_server_thread_init (void)
|
||||||
{
|
{
|
||||||
@@ -111,7 +112,7 @@ async_server_thread_finalize (void)
|
|||||||
return err;
|
return err;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#endif /*UETARGET*/
|
||||||
|
|
||||||
//-----------------------------------------------------------------------------
|
//-----------------------------------------------------------------------------
|
||||||
void rlc_util_print_hex_octets(comp_name_t componentP, unsigned char* dataP, const signed long sizeP)
|
void rlc_util_print_hex_octets(comp_name_t componentP, unsigned char* dataP, const signed long sizeP)
|
||||||
@@ -675,7 +676,7 @@ void rlc_data_ind (
|
|||||||
if (ctxt_pP->enb_flag)
|
if (ctxt_pP->enb_flag)
|
||||||
T(T_ENB_RLC_UL, T_INT(ctxt_pP->module_id), T_INT(ctxt_pP->rnti), T_INT(rb_idP), T_INT(sdu_sizeP));
|
T(T_ENB_RLC_UL, T_INT(ctxt_pP->module_id), T_INT(ctxt_pP->rnti), T_INT(rb_idP), T_INT(sdu_sizeP));
|
||||||
#endif
|
#endif
|
||||||
|
#ifndef UETARGET
|
||||||
if ((!srb_flagP) && (ctxt_pP->enb_flag == 1))
|
if ((!srb_flagP) && (ctxt_pP->enb_flag == 1))
|
||||||
{
|
{
|
||||||
proto_agent_send_pdcp_data_ind(ctxt_pP,
|
proto_agent_send_pdcp_data_ind(ctxt_pP,
|
||||||
@@ -686,6 +687,7 @@ void rlc_data_ind (
|
|||||||
sdu_pP);
|
sdu_pP);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
#endif /*UETARGET*/
|
||||||
{
|
{
|
||||||
pdcp_data_ind (
|
pdcp_data_ind (
|
||||||
ctxt_pP,
|
ctxt_pP,
|
||||||
@@ -765,6 +767,8 @@ rlc_module_init (void)
|
|||||||
|
|
||||||
pool_buffer_init();
|
pool_buffer_init();
|
||||||
|
|
||||||
|
|
||||||
|
#ifndef UETARGET
|
||||||
/* Launch the RLC listening server
|
/* Launch the RLC listening server
|
||||||
* as a separate thread
|
* as a separate thread
|
||||||
*/
|
*/
|
||||||
@@ -774,7 +778,7 @@ rlc_module_init (void)
|
|||||||
async_server_thread_init();
|
async_server_thread_init();
|
||||||
started = 1;
|
started = 1;
|
||||||
}
|
}
|
||||||
|
#endif /*UETARGET*/
|
||||||
|
|
||||||
return(0);
|
return(0);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -124,7 +124,7 @@ void check_free_mem_block (mem_block_t * leP);
|
|||||||
|
|
||||||
# define MEM_MNGT_MB12_BLOCK_SIZE MEM_MNGT_MB0_BLOCK_SIZE*4096
|
# define MEM_MNGT_MB12_BLOCK_SIZE MEM_MNGT_MB0_BLOCK_SIZE*4096
|
||||||
// 262144
|
// 262144
|
||||||
# define MEM_MNGT_MB12_NB_BLOCKS 1024 * MEM_SCALE
|
# define MEM_MNGT_MB12_NB_BLOCKS 32 * MEM_SCALE
|
||||||
//# define MEM_MNGT_MB12_NB_BLOCKS 4096 * MEM_SCALE
|
//# define MEM_MNGT_MB12_NB_BLOCKS 4096 * MEM_SCALE
|
||||||
|
|
||||||
# define MEM_MNGT_POOL_ID12 12
|
# define MEM_MNGT_POOL_ID12 12
|
||||||
|
|||||||
Reference in New Issue
Block a user