Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
O
OpenXG-RAN
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
OpenXG
OpenXG-RAN
Commits
3b42e46c
Commit
3b42e46c
authored
Sep 06, 2022
by
Cedric Roux
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
nr rlc: add enum for rlc mode (am, um, or tm)
parent
4e4a0b7b
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
4 deletions
+10
-4
openair2/LAYER2/nr_rlc/nr_rlc_entity.c
openair2/LAYER2/nr_rlc/nr_rlc_entity.c
+3
-3
openair2/LAYER2/nr_rlc/nr_rlc_entity.h
openair2/LAYER2/nr_rlc/nr_rlc_entity.h
+7
-1
No files found.
openair2/LAYER2/nr_rlc/nr_rlc_entity.c
View file @
3b42e46c
...
...
@@ -110,7 +110,7 @@ nr_rlc_entity_t *new_nr_rlc_entity_am(
ret
->
common
.
max_retx_reached
=
max_retx_reached
;
ret
->
common
.
max_retx_reached_data
=
max_retx_reached_data
;
ret
->
common
.
stats
.
mode
=
0
;
/* 0 for AM */
ret
->
common
.
stats
.
mode
=
NR_RLC_AM
;
/* let's take average over the last 100 milliseconds
* initial_size of 1024 is arbitrary
...
...
@@ -165,7 +165,7 @@ nr_rlc_entity_t *new_nr_rlc_entity_um(
ret
->
common
.
deliver_sdu
=
deliver_sdu
;
ret
->
common
.
deliver_sdu_data
=
deliver_sdu_data
;
ret
->
common
.
stats
.
mode
=
1
;
/* 1 for UM */
ret
->
common
.
stats
.
mode
=
NR_RLC_UM
;
/* let's take average over the last 100 milliseconds
* initial_size of 1024 is arbitrary
...
...
@@ -205,7 +205,7 @@ nr_rlc_entity_t *new_nr_rlc_entity_tm(
ret
->
common
.
deliver_sdu
=
deliver_sdu
;
ret
->
common
.
deliver_sdu_data
=
deliver_sdu_data
;
ret
->
common
.
stats
.
mode
=
2
;
/* 2 for TM */
ret
->
common
.
stats
.
mode
=
NR_RLC_TM
;
/* let's take average over the last 100 milliseconds
* initial_size of 1024 is arbitrary
...
...
openair2/LAYER2/nr_rlc/nr_rlc_entity.h
View file @
3b42e46c
...
...
@@ -28,8 +28,14 @@
#define NR_SDU_MAX 16000
/* max NR PDCP SDU size is 9000, let's take more */
typedef
enum
{
NR_RLC_AM
,
NR_RLC_UM
,
NR_RLC_TM
,
}
nr_rlc_mode_t
;
typedef
struct
{
uint32_t
mode
;
/* 0: RLC AM, 1: RLC UM, 2: RLC
TM */
nr_rlc_mode_t
mode
;
/* AM, UM, or
TM */
/* PDU stats */
/* TX */
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment