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
lizhongxiao
OpenXG-RAN
Commits
5043ca35
Commit
5043ca35
authored
Jan 23, 2024
by
francescomani
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
improvements in handling bucketSize at MAC UE
parent
4f3fcbfe
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
10 deletions
+11
-10
openair2/LAYER2/NR_MAC_UE/config_ue.c
openair2/LAYER2/NR_MAC_UE/config_ue.c
+8
-8
openair2/LAYER2/NR_MAC_UE/nr_ue_scheduler.c
openair2/LAYER2/NR_MAC_UE/nr_ue_scheduler.c
+3
-2
No files found.
openair2/LAYER2/NR_MAC_UE/config_ue.c
View file @
5043ca35
...
@@ -669,29 +669,29 @@ void nr_release_mac_config_logicalChannelBearer(NR_UE_MAC_INST_t *mac, long chan
...
@@ -669,29 +669,29 @@ void nr_release_mac_config_logicalChannelBearer(NR_UE_MAC_INST_t *mac, long chan
}
}
}
}
static
uint16_t
nr_get_ms_bucketsizeduration
(
uint8_t
bucketsizeduration
)
static
int
nr_get_ms_bucketsizeduration
(
long
bucketsizeduration
)
{
{
switch
(
bucketsizeduration
)
{
switch
(
bucketsizeduration
)
{
case
NR_LogicalChannelConfig__ul_SpecificParameters__bucketSizeDuration_ms5
:
return
5
;
case
NR_LogicalChannelConfig__ul_SpecificParameters__bucketSizeDuration_ms10
:
return
10
;
case
NR_LogicalChannelConfig__ul_SpecificParameters__bucketSizeDuration_ms20
:
return
20
;
case
NR_LogicalChannelConfig__ul_SpecificParameters__bucketSizeDuration_ms50
:
case
NR_LogicalChannelConfig__ul_SpecificParameters__bucketSizeDuration_ms50
:
return
50
;
return
50
;
case
NR_LogicalChannelConfig__ul_SpecificParameters__bucketSizeDuration_ms100
:
case
NR_LogicalChannelConfig__ul_SpecificParameters__bucketSizeDuration_ms100
:
return
100
;
return
100
;
case
NR_LogicalChannelConfig__ul_SpecificParameters__bucketSizeDuration_ms150
:
case
NR_LogicalChannelConfig__ul_SpecificParameters__bucketSizeDuration_ms150
:
return
150
;
return
150
;
case
NR_LogicalChannelConfig__ul_SpecificParameters__bucketSizeDuration_ms300
:
case
NR_LogicalChannelConfig__ul_SpecificParameters__bucketSizeDuration_ms300
:
return
300
;
return
300
;
case
NR_LogicalChannelConfig__ul_SpecificParameters__bucketSizeDuration_ms500
:
case
NR_LogicalChannelConfig__ul_SpecificParameters__bucketSizeDuration_ms500
:
return
500
;
return
500
;
case
NR_LogicalChannelConfig__ul_SpecificParameters__bucketSizeDuration_ms1000
:
case
NR_LogicalChannelConfig__ul_SpecificParameters__bucketSizeDuration_ms1000
:
return
1000
;
return
1000
;
default:
default:
return
0
;
AssertFatal
(
false
,
"Invalid bucketSizeDuration %ld
\n
"
,
bucketsizeduration
)
;
}
}
}
}
...
...
openair2/LAYER2/NR_MAC_UE/nr_ue_scheduler.c
View file @
5043ca35
...
@@ -1087,8 +1087,9 @@ void nr_ue_ul_scheduler(nr_uplink_indication_t *ul_info)
...
@@ -1087,8 +1087,9 @@ void nr_ue_ul_scheduler(nr_uplink_indication_t *ul_info)
int
lcid
=
lc_bearer
->
lcids_ordered
;
int
lcid
=
lc_bearer
->
lcids_ordered
;
NR_LogicalChannelConfig_t
*
lcconfig
=
mac
->
logicalChannelConfig
[
lcid
-
1
];
NR_LogicalChannelConfig_t
*
lcconfig
=
mac
->
logicalChannelConfig
[
lcid
-
1
];
NR_LC_SCHEDULING_INFO
*
sched_lc
=
&
mac
->
scheduling_info
.
lc_sched_info
[
lcid
-
1
];
NR_LC_SCHEDULING_INFO
*
sched_lc
=
&
mac
->
scheduling_info
.
lc_sched_info
[
lcid
-
1
];
int32_t
bucketSize_max
=
// max amount of data that can be buffered/accumulated in a logical channel buffer
sched_lc
->
bucket_size
;
// max amount of data that can be buffered/accumulated in a logical channel buffer
int32_t
bucketSize_max
=
sched_lc
->
bucket_size
;
AssertFatal
(
bucketSize_max
>=
0
,
"negative bucketSize_max %d, will never schedule UE: lcid %d
\n
"
,
bucketSize_max
,
lcid
);
/*
/*
measure Bj
measure Bj
...
...
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