ip: do policer thread handoff from punt policers 88/30888/2
authorBrian Russell <brian@graphiant.com>
Thu, 21 Jan 2021 14:44:09 +0000 (14:44 +0000)
committerNeale Ranns <neale@graphiant.com>
Thu, 28 Jan 2021 10:27:19 +0000 (10:27 +0000)
commit1b2e16ac7703681a66edd589fd1f6be26b9f1661
tree8a397709d31acb1f75e554034b34f5c5300dcf64
parent97de8a2d2faad42ff6c36807ec1e21bf9a0d9c91
ip: do policer thread handoff from punt policers

Pass packets arriving at the ip[46] punt policer nodes to punt policer
handoff nodes if the worker thread they arrive on is not the same one
configured in the policer. Initially, the policer will be tied to the
worker thread that it first received a packet on. This will be expanded
in future to be a configuration API option.

Type: improvement
Signed-off-by: Brian Russell <brian@graphiant.com>
Change-Id: Ic39d936084c354af1859ad3d946da6cd0f6e34d9
src/vnet/ip/ip4_punt_drop.c
src/vnet/ip/ip6_punt_drop.c
src/vnet/ip/ip_punt_drop.h