All of lore.kernel.org
 help / color / mirror / Atom feed
From: Stephen Hemminger <stephen@networkplumber.org>
To: xiaoliang yang <xiaoliangyang69@gmail.com>
Cc: dev@dpdk.org, cristian.dumitrescu@intel.com
Subject: Re: [PATCH] meter: fix typo in trTCM params comment
Date: Mon, 30 Nov 2026 14:17:22 -0800	[thread overview]
Message-ID: <20261130141722.29e0a464@phoenix.local> (raw)
In-Reply-To: <CADzw_-kHt_jnnt_Me5A_oTF+ekwsrXZnxnEwkx2JKeChUFQuVA@mail.gmail.com>

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.

      reply	other threads:[~2026-11-30 22:17 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-29  3:37 [PATCH] meter: fix typo in trTCM params comment xiaoliang yang
2026-11-30 22:17 ` Stephen Hemminger [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20261130141722.29e0a464@phoenix.local \
    --to=stephen@networkplumber.org \
    --cc=cristian.dumitrescu@intel.com \
    --cc=dev@dpdk.org \
    --cc=xiaoliangyang69@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.