diff options
author | Harald Welte <laforge@gnumonks.org> | 2019-06-02 17:36:21 +0200 |
---|---|---|
committer | laforge <laforge@gnumonks.org> | 2019-06-13 15:37:13 +0000 |
commit | b24ef2357032c1ed25c2f95f8ca2e7b4cd013e82 (patch) | |
tree | 1b0f8a5eda17b1636e027e60db4b771c12684f22 /src/common/bts.c | |
parent | 01c539284e85c5d907300e45548d497cca27217b (diff) |
l1sap: Compute statistics on FN advance in PH-RTS.ind
Let's keep some statistics about the min/max/average frame number
advance that we're observing above L1SAP when comparing the time in the
PH-RTS.ind and the frame number we observe in PH-DATA.ind of data
that was received on the uplink.
The statistics are currently only shown in the VTY, but this is a
precursor to using them to correctly advance the LAPDm timers in a
follow-up patch.
Change-Id: I8f739fdb808a614f080afbc4654641ec3df19eb2
Related: OS#2294
Related: OS#3906
Diffstat (limited to 'src/common/bts.c')
-rw-r--r-- | src/common/bts.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/common/bts.c b/src/common/bts.c index 596e5e01..c57d9f4a 100644 --- a/src/common/bts.c +++ b/src/common/bts.c @@ -223,6 +223,11 @@ int bts_init(struct gsm_bts *bts) rc = osmo_fsm_register(&dtx_dl_amr_fsm); OSMO_ASSERT(rc == 0); + bts->fn_stats.min = INT32_MAX; + bts->fn_stats.max = INT32_MIN; + bts->fn_stats.avg_count = 0; + bts->fn_stats.avg_window = 256; + return rc; } |