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
canghaiwuhen
OpenXG-RAN
Commits
88daf73e
Commit
88daf73e
authored
Feb 12, 2019
by
tomita.y
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Checking SDU length of DCCH in MAC.
parent
6289fa4e
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
0 deletions
+7
-0
openair2/LAYER2/MAC/eNB_scheduler_dlsch.c
openair2/LAYER2/MAC/eNB_scheduler_dlsch.c
+2
-0
openair2/LAYER2/MAC/eNB_scheduler_fairRR.c
openair2/LAYER2/MAC/eNB_scheduler_fairRR.c
+5
-0
No files found.
openair2/LAYER2/MAC/eNB_scheduler_dlsch.c
View file @
88daf73e
...
@@ -942,6 +942,7 @@ schedule_ue_spec(module_id_t module_idP, int slice_idxP,
...
@@ -942,6 +942,7 @@ schedule_ue_spec(module_id_t module_idP, int slice_idxP,
T_INT
(
sdu_lengths
[
0
]));
T_INT
(
sdu_lengths
[
0
]));
LOG_D
(
MAC
,
"[eNB %d][DCCH] CC_id %d Got %d bytes from RLC
\n
"
,
LOG_D
(
MAC
,
"[eNB %d][DCCH] CC_id %d Got %d bytes from RLC
\n
"
,
module_idP
,
CC_id
,
sdu_lengths
[
0
]);
module_idP
,
CC_id
,
sdu_lengths
[
0
]);
if
(
sdu_lengths
[
0
]
>
0
){
sdu_length_total
=
sdu_lengths
[
0
];
sdu_length_total
=
sdu_lengths
[
0
];
sdu_lcids
[
0
]
=
DCCH
;
sdu_lcids
[
0
]
=
DCCH
;
UE_list
->
eNB_UE_stats
[
CC_id
][
UE_id
].
lcid_sdu
[
0
]
=
DCCH
;
UE_list
->
eNB_UE_stats
[
CC_id
][
UE_id
].
lcid_sdu
[
0
]
=
DCCH
;
...
@@ -951,6 +952,7 @@ schedule_ue_spec(module_id_t module_idP, int slice_idxP,
...
@@ -951,6 +952,7 @@ schedule_ue_spec(module_id_t module_idP, int slice_idxP,
header_length_last
=
1
+
1
+
(
sdu_lengths
[
0
]
>=
128
);
header_length_last
=
1
+
1
+
(
sdu_lengths
[
0
]
>=
128
);
header_length_total
+=
header_length_last
;
header_length_total
+=
header_length_last
;
num_sdus
=
1
;
num_sdus
=
1
;
}
#ifdef DEBUG_eNB_SCHEDULER
#ifdef DEBUG_eNB_SCHEDULER
LOG_T
(
MAC
,
LOG_T
(
MAC
,
"[eNB %d][DCCH] CC_id %d Got %d bytes :"
,
"[eNB %d][DCCH] CC_id %d Got %d bytes :"
,
...
...
openair2/LAYER2/MAC/eNB_scheduler_fairRR.c
View file @
88daf73e
...
@@ -1355,6 +1355,7 @@ schedule_ue_spec_fairRR(module_id_t module_idP,
...
@@ -1355,6 +1355,7 @@ schedule_ue_spec_fairRR(module_id_t module_idP,
LOG_D
(
MAC
,
LOG_D
(
MAC
,
"[eNB %d][DCCH] CC_id %d frame %d subframe %d UE_id %d/%x Got %d bytes bytes_in_buffer %d from release_num %d
\n
"
,
"[eNB %d][DCCH] CC_id %d frame %d subframe %d UE_id %d/%x Got %d bytes bytes_in_buffer %d from release_num %d
\n
"
,
module_idP
,
CC_id
,
frameP
,
subframeP
,
UE_id
,
rnti
,
sdu_lengths
[
0
],
rlc_status
.
bytes_in_buffer
,
rrc_release_info
.
num_UEs
);
module_idP
,
CC_id
,
frameP
,
subframeP
,
UE_id
,
rnti
,
sdu_lengths
[
0
],
rlc_status
.
bytes_in_buffer
,
rrc_release_info
.
num_UEs
);
if
(
sdu_lengths
[
0
]
>
0
){
sdu_length_total
=
sdu_lengths
[
0
];
sdu_length_total
=
sdu_lengths
[
0
];
sdu_lcids
[
0
]
=
DCCH
;
sdu_lcids
[
0
]
=
DCCH
;
UE_list
->
eNB_UE_stats
[
CC_id
][
UE_id
].
UE_list
->
eNB_UE_stats
[
CC_id
][
UE_id
].
...
@@ -1363,6 +1364,10 @@ schedule_ue_spec_fairRR(module_id_t module_idP,
...
@@ -1363,6 +1364,10 @@ schedule_ue_spec_fairRR(module_id_t module_idP,
eNB_UE_stats
[
CC_id
][
UE_id
].
num_bytes_tx
[
DCCH
]
eNB_UE_stats
[
CC_id
][
UE_id
].
num_bytes_tx
[
DCCH
]
+=
sdu_lengths
[
0
];
+=
sdu_lengths
[
0
];
num_sdus
=
1
;
num_sdus
=
1
;
}
else
{
header_len_dcch
=
0
;
sdu_length_total
=
0
;
}
#ifdef DEBUG_eNB_SCHEDULER
#ifdef DEBUG_eNB_SCHEDULER
LOG_T
(
MAC
,
LOG_T
(
MAC
,
"[eNB %d][DCCH] CC_id %d Got %d bytes :"
,
"[eNB %d][DCCH] CC_id %d Got %d bytes :"
,
...
...
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