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
littleBu
OpenXG-RAN
Commits
84d92ac8
Commit
84d92ac8
authored
Feb 07, 2024
by
Robert Schmidt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Prevent memory leak, use stack for slot indications
parent
9f80c82f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
8 deletions
+8
-8
nfapi/oai_integration/nfapi_pnf.c
nfapi/oai_integration/nfapi_pnf.c
+8
-8
No files found.
nfapi/oai_integration/nfapi_pnf.c
View file @
84d92ac8
...
...
@@ -2428,19 +2428,19 @@ void oai_subframe_ind(uint16_t sfn, uint16_t sf) {
}
}
void
handle_nr_slot_ind
(
uint16_t
sfn
,
uint16_t
slot
)
{
void
handle_nr_slot_ind
(
uint16_t
sfn
,
uint16_t
slot
)
{
//send VNF slot indication, which is aligned with TX thread, so that it can call the scheduler
nfapi_nr_slot_indication_scf_t
*
ind
;
ind
=
(
nfapi_nr_slot_indication_scf_t
*
)
malloc
(
sizeof
(
nfapi_nr_slot_indication_scf_t
));
int
slot_ahead
=
6
;
//we give four additional slots (2ms) which should be enough time for the VNF to
//answer
int
slot_ahead
=
4
;
uint32_t
sfn_slot_tx
=
sfnslot_add_slot
(
sfn
,
slot
,
slot_ahead
);
uint16_t
sfn_tx
=
NFAPI_SFNSLOT2SFN
(
sfn_slot_tx
);
uint8_t
slot_tx
=
NFAPI_SFNSLOT2SLOT
(
sfn_slot_tx
);
ind
->
sfn
=
sfn_tx
;
ind
->
slot
=
slot_tx
;
oai_nfapi_nr_slot_indication
(
ind
);
NFAPI_TRACE
(
NFAPI_TRACE_DEBUG
,
"send slot indication for sfn/slot:%4d.%2d current:%4d.%2d
\n
"
,
sfn_tx
,
slot_tx
,
sfn
,
slot
)
;
nfapi_nr_slot_indication_scf_t
ind
=
{
.
sfn
=
sfn_tx
,
.
slot
=
slot_tx
}
;
oai_nfapi_nr_slot_indication
(
&
ind
);
//copy data from appropriate p7 slot buffers into channel structures for PHY processing
nfapi_pnf_p7_slot_ind
(
p7_config_g
,
p7_config_g
->
phy_id
,
sfn
,
slot
);
...
...
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