policer: improve policer struct 85/31285/3
authorBrian Russell <brian@graphiant.com>
Mon, 15 Feb 2021 11:49:42 +0000 (11:49 +0000)
committerNeale Ranns <neale@graphiant.com>
Mon, 15 Feb 2021 16:18:32 +0000 (16:18 +0000)
commit54be0cc044f445853fae7b8995c477605250af16
treec0be40e818039fa620efda5bb85e7535f63ef296
parent1a3e08a7197addb1c07e66c1b1da3286c9bcb140
policer: improve policer struct

Ensure policer struct is cache aligned and fits in one cache line.
Give it a simpler name to reflect its job as the representation of
a policer.

Type: improvement
Signed-off-by: Brian Russell <brian@graphiant.com>
Change-Id: If1ae4931c818b86eee20306e503f4e5d6b84bd0d
src/plugins/unittest/policer_test.c
src/vnet/ip/ip_punt_drop.h
src/vnet/policer/node_funcs.c
src/vnet/policer/police.h
src/vnet/policer/police_inlines.h
src/vnet/policer/policer.c
src/vnet/policer/policer.h
src/vnet/policer/policer_api.c
src/vnet/policer/xlate.c
src/vnet/policer/xlate.h