From: David Ahern <dsahern@gmail.com>
To: "Asbjørn Sloth Tønnesen" <asbjorn@asbjorn.st>, netdev@vger.kernel.org
Cc: Stephen Hemminger <stephen@networkplumber.org>,
Jiri Pirko <jiri@nvidia.com>
Subject: Re: [PATCH iproute2 v3 2/2] tc: pedit: add decrement operation
Date: Fri, 25 Jun 2021 22:45:57 -0600 [thread overview]
Message-ID: <c7be3044-dbaf-9274-e22d-d09672ca3ccd@gmail.com> (raw)
In-Reply-To: <20210618160635.703845-2-asbjorn@asbjorn.st>
On 6/18/21 10:06 AM, Asbjørn Sloth Tønnesen wrote:
> Implement a decrement operation for ttl and hoplimit.
>
> Since this is just syntactic sugar, it goes that:
>
> tc filter add ... action pedit ex munge ip ttl dec ...
> tc filter add ... action pedit ex munge ip6 hoplimit dec ...
>
> is just a more readable version of this:
>
> tc filter add ... action pedit ex munge ip ttl add 0xff ...
> tc filter add ... action pedit ex munge ip6 hoplimit add 0xff ...
>
> This feature was suggested by some pseudo tc examples in Mellanox's
> documentation[1], but wasn't present in neither their mlnx-iproute2
> nor iproute2.
>
> Tested with skip_sw on Mellanox ConnectX-6 Dx.
>
> [1] https://docs.mellanox.com/pages/viewpage.action?pageId=47033989
>
> v3:
> - Use dedicated flags argument in parse_cmd() (David Ahern)
> - Minor rewording of the man page
>
> v2:
> - Fix whitespace issue (Stephen Hemminger)
> - Add to usage info in explain()
>
> Signed-off-by: Asbjørn Sloth Tønnesen <asbjorn@asbjorn.st>
> ---
> man/man8/tc-pedit.8 | 8 +++++++-
> tc/m_pedit.c | 25 +++++++++++++++++++------
> tc/m_pedit.h | 4 ++++
> tc/p_ip.c | 2 +-
> tc/p_ip6.c | 2 +-
> 5 files changed, 32 insertions(+), 9 deletions(-)
>
applied both to iproute2-next. Thanks,
prev parent reply other threads:[~2021-06-26 4:46 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-06-18 16:06 [PATCH iproute2 1/2] tc: pedit: parse_cmd: add flags argument Asbjørn Sloth Tønnesen
2021-06-18 16:06 ` [PATCH iproute2 v3 2/2] tc: pedit: add decrement operation Asbjørn Sloth Tønnesen
2021-06-22 15:39 ` David Ahern
2021-06-24 20:24 ` Jamal Hadi Salim
2021-06-25 19:21 ` Asbjørn Sloth Tønnesen
2021-06-26 4:45 ` David Ahern [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=c7be3044-dbaf-9274-e22d-d09672ca3ccd@gmail.com \
--to=dsahern@gmail.com \
--cc=asbjorn@asbjorn.st \
--cc=jiri@nvidia.com \
--cc=netdev@vger.kernel.org \
--cc=stephen@networkplumber.org \
/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).