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
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
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
spbro
OpenXG-RAN
Commits
917c0bfc
Commit
917c0bfc
authored
Apr 26, 2022
by
Robert Schmidt
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/nr-rlc-speedup-ack-nack-reception' into develop
parents
4c4cbc96
8b0be9cf
Changes
6
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
433 additions
and
422 deletions
+433
-422
openair2/LAYER2/nr_rlc/nr_rlc_entity_am.c
openair2/LAYER2/nr_rlc/nr_rlc_entity_am.c
+419
-415
openair2/LAYER2/nr_rlc/nr_rlc_entity_am.h
openair2/LAYER2/nr_rlc/nr_rlc_entity_am.h
+0
-3
openair2/LAYER2/nr_rlc/nr_rlc_sdu.c
openair2/LAYER2/nr_rlc/nr_rlc_sdu.c
+8
-3
openair2/LAYER2/nr_rlc/nr_rlc_sdu.h
openair2/LAYER2/nr_rlc/nr_rlc_sdu.h
+6
-1
openair2/LAYER2/nr_rlc/tests/test14.txt.gz
openair2/LAYER2/nr_rlc/tests/test14.txt.gz
+0
-0
openair2/LAYER2/nr_rlc/tests/test15.txt.gz
openair2/LAYER2/nr_rlc/tests/test15.txt.gz
+0
-0
No files found.
openair2/LAYER2/nr_rlc/nr_rlc_entity_am.c
View file @
917c0bfc
This diff is collapsed.
Click to expand it.
openair2/LAYER2/nr_rlc/nr_rlc_entity_am.h
View file @
917c0bfc
...
...
@@ -84,9 +84,6 @@ typedef struct {
nr_rlc_sdu_segment_t
*
wait_end
;
nr_rlc_sdu_segment_t
*
retransmit_list
;
nr_rlc_sdu_segment_t
*
retransmit_end
;
nr_rlc_sdu_segment_t
*
ack_list
;
}
nr_rlc_entity_am_t
;
void
nr_rlc_entity_am_recv_sdu
(
nr_rlc_entity_t
*
entity
,
...
...
openair2/LAYER2/nr_rlc/nr_rlc_sdu.c
View file @
917c0bfc
...
...
@@ -58,14 +58,19 @@ oom:
exit
(
1
);
}
void
nr_rlc_free_sdu_segment
(
nr_rlc_sdu_segment_t
*
sdu
)
int
nr_rlc_free_sdu_segment
(
nr_rlc_sdu_segment_t
*
sdu
)
{
sdu
->
sdu
->
ref_count
--
;
if
(
sdu
->
sdu
->
ref_count
==
0
)
{
int
ret
=
0
;
sdu
->
sdu
->
free_count
++
;
if
(
sdu
->
sdu
->
free_count
==
sdu
->
sdu
->
ref_count
)
{
free
(
sdu
->
sdu
->
data
);
free
(
sdu
->
sdu
);
ret
=
1
;
}
free
(
sdu
);
return
ret
;
}
void
nr_rlc_sdu_segment_list_append
(
nr_rlc_sdu_segment_t
**
list
,
...
...
openair2/LAYER2/nr_rlc/nr_rlc_sdu.h
View file @
917c0bfc
...
...
@@ -30,6 +30,10 @@ typedef struct nr_rlc_sdu_t {
int
retx_count
;
int
ref_count
;
/* incremented each time the SDU is segmented */
int
free_count
;
/* incremented each time a segment is freed
* when it equals ref_count we can free the SDU
* completely
*/
}
nr_rlc_sdu_t
;
typedef
struct
nr_rlc_sdu_segment_t
{
...
...
@@ -44,7 +48,8 @@ typedef struct nr_rlc_sdu_segment_t {
nr_rlc_sdu_segment_t
*
nr_rlc_new_sdu
(
char
*
buffer
,
int
size
,
int
upper_layer_id
);
void
nr_rlc_free_sdu_segment
(
nr_rlc_sdu_segment_t
*
sdu
);
/* return 1 if the SDU has been freed too, 0 if not (more segments to free) */
int
nr_rlc_free_sdu_segment
(
nr_rlc_sdu_segment_t
*
sdu
);
void
nr_rlc_sdu_segment_list_append
(
nr_rlc_sdu_segment_t
**
list
,
nr_rlc_sdu_segment_t
**
end
,
nr_rlc_sdu_segment_t
*
sdu
);
...
...
openair2/LAYER2/nr_rlc/tests/test14.txt.gz
View file @
917c0bfc
No preview for this file type
openair2/LAYER2/nr_rlc/tests/test15.txt.gz
View file @
917c0bfc
No preview for this file type
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