On Sun, 29 Nov 2026 11:37:11 +0800
xiaoliang yang <[email protected]> wrote:

> The comment referenced EBS, but struct rte_meter_trtcm_params has no
> EBS field; the peak burst size field is PBS. Change "Both CBS or EBS"
> to "Both CBS and PBS" to match the struct fields and the validation in
> rte_meter.c, which rejects zero CBS and PBS.
> 
> Signed-off-by: Yang Xiaoliang <[email protected]>
> ---
>  lib/meter/rte_meter.h | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/lib/meter/rte_meter.h b/lib/meter/rte_meter.h
> index ab2380c154..7bd728c609 100644
> --- a/lib/meter/rte_meter.h
> +++ b/lib/meter/rte_meter.h
> @@ -46,7 +46,7 @@ struct rte_meter_srtcm_params {
> 
>  /** trTCM parameters per metered traffic flow. The CIR, PIR, CBS and
> PBS parameters
>  only count bytes of IP packets and do not include link specific
> headers. PIR has to
> -be greater than or equal to CIR. Both CBS or EBS have to be greater
> than zero. */
> +be greater than or equal to CIR. Both CBS and PBS have to be greater
> than zero. */
>  struct rte_meter_trtcm_params {
>         uint64_t cir; /**< Committed Information Rate (CIR). Measured
> in bytes per second. */
>         uint64_t pir; /**< Peak Information Rate (PIR). Measured in
> bytes per second. */
> --
> 2.43.0

Patch is getting corrupted by line wrapping in your mailer.

Reply via email to