aboutsummaryrefslogtreecommitdiffstats
path: root/src/vnet/policer/policer.api
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.api
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.api')
-rw-r--r--src/vnet/policer/policer.api17
1 files changed, 17 insertions, 0 deletions
diff --git a/src/vnet/policer/policer.api b/src/vnet/policer/policer.api
index 946cc357b80..c3b8d7cd061 100644
--- a/src/vnet/policer/policer.api
+++ b/src/vnet/policer/policer.api
@@ -17,6 +17,23 @@ option version = "2.0.0";
import "vnet/policer/policer_types.api";
+/** \brief policer bind: Associate/disassociate a policer with a worker thread.
+ @param client_index - opaque cookie to identify the sender
+ @param context - sender context, to match reply w/ request
+ @param name - policer name to bind
+ @param worker_index - the worker thread to bind to
+ @param bind_enable - Associate/disassociate
+*/
+autoreply define policer_bind
+{
+ u32 client_index;
+ u32 context;
+
+ string name[64];
+ u32 worker_index;
+ bool bind_enable;
+};
+
/** \brief Add/del policer
@param client_index - opaque cookie to identify the sender
@param context - sender context, to match reply w/ request