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
5da8195d
Commit
5da8195d
authored
Jul 06, 2021
by
Luis Pereira
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Revert "Improved fix gNB downlink MAC short/long header accordingly with RLC buffer size"
This reverts commit
88d7ad11
parent
88d7ad11
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
15 deletions
+18
-15
openair2/LAYER2/NR_MAC_gNB/gNB_scheduler_dlsch.c
openair2/LAYER2/NR_MAC_gNB/gNB_scheduler_dlsch.c
+18
-15
No files found.
openair2/LAYER2/NR_MAC_gNB/gNB_scheduler_dlsch.c
View file @
5da8195d
...
...
@@ -1101,21 +1101,19 @@ void nr_schedule_ue_spec(module_id_t module_id,
int
dlsch_total_bytes
=
0
;
if
(
sched_ctrl
->
num_total_bytes
>
0
)
{
tbs_size_t
len
=
0
;
// Check MAC header short/long format and size
// Check if data from RLC is equal or longer than 256B or not.
// Data from RLC was checked before, in function nr_store_dlsch_buffer
int
header_size
=
sizeof
(
NR_MAC_SUBHEADER_SHORT
);
if
(
sched_ctrl
->
num_total_bytes
>=
256
)
{
header_size
=
sizeof
(
NR_MAC_SUBHEADER_LONG
);
}
while
(
size
>
header_size
)
{
while
(
size
>
3
)
{
// Reserve space for short or long header.
// Check if data from RLC is equal or longer than 256B or not.
// Data from RLC was checked before, in function nr_store_dlsch_buffer
uint8_t
*
header
=
buf
;
buf
+=
header_size
;
size
-=
header_size
;
if
(
sched_ctrl
->
num_total_bytes
>=
256
)
{
buf
+=
sizeof
(
NR_MAC_SUBHEADER_LONG
);
size
-=
sizeof
(
NR_MAC_SUBHEADER_LONG
);
}
else
{
buf
+=
sizeof
(
NR_MAC_SUBHEADER_SHORT
);
size
-=
sizeof
(
NR_MAC_SUBHEADER_SHORT
);
}
/* limit requested number of bytes to what preprocessor specified, or
* such that TBS is full */
...
...
@@ -1145,7 +1143,7 @@ void nr_schedule_ue_spec(module_id_t module_id,
if
(
len
==
0
)
break
;
if
(
header_size
==
sizeof
(
NR_MAC_SUBHEADER_LONG
)
)
{
if
(
sched_ctrl
->
num_total_bytes
>=
256
)
{
((
NR_MAC_SUBHEADER_LONG
*
)
header
)
->
R
=
0
;
((
NR_MAC_SUBHEADER_LONG
*
)
header
)
->
F
=
1
;
((
NR_MAC_SUBHEADER_LONG
*
)
header
)
->
LCID
=
lcid
;
...
...
@@ -1164,8 +1162,13 @@ void nr_schedule_ue_spec(module_id_t module_id,
}
if
(
len
==
0
)
{
/* RLC did not have data anymore, mark buffer as unused */
buf
-=
header_size
;
size
+=
header_size
;
if
(
sched_ctrl
->
num_total_bytes
>=
256
)
{
buf
-=
sizeof
(
NR_MAC_SUBHEADER_LONG
);
size
+=
sizeof
(
NR_MAC_SUBHEADER_LONG
);
}
else
{
buf
-=
sizeof
(
NR_MAC_SUBHEADER_SHORT
);
size
+=
sizeof
(
NR_MAC_SUBHEADER_SHORT
);
}
}
}
else
if
(
get_softmodem_params
()
->
phy_test
||
get_softmodem_params
()
->
do_ra
||
get_softmodem_params
()
->
sa
)
{
...
...
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