diff options
author | Brian Russell <brian@graphiant.com> | 2021-02-17 15:51:45 +0000 |
---|---|---|
committer | Neale Ranns <neale@graphiant.com> | 2021-02-19 10:46:58 +0000 |
commit | b046830173a95b9f2d72865b3389174b7b7ff5d9 (patch) | |
tree | 83521ea1fd26e0f4de8d35d3ac0bfe28dcd0e754 /src/vnet/policer/policer.h | |
parent | 15c18e3e40d3bf754e5b6969c7478ad9f1d5e95b (diff) |
policer: add api to configure input policing
Add a new API to apply a policer to an input interface.
Type: improvement
Signed-off-by: Brian Russell <brian@graphiant.com>
Change-Id: Ie8aff9120149b63d85363a9a5afdcaed60a93700
Diffstat (limited to 'src/vnet/policer/policer.h')
-rw-r--r-- | src/vnet/policer/policer.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/vnet/policer/policer.h b/src/vnet/policer/policer.h index 9a6de1490a5..9f090b1bb74 100644 --- a/src/vnet/policer/policer.h +++ b/src/vnet/policer/policer.h @@ -63,6 +63,7 @@ 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); +int policer_input (u8 *name, u32 sw_if_index, bool apply); #endif /* __included_policer_h__ */ |