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
alex037yang
OpenXG-RAN
Commits
61a988e5
Commit
61a988e5
authored
Jan 13, 2016
by
Cedric Roux
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add some logs, remove has_ue
parent
dcc46bf8
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
0 deletions
+14
-0
openair2/LAYER2/MAC/eNB_scheduler_dlsch.c
openair2/LAYER2/MAC/eNB_scheduler_dlsch.c
+14
-0
No files found.
openair2/LAYER2/MAC/eNB_scheduler_dlsch.c
View file @
61a988e5
...
@@ -450,11 +450,13 @@ void schedule_ue_spec(
...
@@ -450,11 +450,13 @@ void schedule_ue_spec(
/* let's only schedule subframe 2 for the moment */
/* let's only schedule subframe 2 for the moment */
if
(
subframeP
!=
2
)
return
;
if
(
subframeP
!=
2
)
return
;
#if 0
/* hack to set has_ue == 1 in the scheduler */
/* hack to set has_ue == 1 in the scheduler */
{
{
void has_ue(void *, int);
void has_ue(void *, int);
if (UE_list->head != -1) has_ue(fapi->sched, UE_RNTI(module_idP, UE_list->head));
if (UE_list->head != -1) has_ue(fapi->sched, UE_RNTI(module_idP, UE_list->head));
}
}
#endif
/* update RLC buffers status in the scheduler */
/* update RLC buffers status in the scheduler */
for
(
UE_id
=
UE_list
->
head
;
UE_id
>=
0
;
UE_id
=
UE_list
->
next
[
UE_id
])
{
for
(
UE_id
=
UE_list
->
head
;
UE_id
>=
0
;
UE_id
=
UE_list
->
next
[
UE_id
])
{
...
@@ -470,6 +472,7 @@ void schedule_ue_spec(
...
@@ -470,6 +472,7 @@ void schedule_ue_spec(
frameP
,
1
/* enb_flagP */
,
0
/* MBMS_flagP */
,
DCCH
,
20
);
frameP
,
1
/* enb_flagP */
,
0
/* MBMS_flagP */
,
DCCH
,
20
);
rlc
.
logicalChannelIdentity
=
DCCH
;
rlc
.
logicalChannelIdentity
=
DCCH
;
rlc
.
rlcTransmissionQueueSize
=
rlc_status
.
bytes_in_buffer
;
rlc
.
rlcTransmissionQueueSize
=
rlc_status
.
bytes_in_buffer
;
LOG_I
(
MAC
,
"calling SchedDlRlcBufferReq on DCCH rnti %x queue_size %d
\n
"
,
rlc
.
rnti
,
rlc_status
.
bytes_in_buffer
);
SchedDlRlcBufferReq
(
fapi
->
sched
,
&
rlc
);
SchedDlRlcBufferReq
(
fapi
->
sched
,
&
rlc
);
/* DCCH+1 (srb 2, lcid 2) */
/* DCCH+1 (srb 2, lcid 2) */
...
@@ -477,6 +480,7 @@ void schedule_ue_spec(
...
@@ -477,6 +480,7 @@ void schedule_ue_spec(
frameP
,
1
/* enb_flagP */
,
0
/* MBMS_flagP */
,
DCCH
+
1
,
20
);
frameP
,
1
/* enb_flagP */
,
0
/* MBMS_flagP */
,
DCCH
+
1
,
20
);
rlc
.
logicalChannelIdentity
=
DCCH
+
1
;
rlc
.
logicalChannelIdentity
=
DCCH
+
1
;
rlc
.
rlcTransmissionQueueSize
=
rlc_status
.
bytes_in_buffer
;
rlc
.
rlcTransmissionQueueSize
=
rlc_status
.
bytes_in_buffer
;
LOG_I
(
MAC
,
"calling SchedDlRlcBufferReq on DCCH+1 rnti %x queue_size %d
\n
"
,
rlc
.
rnti
,
rlc_status
.
bytes_in_buffer
);
SchedDlRlcBufferReq
(
fapi
->
sched
,
&
rlc
);
SchedDlRlcBufferReq
(
fapi
->
sched
,
&
rlc
);
/* DTCH (drb 1, lcid 3) */
/* DTCH (drb 1, lcid 3) */
...
@@ -484,11 +488,21 @@ void schedule_ue_spec(
...
@@ -484,11 +488,21 @@ void schedule_ue_spec(
frameP
,
1
/* enb_flagP */
,
0
/* MBMS_flagP */
,
DTCH
,
20
);
frameP
,
1
/* enb_flagP */
,
0
/* MBMS_flagP */
,
DTCH
,
20
);
rlc
.
logicalChannelIdentity
=
DTCH
;
rlc
.
logicalChannelIdentity
=
DTCH
;
rlc
.
rlcTransmissionQueueSize
=
rlc_status
.
bytes_in_buffer
;
rlc
.
rlcTransmissionQueueSize
=
rlc_status
.
bytes_in_buffer
;
LOG_I
(
MAC
,
"calling SchedDlRlcBufferReq on DTCH rnti %x queue_size %d
\n
"
,
rlc
.
rnti
,
rlc_status
.
bytes_in_buffer
);
SchedDlRlcBufferReq
(
fapi
->
sched
,
&
rlc
);
SchedDlRlcBufferReq
(
fapi
->
sched
,
&
rlc
);
}
}
req
.
sfnSf
=
frameP
*
16
+
subframeP
;
req
.
nr_dlInfoList
=
0
;
req
.
dlInfoList
=
NULL
;
req
.
nr_vendorSpecificList
=
0
;
req
.
vendorSpecificList
=
NULL
;
LOG_I
(
MAC
,
"calling SchedDlTriggerReq
\n
"
);
SchedDlTriggerReq
(
fapi
->
sched
,
&
req
);
SchedDlTriggerReq
(
fapi
->
sched
,
&
req
);
LOG_I
(
MAC
,
"calling SchedDlConfigInd
\n
"
);
SchedDlConfigInd
(
fapi
,
&
ind
);
SchedDlConfigInd
(
fapi
,
&
ind
);
LOG_I
(
MAC
,
"SchedDlConfigInd returns ind.nr_buildDataList %d
\n
"
,
ind
.
nr_buildDataList
);
if
(
ind
.
nr_buildDataList
==
0
)
return
;
if
(
ind
.
nr_buildDataList
==
0
)
return
;
...
...
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