diff options
author | Brian Russell <brian@graphiant.com> | 2021-02-08 15:33:18 +0000 |
---|---|---|
committer | Neale Ranns <neale@graphiant.com> | 2021-02-11 08:21:56 +0000 |
commit | e3845d79bfa819355ac5085d73f3b8f2ffae2042 (patch) | |
tree | ef78beac6d512cbabb43546e41664b3cda1d05a1 /src/vnet/policer/policer.h | |
parent | 1bb74944a385ea1b8f50b975359cb1c7ca94afb4 (diff) |
policer: use ip dscp
Use the common IP definitions of DSCP rather than duplicating in the
policer code.
Type: improvement
Signed-off-by: Brian Russell <brian@graphiant.com>
Change-Id: Iff4bc789356edc290b9c31eca33e93cf5b6211bf
Diffstat (limited to 'src/vnet/policer/policer.h')
-rw-r--r-- | src/vnet/policer/policer.h | 30 |
1 files changed, 0 insertions, 30 deletions
diff --git a/src/vnet/policer/policer.h b/src/vnet/policer/policer.h index 2e57e4654bd..5253bb6c432 100644 --- a/src/vnet/policer/policer.h +++ b/src/vnet/policer/policer.h @@ -62,36 +62,6 @@ typedef enum VNET_POLICER_N_NEXT, } vnet_policer_next_t; -#define foreach_vnet_dscp \ - _(0 , CS0, "CS0") \ - _(8 , CS1, "CS1") \ - _(10, AF11, "AF11") \ - _(12, AF12, "AF12") \ - _(14, AF13, "AF13") \ - _(16, CS2, "CS2") \ - _(18, AF21, "AF21") \ - _(20, AF22, "AF22") \ - _(22, AF23, "AF23") \ - _(24, CS3, "CS3") \ - _(26, AF31, "AF31") \ - _(28, AF32, "AF32") \ - _(30, AF33, "AF33") \ - _(32, CS4, "CS4") \ - _(34, AF41, "AF41") \ - _(36, AF42, "AF42") \ - _(38, AF43, "AF43") \ - _(40, CS5, "CS5") \ - _(46, EF, "EF") \ - _(48, CS6, "CS6") \ - _(50, CS7, "CS7") - -typedef enum -{ -#define _(v,f,str) VNET_DSCP_##f = v, - foreach_vnet_dscp -#undef _ -} vnet_dscp_t; - u8 *format_policer_instance (u8 * s, va_list * va); clib_error_t *policer_add_del (vlib_main_t * vm, u8 * name, |