diff options
author | Harald Welte <laforge@osmocom.org> | 2021-01-31 11:54:02 +0100 |
---|---|---|
committer | Harald Welte <laforge@osmocom.org> | 2021-02-01 09:39:29 +0100 |
commit | 76346079e8e7ee86121bde83b2338f06cd4f7ead (patch) | |
tree | 0ff77cc8fdc19e76bb13f1fb1e49fb2e99fba68c /src/gb/gprs_ns2_internal.h | |
parent | 97ccbf71b311639f6668fcb952806a3c0931d114 (diff) |
ns2: Introduce a per-bind stat_item group with backlog length
The backlog length indicates the instantaneous length of the backlog.
Change-Id: I1c55b4619b1221d7e607ace58649323407faf86b
Diffstat (limited to 'src/gb/gprs_ns2_internal.h')
-rw-r--r-- | src/gb/gprs_ns2_internal.h | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/gb/gprs_ns2_internal.h b/src/gb/gprs_ns2_internal.h index f3c68f50..64629071 100644 --- a/src/gb/gprs_ns2_internal.h +++ b/src/gb/gprs_ns2_internal.h @@ -72,10 +72,14 @@ enum nsvc_timer_mode { _NSVC_TIMER_NR, }; -enum ns_stat { +enum ns2_vc_stat { NS_STAT_ALIVE_DELAY, }; +enum ns2_bind_stat { + NS2_BIND_STAT_BACKLOG_LEN, +}; + /*! Osmocom NS2 VC create status */ enum ns2_cs { NS2_CS_CREATED, /*!< A NSVC object has been created */ @@ -129,6 +133,7 @@ struct gprs_ns2_inst { /*! workaround for rate counter until rate counter accepts char str as index */ uint32_t nsvc_rate_ctr_idx; + uint32_t bind_rate_ctr_idx; /*! libmnl netlink socket for link state monitoring */ struct osmo_mnl *linkmon_mnl; @@ -251,6 +256,8 @@ struct gprs_ns2_vc_bind { /*! allow to show information for the vty */ void (*dump_vty)(const struct gprs_ns2_vc_bind *bind, struct vty *vty, bool stats); + + struct osmo_stat_item_group *statg; }; struct gprs_ns2_vc_driver { |