aboutsummaryrefslogtreecommitdiffstats
path: root/src/vnet/policer/policer.h
diff options
context:
space:
mode:
authorBrian Russell <brian@graphiant.com>2021-02-10 13:53:42 +0000
committerNeale Ranns <neale@graphiant.com>2021-02-15 12:15:32 +0000
commit48e26367cfe731d31472e18c1e0f6fe94bc4e9c3 (patch)
tree02216ea7b487311f7c947e7d3e15cebb5e3144f1 /src/vnet/policer/policer.h
parentfd0b399ff6dc246ce989cb592cf27d0015497711 (diff)
policer: add api to bind policer to worker
Add a new api to allow a policer to be bound to a specific worker thread for thread handoff. Type: improvement Signed-off-by: Brian Russell <brian@graphiant.com> Change-Id: I2623a6827843c3d93c0d7b4ad7c2e13611ec1696
Diffstat (limited to 'src/vnet/policer/policer.h')
-rw-r--r--src/vnet/policer/policer.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/vnet/policer/policer.h b/src/vnet/policer/policer.h
index 4d253f749e8..4c2c7419f20 100644
--- a/src/vnet/policer/policer.h
+++ b/src/vnet/policer/policer.h
@@ -15,6 +15,8 @@
#ifndef __included_policer_h__
#define __included_policer_h__
+#include <stdbool.h>
+
#include <vlib/vlib.h>
#include <vnet/vnet.h>
@@ -68,6 +70,7 @@ u8 *format_policer_instance (u8 * s, va_list * va);
clib_error_t *policer_add_del (vlib_main_t *vm, u8 *name,
qos_pol_cfg_params_st *cfg, u32 *policer_index,
u8 is_add);
+int policer_bind_worker (u8 *name, u32 worker, bool bind);
#endif /* __included_policer_h__ */