[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <7433f9d1-8a5b-5d9a-da16-815c67bcbe0a@gmail.com>
Date: Mon, 2 Aug 2021 10:28:42 -0600
From: David Ahern <dsahern@...il.com>
To: Peilin Ye <yepeilin.cs@...il.com>, netdev@...r.kernel.org,
Stephen Hemminger <stephen@...workplumber.org>,
Jamal Hadi Salim <jhs@...atatu.com>,
Cong Wang <xiyou.wangcong@...il.com>,
Jiri Pirko <jiri@...nulli.us>
Cc: Cong Wang <cong.wang@...edance.com>,
Peilin Ye <peilin.ye@...edance.com>
Subject: Re: [PATCH iproute2-next] tc/skbmod: Introduce SKBMOD_F_ECN option
On 7/21/21 5:20 PM, Peilin Ye wrote:
> From: Peilin Ye <peilin.ye@...edance.com>
>
> Recently we added SKBMOD_F_ECN option support to the kernel; support it in
> the tc-skbmod(8) front end, and update its man page accordingly.
>
> The 2 least significant bits of the Traffic Class field in IPv4 and IPv6
> headers are used to represent different ECN states [1]:
>
> 0b00: "Non ECN-Capable Transport", Non-ECT
> 0b10: "ECN Capable Transport", ECT(0)
> 0b01: "ECN Capable Transport", ECT(1)
> 0b11: "Congestion Encountered", CE
>
> This new option, "ecn", marks ECT(0) and ECT(1) IPv{4,6} packets as CE,
> which is useful for ECN-based rate limiting. For example:
>
> $ tc filter add dev eth0 parent 1: protocol ip prio 10 \
> u32 match ip protocol 1 0xff flowid 1:2 \
> action skbmod \
> ecn
>
> The updated tc-skbmod SYNOPSIS looks like the following:
>
> tc ... action skbmod { set SETTABLE | swap SWAPPABLE | ecn } ...
>
> Only one of "set", "swap" or "ecn" shall be used in a single tc-skbmod
> command. Trying to use more than one of them at a time is considered
> undefined behavior; pipe multiple tc-skbmod commands together instead.
> "set" and "swap" only affect Ethernet packets, while "ecn" only affects
> IP packets.
>
> Depends on kernel patch "net/sched: act_skbmod: Add SKBMOD_F_ECN option
> support", as well as iproute2 patch "tc/skbmod: Remove misinformation
> about the swap action".
>
> [1] https://en.wikipedia.org/wiki/Explicit_Congestion_Notification
>
> Reviewed-by: Cong Wang <cong.wang@...edance.com>
> Signed-off-by: Peilin Ye <peilin.ye@...edance.com>
> ---
> Hi all,
>
> The corresponding kernel patch is here, which is currently pending
> for review:
> https://lore.kernel.org/netdev/f5c5a81d6674a8f4838684ac52ed66da83f92499.1626899889.git.peilin.ye@bytedance.com/T/#u
>
> It also depends on this iproute2 patch, which is also pending:
> https://lore.kernel.org/netdev/20210720192145.20166-1-yepeilin.cs@gmail.com/
>
> Thanks,
> Peilin Ye
>
man page update has conflicts; please rebase.
Thanks,
Powered by blists - more mailing lists