From: Stephen Hemminger <stephen@networkplumber.org>
To: Po Liu <po.liu@nxp.com>
Cc: dsahern@gmail.com, linux-kernel@vger.kernel.org,
netdev@vger.kernel.org, davem@davemloft.net, jhs@mojatatu.com,
vlad@buslov.dev, claudiu.manoil@nxp.com, vladimir.oltean@nxp.com,
alexandru.marginean@nxp.com
Subject: Re: [iproute2-next] action police: make 'mtu' could be set independently in police action
Date: Sun, 28 Jun 2020 13:16:11 -0700 [thread overview]
Message-ID: <20200628131611.48a07e81@hermes.lan> (raw)
In-Reply-To: <20200628014602.13002-1-po.liu@nxp.com>
On Sun, 28 Jun 2020 09:46:02 +0800
Po Liu <po.liu@nxp.com> wrote:
> Current police action must set 'rate' and 'burst'. 'mtu' parameter
> set the max frame size and could be set alone without 'rate' and 'burst'
> in some situation. Offloading to hardware for example, 'mtu' could limit
> the flow max frame size.
>
> Signed-off-by: Po Liu <po.liu@nxp.com>
> ---
> tc/m_police.c | 4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/tc/m_police.c b/tc/m_police.c
> index a5bc20c0..89497f67 100644
> --- a/tc/m_police.c
> +++ b/tc/m_police.c
> @@ -161,8 +161,8 @@ action_ctrl_ok:
> return -1;
>
> /* Must at least do late binding, use TB or ewma policing */
> - if (!rate64 && !avrate && !p.index) {
> - fprintf(stderr, "\"rate\" or \"avrate\" MUST be specified.\n");
> + if (!rate64 && !avrate && !p.index && !mtu) {
> + fprintf(stderr, "\"rate\" or \"avrate\" or \"mtu\"MUST be specified.\n");
Missing blank.
Your message will come out as:
"rate" or "avrate" or "mtu"MUST be specified.
The quotes aren't adding to the readability, why not just remove them instead.
next prev parent reply other threads:[~2020-06-28 20:16 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-06-28 1:46 [iproute2-next] action police: make 'mtu' could be set independently in police action Po Liu
2020-06-28 20:16 ` Stephen Hemminger [this message]
2020-06-29 2:04 ` [v2,iproute2-next 1/2] action police: change the print message quotes style Po Liu
2020-06-29 2:04 ` [v2,iproute2-next 2/2] action police: make 'mtu' could be set independently in police action Po Liu
2020-06-29 6:54 ` [v2,net-next] net:qos: police action offloading parameter 'burst' change to the original value Po Liu
2020-06-30 0:33 ` David Miller
2020-07-05 15:35 ` [v2,iproute2-next 1/2] action police: change the print message quotes style David Ahern
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=20200628131611.48a07e81@hermes.lan \
--to=stephen@networkplumber.org \
--cc=alexandru.marginean@nxp.com \
--cc=claudiu.manoil@nxp.com \
--cc=davem@davemloft.net \
--cc=dsahern@gmail.com \
--cc=jhs@mojatatu.com \
--cc=linux-kernel@vger.kernel.org \
--cc=netdev@vger.kernel.org \
--cc=po.liu@nxp.com \
--cc=vlad@buslov.dev \
--cc=vladimir.oltean@nxp.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).