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
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
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
OpenXG
OpenXG-RAN
Commits
f8af5525
Commit
f8af5525
authored
Feb 11, 2024
by
Robert Schmidt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
run_scheduler: send slot indication
parent
52c6b206
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
2 deletions
+17
-2
openair2/NR_PHY_INTERFACE/NR_IF_Module.c
openair2/NR_PHY_INTERFACE/NR_IF_Module.c
+17
-2
No files found.
openair2/NR_PHY_INTERFACE/NR_IF_Module.c
View file @
f8af5525
...
...
@@ -388,7 +388,15 @@ static void match_crc_rx_pdu(nfapi_nr_rx_data_indication_t *rx_ind, nfapi_nr_crc
}
}
static
void
run_scheduler
(
module_id_t
module_id
,
int
CC_id
,
int
frame
,
int
slot
)
extern
void
handle_nr_slot_ind
(
uint16_t
sfn
,
uint16_t
slot
);
static
void
pnf_send_slot_ind
(
module_id_t
module_id
,
int
CC_id
,
int
frame
,
int
slot
)
{
(
void
)
module_id
;
(
void
)
CC_id
;
handle_nr_slot_ind
(
frame
,
slot
);
}
static
void
run_scheduler_monolithic
(
module_id_t
module_id
,
int
CC_id
,
int
frame
,
int
slot
)
{
NR_IF_Module_t
*
ifi
=
nr_if_inst
[
module_id
];
...
...
@@ -411,6 +419,8 @@ static void run_scheduler(module_id_t module_id, int CC_id, int frame, int slot)
sched_info->TX_req = &mac->TX_req[CC_id];
*/
//
#ifdef DUMP_FAPI
dump_dl
(
sched_info
);
#endif
...
...
@@ -501,7 +511,12 @@ NR_IF_Module_t *NR_IF_Module_init(int Mod_id) {
nr_if_inst
[
Mod_id
]
->
CC_mask
=
0
;
nr_if_inst
[
Mod_id
]
->
NR_UL_indication
=
NR_UL_indication
;
nr_if_inst
[
Mod_id
]
->
NR_slot_indication
=
run_scheduler
;
if
(
NFAPI_MODE
==
NFAPI_MONOLITHIC
)
nr_if_inst
[
Mod_id
]
->
NR_slot_indication
=
run_scheduler_monolithic
;
else
if
(
NFAPI_MODE
==
NFAPI_MODE_PNF
)
nr_if_inst
[
Mod_id
]
->
NR_slot_indication
=
pnf_send_slot_ind
;
else
// NFAPI_MODE_VNF
NULL
;
AssertFatal
(
pthread_mutex_init
(
&
nr_if_inst
[
Mod_id
]
->
if_mutex
,
NULL
)
==
0
,
"allocation of nr_if_inst[%d]->if_mutex fails
\n
"
,
Mod_id
);
}
...
...
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