policer: add policer handoff 87/30887/2
authorBrian Russell <brian@graphiant.com>
Tue, 19 Jan 2021 16:50:56 +0000 (16:50 +0000)
committerNeale Ranns <neale@graphiant.com>
Thu, 28 Jan 2021 10:26:35 +0000 (10:26 +0000)
commit97de8a2d2faad42ff6c36807ec1e21bf9a0d9c91
tree0d29bf8de5d9a6489a8cd485ba25bed0a51152f5
parentbaebb22c877d98c891d4d7a20ae23dc07f918edd
policer: add policer handoff

Add thread handoff for packets being policed. Note that the handoff
currently requires the policer index to be passed in. This is suitable
for use in the ip[46] punt paths where each policer node will only
ever use a single policer. For the more general case, this will be
expanded in future to use a policer index stored in packet metadata.

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