Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
openairinterface5G
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Worker.N
openairinterface5G
Commits
23650bde
Commit
23650bde
authored
6 years ago
by
Robert Schmidt
Browse files
Options
Downloads
Patches
Plain Diff
Make flexran_agent_handle_stats() respect presence of MAC, RRC CMs
parent
3b3c9dae
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
openair2/ENB_APP/flexran_agent_handler.c
+30
-8
30 additions, 8 deletions
openair2/ENB_APP/flexran_agent_handler.c
with
30 additions
and
8 deletions
openair2/ENB_APP/flexran_agent_handler.c
+
30
−
8
View file @
23650bde
...
...
@@ -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
int
i
;
err_code_t
err_code
;
err_code_t
err_code
=
0
;
xid_t
xid
;
uint32_t
usec_interval
,
sec_interval
;
...
...
@@ -241,16 +241,36 @@ int flexran_agent_handle_stats(mid_t mod_id, const void *params, Protocol__Flexr
//Create a list of all eNB RNTIs and cells
//Set the number of UEs and create list with their RNTIs stats configs
report_config
.
nr_ue
=
flexran_get_mac_num_ues
(
mod_id
);
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
);
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
);
if
(
report_config
.
ue_report_type
==
NULL
)
{
// TODO: Add appropriate error code
err_code
=
-
100
;
goto
error
;
}
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_report_flags
=
ue_flags
;
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
++
)
{
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
;
}
}
//Set the number of CCs and create a list with the cell stats configs
report_config
.
nr_cc
=
MAX_NUM_CCs
;
...
...
@@ -375,13 +395,15 @@ int flexran_agent_handle_stats(mid_t mod_id, const void *params, Protocol__Flexr
goto
error
;
}
free
(
report_config
.
ue_report_type
);
free
(
report_config
.
cc_report_type
);
if
(
report_config
.
ue_report_type
)
free
(
report_config
.
ue_report_type
);
if
(
report_config
.
cc_report_type
)
free
(
report_config
.
cc_report_type
);
return
0
;
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
;
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment