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.
This commit is contained in:
Cedric Roux
2025-06-05 08:58:07 +02:00
parent f70d2f1312
commit 7852518bd3
+40
View File
@@ -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