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
328681fd
Commit
328681fd
authored
Sep 12, 2022
by
Vaibhav Shrivastava
Committed by
jperaldi
Nov 17, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Multi Cell fix after disabling fairRR and fix for CC mask
parent
e7d5ed77
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
102 additions
and
103 deletions
+102
-103
ci-scripts/conf_files/firecell/proxy_rcc.band1.tm1.nfapi.conf
...cripts/conf_files/firecell/proxy_rcc.band1.tm1.nfapi.conf
+1
-1
nfapi/oai_integration/nfapi_vnf.c
nfapi/oai_integration/nfapi_vnf.c
+16
-14
openair2/LAYER2/MAC/eNB_scheduler_ulsch.c
openair2/LAYER2/MAC/eNB_scheduler_ulsch.c
+83
-81
openair2/PHY_INTERFACE/IF_Module.c
openair2/PHY_INTERFACE/IF_Module.c
+2
-7
No files found.
ci-scripts/conf_files/firecell/proxy_rcc.band1.tm1.nfapi.conf
View file @
328681fd
...
@@ -276,7 +276,7 @@ MACRLCs = (
...
@@ -276,7 +276,7 @@ MACRLCs = (
remote_s_portd
=
50010
;
remote_s_portd
=
50010
;
tr_s_preference
=
"nfapi"
;
tr_s_preference
=
"nfapi"
;
tr_n_preference
=
"local_RRC"
;
tr_n_preference
=
"local_RRC"
;
scheduler_mode
=
"fairRR"
;
#
scheduler_mode = "fairRR";
}
}
);
);
...
...
nfapi/oai_integration/nfapi_vnf.c
View file @
328681fd
...
@@ -217,7 +217,7 @@ void oai_create_enb(void) {
...
@@ -217,7 +217,7 @@ void oai_create_enb(void) {
RC
.
nb_CC
[
CC_id
]
=
2
;
RC
.
nb_CC
[
CC_id
]
=
2
;
if
(
eNB
->
if_inst
==
0
)
{
if
(
eNB
->
if_inst
==
0
)
{
eNB
->
if_inst
=
IF_Module_init
(
CC_id
);
eNB
->
if_inst
=
IF_Module_init
(
bodge_counter
);
}
}
// This will cause phy_config_request to be installed. That will result in RRC configuring the PHY
// This will cause phy_config_request to be installed. That will result in RRC configuring the PHY
// that will result in eNB->configured being set to TRUE.
// that will result in eNB->configured being set to TRUE.
...
@@ -643,22 +643,24 @@ int phy_slot_indication(struct nfapi_vnf_p7_config *config, uint16_t phy_id, uin
...
@@ -643,22 +643,24 @@ int phy_slot_indication(struct nfapi_vnf_p7_config *config, uint16_t phy_id, uin
int
phy_subframe_indication
(
struct
nfapi_vnf_p7_config
*
config
,
uint16_t
phy_id
,
uint16_t
sfn_sf
)
{
int
phy_subframe_indication
(
struct
nfapi_vnf_p7_config
*
config
,
uint16_t
phy_id
,
uint16_t
sfn_sf
)
{
static
uint8_t
first_time
=
1
;
static
uint8_t
first_time
=
1
;
/* MultiCell: Function modify for Multiple CC */
for
(
int
CC_id
=
0
;
CC_id
<
MAX_NUM_CCs
;
CC_id
++
)
{
if
(
first_time
)
{
if
(
first_time
)
{
NFAPI_TRACE
(
NFAPI_TRACE_INFO
,
"[VNF] subframe indication %d
\n
"
,
NFAPI_SFNSF2DEC
(
sfn_sf
));
NFAPI_TRACE
(
NFAPI_TRACE_INFO
,
"[VNF] subframe indication %d
\n
"
,
NFAPI_SFNSF2DEC
(
sfn_sf
));
first_time
=
0
;
first_time
=
0
;
}
}
if
(
RC
.
eNB
&&
RC
.
eNB
[
0
][
0
]
->
configured
)
{
if
(
RC
.
eNB
&&
RC
.
eNB
[
0
][
CC_id
]
->
configured
)
{
uint16_t
sfn
=
NFAPI_SFNSF2SFN
(
sfn_sf
);
uint16_t
sfn
=
NFAPI_SFNSF2SFN
(
sfn_sf
);
uint16_t
sf
=
NFAPI_SFNSF2SF
(
sfn_sf
);
uint16_t
sf
=
NFAPI_SFNSF2SF
(
sfn_sf
);
//LOG_D(PHY,"[VNF] subframe indication sfn_sf:%d sfn:%d sf:%d\n", sfn_sf, sfn, sf);
//LOG_D(PHY,"[VNF] subframe indication sfn_sf:%d sfn:%d sf:%d\n", sfn_sf, sfn, sf);
wake_eNB_rxtx
(
RC
.
eNB
[
0
][
0
],
sfn
,
sf
);
wake_eNB_rxtx
(
RC
.
eNB
[
0
][
CC_id
],
sfn
,
sf
);
}
else
{
}
else
{
NFAPI_TRACE
(
NFAPI_TRACE_INFO
,
"[VNF] %s() RC.eNB:%p
\n
"
,
__FUNCTION__
,
RC
.
eNB
);
NFAPI_TRACE
(
NFAPI_TRACE_INFO
,
"[VNF] %s() RC.eNB:%p
\n
"
,
__FUNCTION__
,
RC
.
eNB
);
if
(
RC
.
eNB
)
NFAPI_TRACE
(
NFAPI_TRACE_INFO
,
"RC.eNB[0][0]->configured:%d
\n
"
,
RC
.
eNB
[
0
][
0
]
->
configured
);
if
(
RC
.
eNB
)
NFAPI_TRACE
(
NFAPI_TRACE_INFO
,
"RC.eNB[0][CC_id]->configured:%d
\n
"
,
RC
.
eNB
[
0
][
CC_id
]
->
configured
);
}
}
}
return
0
;
return
0
;
}
}
...
...
openair2/LAYER2/MAC/eNB_scheduler_ulsch.c
View file @
328681fd
...
@@ -1248,7 +1248,12 @@ schedule_ulsch(module_id_t module_idP,
...
@@ -1248,7 +1248,12 @@ schedule_ulsch(module_id_t module_idP,
start_meas
(
&
(
mac
->
schedule_ulsch
));
start_meas
(
&
(
mac
->
schedule_ulsch
));
sched_subframe
=
(
subframeP
+
4
)
%
10
;
sched_subframe
=
(
subframeP
+
4
)
%
10
;
sched_frame
=
frameP
;
sched_frame
=
frameP
;
cc
=
mac
->
common_channels
;
/* Note: RC.nb_mac_CC[module_idP] should be lower than or equal to NFAPI_CC_MAX */
for
(
int
CC_id
=
0
;
CC_id
<
RC
.
nb_mac_CC
[
module_idP
];
CC_id
++
,
cc
++
)
{
/* MultiCell: Common channels modify for multiple CC */
cc
=
&
RC
.
mac
[
module_idP
]
->
common_channels
[
CC_id
];
/* For TDD: check subframes where we have to act and return if nothing should be done now */
/* For TDD: check subframes where we have to act and return if nothing should be done now */
if
(
cc
->
tdd_Config
)
{
// Done only for CC_id = 0, assume tdd_Config for all CC_id
if
(
cc
->
tdd_Config
)
{
// Done only for CC_id = 0, assume tdd_Config for all CC_id
...
@@ -1349,9 +1354,6 @@ schedule_ulsch(module_id_t module_idP,
...
@@ -1349,9 +1354,6 @@ schedule_ulsch(module_id_t module_idP,
memset
(
emtc_active
,
0
,
5
*
sizeof
(
int
));
memset
(
emtc_active
,
0
,
5
*
sizeof
(
int
));
schedule_ulsch_rnti_emtc
(
module_idP
,
frameP
,
subframeP
,
sched_subframe
,
emtc_active
);
schedule_ulsch_rnti_emtc
(
module_idP
,
frameP
,
subframeP
,
sched_subframe
,
emtc_active
);
/* Note: RC.nb_mac_CC[module_idP] should be lower than or equal to NFAPI_CC_MAX */
for
(
int
CC_id
=
0
;
CC_id
<
RC
.
nb_mac_CC
[
module_idP
];
CC_id
++
,
cc
++
)
{
if
(
is_prach_subframe0
(
cc
->
tdd_Config
!=
NULL
?
cc
->
tdd_Config
->
subframeAssignment
:
0
,
cc
->
tdd_Config
!=
NULL
?
1
:
0
,
if
(
is_prach_subframe0
(
cc
->
tdd_Config
!=
NULL
?
cc
->
tdd_Config
->
subframeAssignment
:
0
,
cc
->
tdd_Config
!=
NULL
?
1
:
0
,
cc
->
radioResourceConfigCommon
->
prach_Config
.
prach_ConfigInfo
.
prach_ConfigIndex
,
cc
->
radioResourceConfigCommon
->
prach_Config
.
prach_ConfigInfo
.
prach_ConfigIndex
,
sched_frame
,
sched_subframe
))
{
sched_frame
,
sched_subframe
))
{
...
@@ -1373,7 +1375,7 @@ schedule_ulsch(module_id_t module_idP,
...
@@ -1373,7 +1375,7 @@ schedule_ulsch(module_id_t module_idP,
* - for 100: 3 RBs
* - for 100: 3 RBs
* This is totally arbitrary and might even be wrong.
* This is totally arbitrary and might even be wrong.
*/
*/
switch
(
to_prb
(
cc
[
CC_id
].
ul_Bandwidth
))
{
switch
(
to_prb
(
cc
->
ul_Bandwidth
))
{
case
25
:
case
25
:
cc
->
vrb_map_UL
[
0
]
=
1
;
cc
->
vrb_map_UL
[
0
]
=
1
;
cc
->
vrb_map_UL
[
24
]
=
1
;
cc
->
vrb_map_UL
[
24
]
=
1
;
...
...
openair2/PHY_INTERFACE/IF_Module.c
View file @
328681fd
...
@@ -720,14 +720,9 @@ void UL_indication(UL_IND_t *UL_info, void *proc) {
...
@@ -720,14 +720,9 @@ void UL_indication(UL_IND_t *UL_info, void *proc) {
LOG_D
(
MAC
,
"current (%d,%d) frame count dl is %d
\n
"
,
UL_info
->
frame
,
UL_info
->
subframe
,
frame_cnt
);
LOG_D
(
MAC
,
"current (%d,%d) frame count dl is %d
\n
"
,
UL_info
->
frame
,
UL_info
->
subframe
,
frame_cnt
);
}
}
/* MultiCell: Condition Added for Multiple Cell */
if
(
ifi
->
CC_mask
!=
0
)
{
ifi
->
CC_mask
=
0
;
}
if
(
NFAPI_MODE
!=
NFAPI_MODE_PNF
)
{
if
(
NFAPI_MODE
!=
NFAPI_MODE_PNF
)
{
/* MultiCell: Condition modified for Multiple CC */
/* MultiCell: Condition modified for Multiple CC */
if
((
ifi
->
CC_mask
==
0
)
||
(
ifi
->
CC_mask
==
1
)
||
(
ifi
->
CC_mask
==
2
))
{
if
((
ifi
->
CC_mask
==
0
)
||
(
ifi
->
CC_mask
==
1
)
||
(
ifi
->
CC_mask
==
2
)
||
(
ifi
->
CC_mask
==
3
)
)
{
ifi
->
current_frame
=
UL_info
->
frame
;
ifi
->
current_frame
=
UL_info
->
frame
;
ifi
->
current_subframe
=
UL_info
->
subframe
;
ifi
->
current_subframe
=
UL_info
->
subframe
;
}
else
{
}
else
{
...
@@ -757,7 +752,7 @@ void UL_indication(UL_IND_t *UL_info, void *proc) {
...
@@ -757,7 +752,7 @@ void UL_indication(UL_IND_t *UL_info, void *proc) {
if
(
NFAPI_MODE
!=
NFAPI_MODE_PNF
)
{
if
(
NFAPI_MODE
!=
NFAPI_MODE_PNF
)
{
/* MultiCell: Condition modified for Multiple CC */
/* MultiCell: Condition modified for Multiple CC */
if
(
(
ifi
->
CC_mask
==
((
1
<<
MAX_NUM_CCs
)
-
3
))
||
(
ifi
->
CC_mask
==
((
1
<<
MAX_NUM_CCs
)
-
2
)
))
{
if
(
ifi
->
CC_mask
==
((
1
<<
MAX_NUM_CCs
)
-
1
))
{
eNB_dlsch_ulsch_scheduler
(
module_id
,
eNB_dlsch_ulsch_scheduler
(
module_id
,
(
UL_info
->
frame
+
((
UL_info
->
subframe
>
(
9
-
sf_ahead
))
?
1
:
0
))
%
1024
,
(
UL_info
->
frame
+
((
UL_info
->
subframe
>
(
9
-
sf_ahead
))
?
1
:
0
))
%
1024
,
(
UL_info
->
subframe
+
sf_ahead
)
%
10
);
(
UL_info
->
subframe
+
sf_ahead
)
%
10
);
...
...
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