From: Matthias May <matthias.may@westermo.com>
To: Anton Danilov <littlesmilingcloud@gmail.com>, netdev@vger.kernel.org
Cc: Eric Dumazet <edumazet@kernel.org>,
Jakub Kicinski <kuba@kernel.org>, Paolo Abeni <pabeni@redhat.com>,
"David S. Miller" <davem@davemloft.net>,
Simon Horman <horms@kernel.org>, David Ahern <dsahern@kernel.org>,
Willem de Bruijn <willemb@google.com>,
Ido Schimmel <idosch@nvidia.com>, Florian Westphal <fw@strlen.de>,
William Tu <u9012063@gmail.com>,
Meenakshi Vohra <mvohra@vmware.com>,
Mazin Al Haddad <mazin@getstate.dev>,
Shuah Khan <shuah@kernel.org>,
linux-kselftest@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH net-next v7 5/5] selftests: net: add a test for ip6gretap and ip6erspan with VLAN tags
Date: Thu, 3 Dec 2026 09:37:51 +0100 [thread overview]
Message-ID: <10c07f01-a7dc-452b-be1c-025a8ba28936@westermo.com> (raw)
In-Reply-To: <20261201005941.1536429-6-littlesmilingcloud@gmail.com>
On 01/12/2026 01:59, Anton Danilov wrote:
> Add ip6_gre_vlan_inherit.sh. It sends IPv4 and IPv6 packets with a
> given TTL and TOS through ip6gretap, with and without a key, and
> through ip6erspan v1 and v2, directly and through a VLAN device on top
> of the tunnel, and checks on the receiving side that
>
> - the outer hop limit and traffic class are those of the inner
> packet, with a VLAN tag in front of it or without;
> - on ip6erspan, the COS field of the ERSPAN header is the one that the
> inner TOS asks for, for IPv4 and for IPv6.
>
> The outer header is matched with tc flower and the COS field with tc
> u32, and the packets are counted.
>
> Without the previous patches of this series 10 of the 24 checks fail:
> the hop limit behind a tag on ip6gretap with a key, the hop limit and
> traffic class behind a tag on ip6erspan, and the COS of IPv4 packets on
> ip6erspan.
> *SNIP
Hi Anton
This looks to me like a functional copy of the l2_tos_ttl_inherit.sh
selftest.
This test already asserts that TTL and TOS are correctly inherited for
gretap and ip6gretap.
It does not test anything for ip6erspan, but could be extended to
include it.
Since you're adding a test for ip6erspan, would not the same be needed
for erspan?
BR
Matthias
prev parent reply other threads:[~2026-12-03 8:38 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-12-01 0:59 [PATCH net-next v7 0/5] ip6_gre, erspan: fix inner header handling for VLAN-tagged and short frames Anton Danilov
2026-12-01 0:59 ` [PATCH net-next v7 1/5] erspan: bound the VLAN tag read in erspan_build_header{,_v2}() Anton Danilov
2026-12-01 0:59 ` [PATCH net-next v7 2/5] erspan: take the COS from the mirrored frame, not from the tunnel family Anton Danilov
2026-12-03 3:59 ` netdev-bot+sashiko
2026-12-01 0:59 ` [PATCH net-next v7 3/5] ip6_gre: classify the inner packet once on transmit Anton Danilov
2026-12-01 0:59 ` [PATCH net-next v7 4/5] ip6_gre: go by the inner protocol behind VLAN tags in ip6erspan Anton Danilov
2026-12-03 3:59 ` netdev-bot+sashiko
2026-12-01 0:59 ` [PATCH net-next v7 5/5] selftests: net: add a test for ip6gretap and ip6erspan with VLAN tags Anton Danilov
2026-12-03 3:59 ` netdev-bot+sashiko
2026-12-03 8:37 ` Matthias May [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=10c07f01-a7dc-452b-be1c-025a8ba28936@westermo.com \
--to=matthias.may@westermo.com \
--cc=davem@davemloft.net \
--cc=dsahern@kernel.org \
--cc=edumazet@kernel.org \
--cc=fw@strlen.de \
--cc=horms@kernel.org \
--cc=idosch@nvidia.com \
--cc=kuba@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-kselftest@vger.kernel.org \
--cc=littlesmilingcloud@gmail.com \
--cc=mazin@getstate.dev \
--cc=mvohra@vmware.com \
--cc=netdev@vger.kernel.org \
--cc=pabeni@redhat.com \
--cc=shuah@kernel.org \
--cc=u9012063@gmail.com \
--cc=willemb@google.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
all inboxes | Powered by JetHome®