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
5a43fe8a
Commit
5a43fe8a
authored
Nov 23, 2023
by
Robert Schmidt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Properly implement PNF/VNF list find
parent
740039dd
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
23 deletions
+15
-23
nfapi/open-nFAPI/vnf/src/vnf.c
nfapi/open-nFAPI/vnf/src/vnf.c
+7
-13
nfapi/open-nFAPI/vnf/src/vnf_p7.c
nfapi/open-nFAPI/vnf/src/vnf_p7.c
+8
-10
No files found.
nfapi/open-nFAPI/vnf/src/vnf.c
View file @
5a43fe8a
...
...
@@ -92,20 +92,14 @@ nfapi_vnf_pnf_info_t* nfapi_vnf_pnf_list_find(nfapi_vnf_config_t* config, int p5
NFAPI_TRACE
(
NFAPI_TRACE_DEBUG
,
"config->pnf_list:%p
\n
"
,
config
->
pnf_list
);
nfapi_vnf_pnf_info_t
*
curr
=
config
->
pnf_list
;
while
(
curr
!=
0
)
{
if
(
curr
->
p5_idx
==
p5_idx
)
{
NFAPI_TRACE
(
NFAPI_TRACE_ERROR
,
"%s : curr->p5_idx:%d p5_idx:%d
\n
"
,
__FUNCTION__
,
curr
->
p5_idx
,
p5_idx
);
return
curr
;
}
NFAPI_TRACE
(
NFAPI_TRACE_ERROR
,
"%s : curr->next:%p
\n
"
,
__FUNCTION__
,
curr
->
next
);
curr
=
curr
->
next
;
}
while
(
curr
!=
0
)
{
if
(
curr
->
p5_idx
==
p5_idx
)
return
curr
;
curr
=
curr
->
next
;
}
NFAPI_TRACE
(
NFAPI_TRACE_ERROR
,
"%s(): could not find P5 connection for p5_idx %d
\n
"
,
__func__
,
p5_idx
);
return
0
;
return
0
;
}
void
vnf_nr_handle_pnf_param_response
(
void
*
pRecvMsg
,
int
recvMsgLen
,
nfapi_vnf_config_t
*
config
,
int
p5_idx
)
...
...
nfapi/open-nFAPI/vnf/src/vnf_p7.c
View file @
5a43fe8a
...
...
@@ -88,16 +88,14 @@ void vnf_p7_connection_info_list_add(vnf_p7_t* vnf_p7, nfapi_vnf_p7_connection_i
nfapi_vnf_p7_connection_info_t
*
vnf_p7_connection_info_list_find
(
vnf_p7_t
*
vnf_p7
,
uint16_t
phy_id
)
{
nfapi_vnf_p7_connection_info_t
*
curr
=
vnf_p7
->
p7_connections
;
while
(
curr
!=
0
)
{
if
(
curr
->
phy_id
==
phy_id
)
{
return
curr
;
}
curr
=
curr
->
next
;
}
return
0
;
while
(
curr
!=
0
)
{
if
(
curr
->
phy_id
==
phy_id
)
return
curr
;
curr
=
curr
->
next
;
}
NFAPI_TRACE
(
NFAPI_TRACE_ERROR
,
"%s(): could not find P7 connection for phy_id %d
\n
"
,
__func__
,
phy_id
);
return
0
;
}
nfapi_vnf_p7_connection_info_t
*
vnf_p7_connection_info_list_delete
(
vnf_p7_t
*
vnf_p7
,
uint16_t
phy_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