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
alex037yang
OpenXG-RAN
Commits
23650bde
Commit
23650bde
authored
Oct 29, 2018
by
Robert Schmidt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Make flexran_agent_handle_stats() respect presence of MAC, RRC CMs
parent
3b3c9dae
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
30 additions
and
8 deletions
+30
-8
openair2/ENB_APP/flexran_agent_handler.c
openair2/ENB_APP/flexran_agent_handler.c
+30
-8
No files found.
openair2/ENB_APP/flexran_agent_handler.c
View file @
23650bde
...
@@ -204,7 +204,7 @@ int flexran_agent_handle_stats(mid_t mod_id, const void *params, Protocol__Flexr
...
@@ -204,7 +204,7 @@ int flexran_agent_handle_stats(mid_t mod_id, const void *params, Protocol__Flexr
// TODO: Must resolve conflicts among stats requests
// TODO: Must resolve conflicts among stats requests
int
i
;
int
i
;
err_code_t
err_code
;
err_code_t
err_code
=
0
;
xid_t
xid
;
xid_t
xid
;
uint32_t
usec_interval
,
sec_interval
;
uint32_t
usec_interval
,
sec_interval
;
...
@@ -241,17 +241,37 @@ int flexran_agent_handle_stats(mid_t mod_id, const void *params, Protocol__Flexr
...
@@ -241,17 +241,37 @@ int flexran_agent_handle_stats(mid_t mod_id, const void *params, Protocol__Flexr
//Create a list of all eNB RNTIs and cells
//Create a list of all eNB RNTIs and cells
//Set the number of UEs and create list with their RNTIs stats configs
//Set the number of UEs and create list with their RNTIs stats configs
report_config
.
nr_ue
=
0
;
if
(
flexran_agent_get_rrc_xface
(
mod_id
))
report_config
.
nr_ue
=
flexran_get_rrc_num_ues
(
mod_id
);
else
if
(
flexran_agent_get_mac_xface
(
mod_id
))
report_config
.
nr_ue
=
flexran_get_mac_num_ues
(
mod_id
);
report_config
.
nr_ue
=
flexran_get_mac_num_ues
(
mod_id
);
if
(
flexran_agent_get_rrc_xface
(
mod_id
)
&&
flexran_agent_get_mac_xface
(
mod_id
)
&&
flexran_get_rrc_num_ues
(
mod_id
)
!=
flexran_get_mac_num_ues
(
mod_id
))
{
LOG_E
(
FLEXRAN_AGENT
,
"different numbers of UEs in RRC and MAC
\n
"
);
goto
error
;
}
report_config
.
ue_report_type
=
malloc
(
sizeof
(
ue_report_type_t
)
*
report_config
.
nr_ue
);
report_config
.
ue_report_type
=
malloc
(
sizeof
(
ue_report_type_t
)
*
report_config
.
nr_ue
);
if
(
report_config
.
ue_report_type
==
NULL
)
{
if
(
report_config
.
ue_report_type
==
NULL
)
{
// TODO: Add appropriate error code
// TODO: Add appropriate error code
err_code
=
-
100
;
err_code
=
-
100
;
goto
error
;
goto
error
;
}
}
if
(
flexran_agent_get_rrc_xface
(
mod_id
))
{
rnti_t
rntis
[
report_config
.
nr_ue
];
flexran_get_rrc_rnti_list
(
mod_id
,
rntis
,
report_config
.
nr_ue
);
for
(
i
=
0
;
i
<
report_config
.
nr_ue
;
i
++
)
{
report_config
.
ue_report_type
[
i
].
ue_rnti
=
rntis
[
mod_id
];
report_config
.
ue_report_type
[
i
].
ue_report_flags
=
ue_flags
;
}
}
if
(
flexran_agent_get_mac_xface
(
mod_id
)
&&
!
flexran_agent_get_rrc_xface
(
mod_id
))
{
for
(
i
=
0
;
i
<
report_config
.
nr_ue
;
i
++
)
{
for
(
i
=
0
;
i
<
report_config
.
nr_ue
;
i
++
)
{
report_config
.
ue_report_type
[
i
].
ue_rnti
=
flexran_get_mac_ue_crnti
(
enb_id
,
i
);
report_config
.
ue_report_type
[
i
].
ue_rnti
=
flexran_get_mac_ue_crnti
(
enb_id
,
i
);
report_config
.
ue_report_type
[
i
].
ue_report_flags
=
ue_flags
;
report_config
.
ue_report_type
[
i
].
ue_report_flags
=
ue_flags
;
}
}
}
//Set the number of CCs and create a list with the cell stats configs
//Set the number of CCs and create a list with the cell stats configs
report_config
.
nr_cc
=
MAX_NUM_CCs
;
report_config
.
nr_cc
=
MAX_NUM_CCs
;
report_config
.
cc_report_type
=
malloc
(
sizeof
(
cc_report_type_t
)
*
report_config
.
nr_cc
);
report_config
.
cc_report_type
=
malloc
(
sizeof
(
cc_report_type_t
)
*
report_config
.
nr_cc
);
...
@@ -375,13 +395,15 @@ int flexran_agent_handle_stats(mid_t mod_id, const void *params, Protocol__Flexr
...
@@ -375,13 +395,15 @@ int flexran_agent_handle_stats(mid_t mod_id, const void *params, Protocol__Flexr
goto
error
;
goto
error
;
}
}
if
(
report_config
.
ue_report_type
)
free
(
report_config
.
ue_report_type
);
free
(
report_config
.
ue_report_type
);
if
(
report_config
.
cc_report_type
)
free
(
report_config
.
cc_report_type
);
free
(
report_config
.
cc_report_type
);
return
0
;
return
0
;
error
:
error
:
LOG_E
(
FLEXRAN_AGENT
,
"
errno %d occured
\n
"
,
err_code
);
LOG_E
(
FLEXRAN_AGENT
,
"
%s(): errno %d occured
\n
"
,
__func__
,
err_code
);
return
err_code
;
return
err_code
;
}
}
...
...
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