* [PATCH] meter: fix typo in trTCM params comment
@ 2026-11-29 3:37 xiaoliang yang
2026-11-30 22:17 ` Stephen Hemminger
0 siblings, 1 reply; 2+ messages in thread
From: xiaoliang yang @ 2026-11-29 3:37 UTC (permalink / raw)
To: dev; +Cc: cristian.dumitrescu
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 <xiaoliangyang69@gmail.com>
---
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
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] meter: fix typo in trTCM params comment
2026-11-29 3:37 [PATCH] meter: fix typo in trTCM params comment xiaoliang yang
@ 2026-11-30 22:17 ` Stephen Hemminger
0 siblings, 0 replies; 2+ messages in thread
From: Stephen Hemminger @ 2026-11-30 22:17 UTC (permalink / raw)
To: xiaoliang yang; +Cc: dev, cristian.dumitrescu
On Sun, 29 Nov 2026 11:37:11 +0800
xiaoliang yang <xiaoliangyang69@gmail.com> 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 <xiaoliangyang69@gmail.com>
> ---
> 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.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2026-11-30 22:17 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-11-29 3:37 [PATCH] meter: fix typo in trTCM params comment xiaoliang yang
2026-11-30 22:17 ` Stephen Hemminger
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.