From fce88656cc1b0da8731a71c4a6efa759e0df3fa8 Mon Sep 17 00:00:00 2001 From: Brian Russell Date: Thu, 18 Feb 2021 10:25:23 +0000 Subject: 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 Change-Id: Ia8d11e62898a58b19d7b27b296f8369baa3e5aa1 --- src/vnet/policer/police.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/vnet/policer/police.h') diff --git a/src/vnet/policer/police.h b/src/vnet/policer/police.h index f780bf65c50..5ad249ef40e 100644 --- a/src/vnet/policer/police.h +++ b/src/vnet/policer/police.h @@ -28,7 +28,8 @@ typedef enum { QOS_ACTION_DROP = 0, QOS_ACTION_TRANSMIT, - QOS_ACTION_MARK_AND_TRANSMIT + QOS_ACTION_MARK_AND_TRANSMIT, + QOS_ACTION_HANDOFF } __clib_packed qos_action_type_en; // This is the hardware representation of the policer. -- cgit 1.2.3-korg