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
345a9382
Commit
345a9382
authored
Apr 14, 2016
by
Xenofon Foukas
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed bug of local agent scheduler that did not allow the retransmission in HARQ processes
parent
a47f3654
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
24 additions
and
17 deletions
+24
-17
openair2/LAYER2/MAC/defs.h
openair2/LAYER2/MAC/defs.h
+6
-0
openair2/LAYER2/MAC/eNB_agent_scheduler_dataplane.c
openair2/LAYER2/MAC/eNB_agent_scheduler_dataplane.c
+0
-2
openair2/LAYER2/MAC/eNB_agent_scheduler_dlsch_ue.c
openair2/LAYER2/MAC/eNB_agent_scheduler_dlsch_ue.c
+18
-15
No files found.
openair2/LAYER2/MAC/defs.h
View file @
345a9382
...
...
@@ -609,6 +609,12 @@ typedef struct {
/// Flag to indicate UE has been configured (ACK from RRCConnectionSetup received)
boolean_t
configured
;
/// MCS from last scheduling
uint8_t
mcs
[
8
];
/// TPC from last scheduling
uint8_t
oldTPC
[
8
];
// PHY interface info
/// DCI format for DLSCH
...
...
openair2/LAYER2/MAC/eNB_agent_scheduler_dataplane.c
View file @
345a9382
...
...
@@ -325,8 +325,6 @@ void apply_ue_spec_scheduling_decisions(mid_t mod_id,
stats_tbs
=
mac_xface
->
get_TBS_DL
(
dl_dci
->
mcs
[
0
],
nb_rb
);
}
UE_list
->
UE_template
[
CC_id
][
UE_id
].
nb_rb
[
dl_dci
->
harq_process
]
=
nb_rb
;
UE_list
->
eNB_UE_stats
[
CC_id
][
UE_id
].
rbs_used
=
nb_rb
;
UE_list
->
eNB_UE_stats
[
CC_id
][
UE_id
].
total_rbs_used
+=
nb_rb
;
UE_list
->
eNB_UE_stats
[
CC_id
][
UE_id
].
dlsch_mcs1
=
dl_dci
->
mcs
[
0
];
...
...
openair2/LAYER2/MAC/eNB_agent_scheduler_dlsch_ue.c
View file @
345a9382
...
...
@@ -137,7 +137,7 @@ schedule_ue_spec_default(
VCD_SIGNAL_DUMPER_DUMP_FUNCTION_BY_NAME
(
VCD_SIGNAL_DUMPER_FUNCTIONS_SCHEDULE_DLSCH
,
VCD_FUNCTION_IN
);
//weight = get_ue_weight(module_idP,UE_id);
aggregation
=
1
;
// set to the maximum aggregation level
aggregation
=
2
;
// set to the maximum aggregation level
for
(
CC_id
=
0
;
CC_id
<
MAX_NUM_CCs
;
CC_id
++
)
{
min_rb_unit
[
CC_id
]
=
get_min_rb_unit
(
mod_id
,
CC_id
);
...
...
@@ -248,6 +248,7 @@ schedule_ue_spec_default(
// initializing the rb allocation indicator for each UE
for
(
j
=
0
;
j
<
frame_parms
[
CC_id
]
->
N_RBG
;
j
++
)
{
UE_list
->
UE_template
[
CC_id
][
UE_id
].
rballoc_subband
[
harq_pid
][
j
]
=
0
;
rballoc_sub
[
j
]
=
0
;
}
LOG_D
(
MAC
,
"[eNB %d] Frame %d: Scheduling UE %d on CC_id %d (rnti %x, harq_pid %d, round %d, rb %d, cqi %d, mcs %d, rrc %d)
\n
"
,
...
...
@@ -269,13 +270,6 @@ schedule_ue_spec_default(
if
(
round
>
0
)
{
mcs
=
UE_list
->
eNB_UE_stats
[
CC_id
][
UE_id
].
dlsch_mcs1
;
// get freq_allocation
nb_rb
=
UE_list
->
UE_template
[
CC_id
][
UE_id
].
nb_rb
[
harq_pid
];
dci_tbs
=
mac_xface
->
get_TBS_DL
(
mcs
,
nb_rb
);
if
(
frame_parms
[
CC_id
]
->
frame_type
==
TDD
)
{
UE_list
->
UE_template
[
CC_id
][
UE_id
].
DAI
++
;
update_ul_dci
(
mod_id
,
CC_id
,
rnti
,
UE_list
->
UE_template
[
CC_id
][
UE_id
].
DAI
);
...
...
@@ -283,6 +277,13 @@ schedule_ue_spec_default(
CC_id
,
subframe
,
UE_id
,
UE_list
->
UE_template
[
CC_id
][
UE_id
].
DAI
);
}
mcs
=
UE_list
->
UE_template
[
CC_id
][
UE_id
].
mcs
[
harq_pid
];
// get freq_allocation
nb_rb
=
UE_list
->
UE_template
[
CC_id
][
UE_id
].
nb_rb
[
harq_pid
];
dci_tbs
=
mac_xface
->
get_TBS_DL
(
mcs
,
nb_rb
);
if
(
nb_rb
<=
nb_available_rb
)
{
if
(
nb_rb
==
ue_sched_ctl
->
pre_nb_available_rbs
[
CC_id
])
{
...
...
@@ -296,6 +297,7 @@ schedule_ue_spec_default(
while
((
nb_rb_temp
>
0
)
&&
(
j
<
frame_parms
[
CC_id
]
->
N_RBG
))
{
if
(
ue_sched_ctl
->
rballoc_sub_UE
[
CC_id
][
j
]
==
1
)
{
UE_list
->
UE_template
[
CC_id
][
UE_id
].
rballoc_subband
[
harq_pid
][
j
]
=
ue_sched_ctl
->
rballoc_sub_UE
[
CC_id
][
j
];
if
((
j
==
frame_parms
[
CC_id
]
->
N_RBG
-
1
)
&&
((
frame_parms
[
CC_id
]
->
N_RB_DL
==
25
)
||
(
frame_parms
[
CC_id
]
->
N_RB_DL
==
50
)))
{
...
...
@@ -316,21 +318,20 @@ schedule_ue_spec_default(
for
(
j
=
0
;
j
<
frame_parms
[
CC_id
]
->
N_RBG
;
j
++
)
{
PHY_vars_eNB_g
[
mod_id
][
CC_id
]
->
mu_mimo_mode
[
UE_id
].
rballoc_sub
[
j
]
=
UE_list
->
UE_template
[
CC_id
][
UE_id
].
rballoc_subband
[
harq_pid
][
j
];
}
for
(
i
=
0
;
i
<
PHY_vars_eNB_g
[
mod_id
][
CC_id
]
->
lte_frame_parms
.
N_RBG
;
i
++
)
{
rballoc_sub
[
i
]
=
UE_list
->
UE_template
[
CC_id
][
UE_id
].
rballoc_subband
[
harq_pid
][
i
];
rballoc_sub
[
j
]
=
UE_list
->
UE_template
[
CC_id
][
UE_id
].
rballoc_subband
[
harq_pid
][
j
];
}
// Keep the old NDI, do not toggle
ndi
=
UE_list
->
UE_template
[
CC_id
][
UE_id
].
oldNDI
[
harq_pid
];
tpc
=
1
;
tpc
=
UE_list
->
UE_template
[
CC_id
][
UE_id
].
oldTPC
[
harq_pid
];
UE_list
->
UE_template
[
CC_id
][
UE_id
].
mcs
[
harq_pid
]
=
mcs
;
ue_has_transmission
=
1
;
num_ues_added
++
;
}
else
{
LOG_D
(
MAC
,
"[eNB %d] Frame %d CC_id %d : don't schedule UE %d, its retransmission takes more resources than we have
\n
"
,
mod_id
,
frame
,
CC_id
,
UE_id
);
ue_has_transmission
=
0
;
}
//End of retransmission
}
else
{
/* This is a potentially new SDU opportunity */
...
...
@@ -516,7 +517,6 @@ schedule_ue_spec_default(
UE_list
->
UE_template
[
CC_id
][
UE_id
].
nb_rb
[
harq_pid
]
=
nb_rb
;
if
(
frame_parms
[
CC_id
]
->
frame_type
==
TDD
)
{
UE_list
->
UE_template
[
CC_id
][
UE_id
].
DAI
++
;
// printf("DAI update: subframeP %d: UE %d, DAI %d\n",subframeP,UE_id,UE_list->UE_template[CC_id][UE_id].DAI);
...
...
@@ -572,6 +572,9 @@ schedule_ue_spec_default(
UE_list
->
UE_template
[
CC_id
][
UE_id
].
oldNDI
[
harq_pid
]
=
1
-
UE_list
->
UE_template
[
CC_id
][
UE_id
].
oldNDI
[
harq_pid
];
ndi
=
UE_list
->
UE_template
[
CC_id
][
UE_id
].
oldNDI
[
harq_pid
];
UE_list
->
UE_template
[
CC_id
][
UE_id
].
mcs
[
harq_pid
]
=
mcs
;
UE_list
->
UE_template
[
CC_id
][
UE_id
].
oldTPC
[
harq_pid
]
=
tpc
;
// Increase the pointer for the number of scheduled UEs
num_ues_added
++
;
ue_has_transmission
=
1
;
...
...
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