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
dfe16d98
Commit
dfe16d98
authored
Aug 09, 2024
by
Cedric Roux
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
nr rlc tm: reduce "SDU rejected" logging
once per second is enough
parent
ad7bd05f
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
2 deletions
+16
-2
openair2/LAYER2/nr_rlc/nr_rlc_entity_tm.c
openair2/LAYER2/nr_rlc/nr_rlc_entity_tm.c
+12
-2
openair2/LAYER2/nr_rlc/nr_rlc_entity_tm.h
openair2/LAYER2/nr_rlc/nr_rlc_entity_tm.h
+4
-0
No files found.
openair2/LAYER2/nr_rlc/nr_rlc_entity_tm.c
View file @
dfe16d98
...
...
@@ -136,9 +136,16 @@ void nr_rlc_entity_tm_recv_sdu(nr_rlc_entity_t *_entity,
exit
(
1
);
}
/* log SDUs rejected, at most once per second */
if
(
entity
->
sdu_rejected
!=
0
&&
entity
->
t_current
>
entity
->
t_log_buffer_full
+
1000
)
{
LOG_E
(
RLC
,
"%d SDU rejected, SDU buffer full
\n
"
,
entity
->
sdu_rejected
);
entity
->
sdu_rejected
=
0
;
entity
->
t_log_buffer_full
=
entity
->
t_current
;
}
if
(
entity
->
tx_size
+
size
>
entity
->
tx_maxsize
)
{
LOG_D
(
RLC
,
"%s:%d:%s: warning: SDU rejected, SDU buffer full
\n
"
,
__FILE__
,
__LINE__
,
__FUNCTION__
);
entity
->
sdu_rejected
++
;
entity
->
common
.
stats
.
rxsdu_dd_pkts
++
;
entity
->
common
.
stats
.
rxsdu_dd_bytes
+=
size
;
...
...
@@ -181,6 +188,9 @@ void nr_rlc_entity_tm_discard_sdu(nr_rlc_entity_t *_entity, int sdu_id)
static
void
clear_entity
(
nr_rlc_entity_tm_t
*
entity
)
{
entity
->
t_log_buffer_full
=
0
;
entity
->
sdu_rejected
=
0
;
nr_rlc_free_sdu_segment_list
(
entity
->
tx_list
);
entity
->
tx_list
=
NULL
;
...
...
openair2/LAYER2/nr_rlc/nr_rlc_entity_tm.h
View file @
dfe16d98
...
...
@@ -31,6 +31,10 @@ typedef struct {
/* set to the latest know time by the user of the module. Unit: ms */
uint64_t
t_current
;
/* deal with logging of buffer full */
uint64_t
t_log_buffer_full
;
int
sdu_rejected
;
/* tx management */
nr_rlc_sdu_segment_t
*
tx_list
;
nr_rlc_sdu_segment_t
*
tx_end
;
...
...
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