FlexRAN refactor+format MAC stats function
This commit is contained in:
File diff suppressed because it is too large
Load Diff
@@ -51,14 +51,15 @@ int flexran_agent_mac_destroy_sr_info(Protocol__FlexranMessage *msg);
|
|||||||
int flexran_agent_mac_sf_trigger(mid_t mod_id, const void *params, Protocol__FlexranMessage **msg);
|
int flexran_agent_mac_sf_trigger(mid_t mod_id, const void *params, Protocol__FlexranMessage **msg);
|
||||||
int flexran_agent_mac_destroy_sf_trigger(Protocol__FlexranMessage *msg);
|
int flexran_agent_mac_destroy_sf_trigger(Protocol__FlexranMessage *msg);
|
||||||
|
|
||||||
/* Statistics reply protocol message constructor and destructor */
|
/* Statistics reply protocol message constructors (for UE and cell stats) and destructor */
|
||||||
int flexran_agent_mac_stats_reply(mid_t mod_id,
|
int flexran_agent_mac_stats_reply_ue(mid_t mod_id,
|
||||||
Protocol__FlexUeStatsReport **ue_report,
|
Protocol__FlexUeStatsReport **ue_report,
|
||||||
int n_ue,
|
int n_ue,
|
||||||
uint32_t ue_flags,
|
uint32_t ue_flags);
|
||||||
Protocol__FlexCellStatsReport **cell_report,
|
int flexran_agent_mac_stats_reply_cell(mid_t mod_id,
|
||||||
int n_cc,
|
Protocol__FlexCellStatsReport **cell_report,
|
||||||
uint32_t cc_flags);
|
int n_cc,
|
||||||
|
uint32_t cc_flags);
|
||||||
int flexran_agent_mac_destroy_stats_reply(Protocol__FlexStatsReply *reply);
|
int flexran_agent_mac_destroy_stats_reply(Protocol__FlexStatsReply *reply);
|
||||||
|
|
||||||
/* DL MAC scheduling decision protocol message constructor (empty command) and destructor */
|
/* DL MAC scheduling decision protocol message constructor (empty command) and destructor */
|
||||||
|
|||||||
@@ -297,9 +297,8 @@ int flexran_agent_stats_reply(mid_t enb_id,
|
|||||||
|
|
||||||
/* MAC reply split */
|
/* MAC reply split */
|
||||||
if (flexran_agent_get_mac_xface(enb_id)
|
if (flexran_agent_get_mac_xface(enb_id)
|
||||||
&& flexran_agent_mac_stats_reply(enb_id,
|
&& (flexran_agent_mac_stats_reply_ue(enb_id, ue_report, n_ue, ue_flags) < 0
|
||||||
ue_report, n_ue, ue_flags,
|
|| flexran_agent_mac_stats_reply_cell(enb_id, cell_report, n_cc, cell_flags) < 0)) {
|
||||||
cell_report, n_cc, cell_flags) < 0) {
|
|
||||||
err_code = PROTOCOL__FLEXRAN_ERR__MSG_BUILD;
|
err_code = PROTOCOL__FLEXRAN_ERR__MSG_BUILD;
|
||||||
goto error;
|
goto error;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user