vom: Add support for new stats 22/16122/24
authorMohsin Kazmi <sykazmi@cisco.com>
Wed, 21 Nov 2018 18:00:46 +0000 (19:00 +0100)
committerNeale Ranns <nranns@cisco.com>
Thu, 13 Dec 2018 07:46:02 +0000 (07:46 +0000)
commit51edc3ab01e0af58d457da97bf6ca9cc3ebc6b8d
tree61030afdb69ed1952021dad99fa209a280d68a49
parenteb6c7999477cfbca77223be3ef7f11528da9f093
vom: Add support for new stats

This patch deprecates old stats and adds support for
new stats.

This implements the PULL design where client will enable
stats on objects (i.e. interfaces, etc), register a call
back function which will run once stats will be ready for
enabled object and call HW::read_stats() periodically to
read stats for enabled objects from VPP.

Change-Id: I32525a417427be87408d01f8bc93a731602ff690
Signed-off-by: Mohsin Kazmi <sykazmi@cisco.com>
14 files changed:
extras/vom/CMakeLists.txt
extras/vom/vom/CMakeLists.txt
extras/vom/vom/hw.cpp
extras/vom/vom/hw.hpp
extras/vom/vom/interface.cpp
extras/vom/vom/interface.hpp
extras/vom/vom/interface_cmds.cpp
extras/vom/vom/interface_cmds.hpp
extras/vom/vom/stat_client.cpp [new file with mode: 0644]
extras/vom/vom/stat_client.hpp [new file with mode: 0644]
extras/vom/vom/stat_reader.cpp [new file with mode: 0644]
extras/vom/vom/stat_reader.hpp [new file with mode: 0644]
extras/vom/vom/test_stats.cpp [new file with mode: 0644]
test/ext/vom_test.cpp