stats: remove offsets on vpp side 17/28017/3
authorOle Troan <ot@cisco.com>
Tue, 21 Jul 2020 06:46:08 +0000 (08:46 +0200)
committerAndrew Yourtchenko <ayourtch@gmail.com>
Thu, 13 Aug 2020 07:28:13 +0000 (07:28 +0000)
commit7d29e320fb2855a1ddb7a6af09078b8ed636de01
tree52f71f8ab88c29a0b8cb8c0cea27fe7d45a95143
parentff40d8f1b2f4efcf05f21934b423dce8aba8b652
stats: remove offsets on vpp side

Represent pointers directly in shared memory and require clients to adjust for
shared memory segment being mapped at different base address.
Deprecated: stat_segment_pointer() / stat_segment_offset()
Added: stat_segment_adjust()

Bumped the stat segment version to 2.

Type: refactor
Signed-off-by: Ole Troan <ot@cisco.com>
Change-Id: I33e756187b8903b45dcd353e6c1a101b7a4acb79
src/plugins/mactime/mactime_top.c
src/vpp-api/client/stat_client.c
src/vpp-api/client/stat_client.h
src/vpp-api/python/vpp_papi/vpp_stats.py
src/vpp/stats/stat_segment.c
src/vpp/stats/stat_segment.h
src/vpp/stats/stat_segment_shared.h