summaryrefslogtreecommitdiff
path: root/tests/accel-cmd/test_cmd_basic.py
diff options
context:
space:
mode:
authorDenys Fedoryshchenko <denys.f@collabora.com>2026-04-29 14:28:00 +0300
committerDenys Fedoryshchenko <denys.f@collabora.com>2026-05-04 03:09:49 +0300
commit770550921ae2d084168cb0b9d8d66f783cbdb69d (patch)
tree1171b7bc50439791ea4baee8cbface7f0e19f2f9 /tests/accel-cmd/test_cmd_basic.py
parent25174419a520d20d0c78b89eafc34c2ee9f896b5 (diff)
downloadaccel-ppp-770550921ae2d084168cb0b9d8d66f783cbdb69d.tar.gz
accel-ppp-770550921ae2d084168cb0b9d8d66f783cbdb69d.zip
ipoe: encapsulate statistics counters
Group the IPOE starting, active, and delayed offer statistics in struct ipoe_stat_t and keep the storage private to ipoe.c instead of exposing writable stat_* globals. This keeps ownership inside the IPOE control code while preserving the existing CLI and ACCEL-PPP-MIB counter semantics. Route counter updates through ipoe_stat_*() helpers. Session setup, activation, teardown, and delayed offer queue paths no longer open-code individual counter increments/decrements; the update policy now lives beside the IPOE-owned storage and uses relaxed atomic operations for the simple state counters. Make the CLI show-stat path render from a local snapshot and convert the IPOE SNMP starting/active scalars from watched raw pointers to scalar handlers. SNMP now reads through ipoe_stat_starting() and ipoe_stat_active(), removing the old ipoe_get_stat() pointer escape hatch. Signed-off-by: Denys Fedoryshchenko <denys.f@collabora.com>
Diffstat (limited to 'tests/accel-cmd/test_cmd_basic.py')
0 files changed, 0 insertions, 0 deletions