policer: move handoff checks into policer code 45/31345/3
authorBrian Russell <brian@graphiant.com>
Thu, 18 Feb 2021 10:25:23 +0000 (10:25 +0000)
committerNeale Ranns <neale@graphiant.com>
Fri, 19 Feb 2021 10:53:15 +0000 (10:53 +0000)
commitfce88656cc1b0da8731a71c4a6efa759e0df3fa8
tree52d58afa787b5d6b0ffcabc70f99e8313c4875df
parent6e6920d4e096bd158a0057ce0f8dd8a08cbabf72
policer: move handoff checks into policer code

The IP punt policer currently checks if it needs to do worker thread
handoff based on the thread index stored in the policer. Move this
functionality into the policer code so it can be common for all users
of the policer.

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