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
wangjie
OpenXG-RAN
Commits
cbff1c56
Commit
cbff1c56
authored
Nov 25, 2020
by
ChiehChun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Log short/long BSR status
parent
1a68dbd8
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
0 deletions
+13
-0
openair2/LAYER2/NR_MAC_gNB/gNB_scheduler_ulsch.c
openair2/LAYER2/NR_MAC_gNB/gNB_scheduler_ulsch.c
+13
-0
No files found.
openair2/LAYER2/NR_MAC_gNB/gNB_scheduler_ulsch.c
View file @
cbff1c56
...
@@ -85,6 +85,7 @@ void nr_process_mac_pdu(
...
@@ -85,6 +85,7 @@ void nr_process_mac_pdu(
LOG_D
(
MAC
,
"LCID received at gNB side: %d
\n
"
,
rx_lcid
);
LOG_D
(
MAC
,
"LCID received at gNB side: %d
\n
"
,
rx_lcid
);
unsigned
char
*
ce_ptr
;
unsigned
char
*
ce_ptr
;
int
n_Lcg
=
0
;
switch
(
rx_lcid
){
switch
(
rx_lcid
){
// MAC CE
// MAC CE
...
@@ -108,6 +109,8 @@ void nr_process_mac_pdu(
...
@@ -108,6 +109,8 @@ void nr_process_mac_pdu(
/* Extract short BSR value */
/* Extract short BSR value */
ce_ptr
=
&
pdu_ptr
[
mac_subheader_len
];
ce_ptr
=
&
pdu_ptr
[
mac_subheader_len
];
NR_BSR_SHORT
*
bsr_s
=
(
NR_BSR_SHORT
*
)
ce_ptr
;
NR_BSR_SHORT
*
bsr_s
=
(
NR_BSR_SHORT
*
)
ce_ptr
;
LOG_I
(
MAC
,
"SHORT BSR, LCG ID %d, BS Index %d
\n
"
,
bsr_s
->
LcgID
,
bsr_s
->
Buffer_size
);
break
;
break
;
case
UL_SCH_LCID_L_BSR
:
case
UL_SCH_LCID_L_BSR
:
...
@@ -123,6 +126,16 @@ void nr_process_mac_pdu(
...
@@ -123,6 +126,16 @@ void nr_process_mac_pdu(
/* Extract long BSR value */
/* Extract long BSR value */
ce_ptr
=
&
pdu_ptr
[
mac_subheader_len
];
ce_ptr
=
&
pdu_ptr
[
mac_subheader_len
];
NR_BSR_LONG
*
bsr_l
=
(
NR_BSR_LONG
*
)
ce_ptr
;
NR_BSR_LONG
*
bsr_l
=
(
NR_BSR_LONG
*
)
ce_ptr
;
n_Lcg
=
bsr_l
->
LcgID7
+
bsr_l
->
LcgID6
+
bsr_l
->
LcgID5
+
bsr_l
->
LcgID4
+
bsr_l
->
LcgID3
+
bsr_l
->
LcgID2
+
bsr_l
->
LcgID1
+
bsr_l
->
LcgID0
;
if
(
n_Lcg
>
0
)
{
LOG_W
(
MAC
,
"LONG BSR, LCG ID(7-0) %d/%d/%d/%d/%d/%d/%d/%d, Buffer Size > 0
\n
"
,
bsr_l
->
LcgID7
,
bsr_l
->
LcgID6
,
bsr_l
->
LcgID5
,
bsr_l
->
LcgID4
,
bsr_l
->
LcgID3
,
bsr_l
->
LcgID2
,
bsr_l
->
LcgID1
,
bsr_l
->
LcgID0
);
}
break
;
break
;
case
UL_SCH_LCID_C_RNTI
:
case
UL_SCH_LCID_C_RNTI
:
...
...
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