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
canghaiwuhen
OpenXG-RAN
Commits
767eaf5b
Commit
767eaf5b
authored
Jan 19, 2019
by
Robert Schmidt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Initialize PDCP stats when UE is added
parent
6f9f2d89
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
36 additions
and
0 deletions
+36
-0
openair2/LAYER2/PDCP_v10.1.0/pdcp.c
openair2/LAYER2/PDCP_v10.1.0/pdcp.c
+36
-0
No files found.
openair2/LAYER2/PDCP_v10.1.0/pdcp.c
View file @
767eaf5b
...
...
@@ -1186,6 +1186,41 @@ pdcp_run (
VCD_SIGNAL_DUMPER_DUMP_FUNCTION_BY_NAME
(
VCD_SIGNAL_DUMPER_FUNCTIONS_PDCP_RUN
,
VCD_FUNCTION_OUT
);
}
void
pdcp_init_stats_UE
(
module_id_t
mod
,
uint16_t
uid
)
{
Pdcp_stats_tx_window_ms
[
mod
][
uid
]
=
100
;
Pdcp_stats_rx_window_ms
[
mod
][
uid
]
=
100
;
for
(
int
i
=
0
;
i
<
NB_RB_MAX
;
++
i
)
{
Pdcp_stats_tx_bytes
[
mod
][
uid
][
i
]
=
0
;
Pdcp_stats_tx_bytes_w
[
mod
][
uid
][
i
]
=
0
;
Pdcp_stats_tx_bytes_tmp_w
[
mod
][
uid
][
i
]
=
0
;
Pdcp_stats_tx
[
mod
][
uid
][
i
]
=
0
;
Pdcp_stats_tx_w
[
mod
][
uid
][
i
]
=
0
;
Pdcp_stats_tx_tmp_w
[
mod
][
uid
][
i
]
=
0
;
Pdcp_stats_tx_sn
[
mod
][
uid
][
i
]
=
0
;
Pdcp_stats_tx_throughput_w
[
mod
][
uid
][
i
]
=
0
;
Pdcp_stats_tx_aiat
[
mod
][
uid
][
i
]
=
0
;
Pdcp_stats_tx_aiat_w
[
mod
][
uid
][
i
]
=
0
;
Pdcp_stats_tx_aiat_tmp_w
[
mod
][
uid
][
i
]
=
0
;
Pdcp_stats_tx_iat
[
mod
][
uid
][
i
]
=
0
;
Pdcp_stats_rx
[
mod
][
uid
][
i
]
=
0
;
Pdcp_stats_rx_w
[
mod
][
uid
][
i
]
=
0
;
Pdcp_stats_rx_tmp_w
[
mod
][
uid
][
i
]
=
0
;
Pdcp_stats_rx_bytes
[
mod
][
uid
][
i
]
=
0
;
Pdcp_stats_rx_bytes_w
[
mod
][
uid
][
i
]
=
0
;
Pdcp_stats_rx_bytes_tmp_w
[
mod
][
uid
][
i
]
=
0
;
Pdcp_stats_rx_sn
[
mod
][
uid
][
i
]
=
0
;
Pdcp_stats_rx_goodput_w
[
mod
][
uid
][
i
]
=
0
;
Pdcp_stats_rx_aiat
[
mod
][
uid
][
i
]
=
0
;
Pdcp_stats_rx_aiat_w
[
mod
][
uid
][
i
]
=
0
;
Pdcp_stats_rx_aiat_tmp_w
[
mod
][
uid
][
i
]
=
0
;
Pdcp_stats_rx_iat
[
mod
][
uid
][
i
]
=
0
;
Pdcp_stats_rx_outoforder
[
mod
][
uid
][
i
]
=
0
;
}
}
void
pdcp_add_UE
(
const
protocol_ctxt_t
*
const
ctxt_pP
){
int
i
,
ue_flag
=
1
;
//, ret=-1; to be decied later
for
(
i
=
0
;
i
<
MAX_MOBILES_PER_ENB
;
i
++
){
...
...
@@ -1201,6 +1236,7 @@ void pdcp_add_UE(const protocol_ctxt_t* const ctxt_pP){
pdcp_enb
[
ctxt_pP
->
module_id
].
uid
[
i
]
=
i
;
pdcp_enb
[
ctxt_pP
->
module_id
].
num_ues
++
;
LOG_I
(
PDCP
,
"add new uid is %d %x
\n\n
"
,
i
,
ctxt_pP
->
rnti
);
pdcp_init_stats_UE
(
ctxt_pP
->
module_id
,
i
);
// ret=1;
break
;
}
...
...
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