summaryrefslogtreecommitdiff
path: root/tests/accel-cmd/test_cmd_basic.py
diff options
context:
space:
mode:
authorDenys Fedoryshchenko <denys.f@collabora.com>2026-04-29 13:50:48 +0300
committerDenys Fedoryshchenko <denys.f@collabora.com>2026-05-04 03:09:49 +0300
commit55157b5411e374e651c7db78967d2908db9b30e8 (patch)
tree3975b525d08cf8bf3f54057a769ad4098ff3ca6b /tests/accel-cmd/test_cmd_basic.py
parentdd29f19a14a79437928638029bdb43ba1bba8c08 (diff)
downloadaccel-ppp-55157b5411e374e651c7db78967d2908db9b30e8.tar.gz
accel-ppp-55157b5411e374e651c7db78967d2908db9b30e8.zip
l2tp: encapsulate statistics counters
Group the L2TP tunnel, control-session, and data-session statistics in struct l2tp_stat_t and keep the storage private to l2tp.c instead of spreading writable stat_* globals through the module. This keeps the ownership boundary in the L2TP control code while preserving the existing CLI and ACCEL-PPP-MIB counter semantics. Route counter updates through l2tp_stat_*() helpers. Tunnel, control-session, and data-session state transitions no longer open-code individual counter increments/decrements; the update policy now lives beside the L2TP-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 L2TP SNMP starting/active scalars from watched raw pointers to scalar handlers. SNMP now reads through l2tp_stat_starting() and l2tp_stat_active(), removing the old l2tp_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