policer: add thread index to policer 85/30885/2
authorBrian Russell <brian@graphiant.com>
Tue, 19 Jan 2021 16:46:08 +0000 (16:46 +0000)
committerNeale Ranns <neale@graphiant.com>
Thu, 28 Jan 2021 10:25:41 +0000 (10:25 +0000)
commit89cd74427277692f77f2d38e79495592ad440a68
tree8bc08249b3cbefe58e67b2609ad7cbe7ea081f3a
parent3d5f08a825a978cd6853989a5df8c9b9811e7fb8
policer: add thread index to policer

Add a thread index field to the policer structure. The policer is not
thread safe. The thread index will be used to tie it to one worker
thread and other workers can use thread handoff.

Type: improvement
Signed-off-by: Brian Russell <brian@graphiant.com>
Change-Id: I650e983a9ed800bf660d6f06368717484c4a83bf
src/vnet/policer/police.h
src/vnet/policer/policer.c