From ed5f291a2283dd2882a39a3019e82fd325079631 Mon Sep 17 00:00:00 2001 From: Maxime Peim Date: Thu, 17 Nov 2022 15:29:10 +0000 Subject: policer: adding documentation Type: docs Several kinds of policers are implemented in VPP. However, they could differ from the RFCs it is said they are from. Additionally, the CLI command's help has been updated with the current list of acceptable parameters. Signed-off-by: Maxime Peim Change-Id: Ic9bf94e1094bea0fcc87ccaa882c2c5f88824041 --- src/vnet/policer/policer.c | 18 ++++++++++++++---- 1 file changed, 14 insertions(+), 4 deletions(-) (limited to 'src/vnet/policer/policer.c') diff --git a/src/vnet/policer/policer.c b/src/vnet/policer/policer.c index 9dd50b83d24..8389a5ead48 100644 --- a/src/vnet/policer/policer.c +++ b/src/vnet/policer/policer.c @@ -694,13 +694,23 @@ done: VLIB_CLI_COMMAND (configure_policer_command, static) = { .path = "configure policer", - .short_help = "configure policer name ", + .short_help = "configure policer name [type 1r2c | 1r3c | 2r3c-2698 " + "| 2r3c-4115] [color-aware] [cir ] [cb ] [eir ] " + "[eb ] [rate kbps | pps] [round closest | up | down] " + "[conform-action drop | transmit | mark-and-transmit ] " + "[exceed-action drop | transmit | mark-and-transmit ] " + "[violate-action drop | transmit | mark-and-transmit ]", .function = policer_add_command_fn, }; VLIB_CLI_COMMAND (policer_add_command, static) = { .path = "policer add", - .short_help = "policer name ", + .short_help = "policer name [type 1r2c | 1r3c | 2r3c-2698 | " + "2r3c-4115] [color-aware] [cir ] [cb ] [eir ] " + "[eb ] [rate kbps | pps] [round closest | up | down] " + "[conform-action drop | transmit | mark-and-transmit ] " + "[exceed-action drop | transmit | mark-and-transmit ] " + "[violate-action drop | transmit | mark-and-transmit ]", .function = policer_add_command_fn, }; @@ -718,14 +728,14 @@ VLIB_CLI_COMMAND (policer_bind_command, static) = { VLIB_CLI_COMMAND (policer_input_command, static) = { .path = "policer input", - .short_help = "policer input [unapply] name ", + .short_help = "policer input [unapply] name ", .function = policer_input_command_fn, .function_arg = VLIB_RX, }; VLIB_CLI_COMMAND (policer_output_command, static) = { .path = "policer output", - .short_help = "policer output [unapply] name ", + .short_help = "policer output [unapply] name ", .function = policer_input_command_fn, .function_arg = VLIB_TX, }; -- cgit 1.2.3-korg