From 7852518bd355d4cfe0d9129e8ed83f46180abee1 Mon Sep 17 00:00:00 2001 From: Cedric Roux Date: Tue, 15 Apr 2025 16:20:39 +0200 Subject: [PATCH] add NR PDCP parameter definitions To be used in a later commit to retrieve NR PDCP configuration parameters. To use, add the following to the configuration file (outside of other configurations). Adapt the values to your setup. The names ("len18bits", "ms100", etc.) come from 3GPP TS 38.331. pdcp = { drb = { sn_size = "len18bits" t_reordering = "ms100" discard_timer = "infinity" } } Default values are applied if the configuration is absent. The default values are the ones given above. --- openair2/GNB_APP/gnb_paramdef.h | 40 +++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) diff --git a/openair2/GNB_APP/gnb_paramdef.h b/openair2/GNB_APP/gnb_paramdef.h index c8f6bc92fa..76ce814e88 100644 --- a/openair2/GNB_APP/gnb_paramdef.h +++ b/openair2/GNB_APP/gnb_paramdef.h @@ -848,4 +848,44 @@ typedef enum { /*----------------------------------------------------------------------*/ +#define CONFIG_NR_PDCP_SN_SIZE "sn_size" +#define CONFIG_NR_PDCP_T_REORDERING "t_reordering" +#define CONFIG_NR_PDCP_DISCARD_TIMER "discard_timer" + +/*----------------------------------------------------------------------*/ +/* nr pdcp drb configuration */ +/*----------------------------------------------------------------------*/ + +#define CONFIG_STRING_NR_PDCP_DRB "pdcp.drb" + +#define CONFIG_NR_PDCP_DRB_SN_SIZE_IDX 0 +#define CONFIG_NR_PDCP_DRB_T_REORDERING_IDX 1 +#define CONFIG_NR_PDCP_DRB_DISCARD_TIMER_IDX 2 + +#define NR_PDCP_DRB_GLOBALPARAMS_DESC { \ + { .optname = CONFIG_NR_PDCP_SN_SIZE, \ + .defstrval = "len18bits", \ + .helpstr = "SN size", .paramflags = 0, .strptr = NULL, .type = TYPE_STRING, .numelt = 0, \ + .chkPptr = &(checkedparam_t){ .s3a = { .f3a = config_checkstr_assign_integer, \ + .okstrval = { VALUES_NR_PDCP_SN_SIZE_STR }, \ + .setintval = { VALUES_NR_PDCP_SN_SIZE }, \ + .num_okstrval = SIZEOF_NR_PDCP_SN_SIZE }}}, \ + { .optname = CONFIG_NR_PDCP_T_REORDERING, \ + .defstrval = "ms100", \ + .helpstr = "reordering timer", .paramflags = 0, .strptr = NULL, .type = TYPE_STRING, .numelt = 0, \ + .chkPptr = &(checkedparam_t){ .s3a = { .f3a = config_checkstr_assign_integer, \ + .okstrval = { VALUES_NR_PDCP_T_REORDERING_STR }, \ + .setintval = { VALUES_NR_PDCP_T_REORDERING }, \ + .num_okstrval = SIZEOF_NR_PDCP_T_REORDERING }}}, \ + { .optname = CONFIG_NR_PDCP_DISCARD_TIMER, \ + .defstrval = "infinity", \ + .helpstr = "discard timer", .paramflags = 0, .strptr = NULL, .type = TYPE_STRING, .numelt = 0, \ + .chkPptr = &(checkedparam_t){ .s3a = { .f3a = config_checkstr_assign_integer, \ + .okstrval = { VALUES_NR_PDCP_DISCARD_TIMER_STR }, \ + .setintval = { VALUES_NR_PDCP_DISCARD_TIMER }, \ + .num_okstrval = SIZEOF_NR_PDCP_DISCARD_TIMER }}} \ +} + +/*----------------------------------------------------------------------*/ + #endif