From: Omar Ramadan <omar@blockcast.net>
To: netdev-bot+sashiko@kernel.org
Cc: ap420073@gmail.com, andrew+netdev@lunn.ch, davem@davemloft.net,
edumazet@kernel.org, kuba@kernel.org, pabeni@redhat.com,
netdev@vger.kernel.org, linux-kernel@vger.kernel.org,
horms@kernel.org
Subject: Re: [PATCH net-next v2 3/12] amt: key relay tunnels on a union amt_addr endpoint
Date: Fri, 27 Nov 2026 09:44:26 +0000 [thread overview]
Message-ID: <20261127094427.2962443-1-omar@blockcast.net> (raw)
In-Reply-To: <179572061610.3135.16297939691113808529@kernel.org>
On Thu, 26 Nov 2026 19:16:56 +0000, netdev-bot+sashiko@kernel.org wrote:
> Does an exact 16-byte compare still make the per-source cap work on an
> IPv6 relay?
No. Counting per /128 lets one host that owns a /64 open the cap's worth
of tunnels from each of its addresses, and the MAC check only shows that
the sender can receive at the address it used. Eight addresses and the
default 16 per source fill a table of 128.
v3 counts the tunnels of one source with amt_same_source(), which
compares the first 64 bits of an IPv6 address and the whole of an IPv4
one. Both the early check in amt_request_handler() and the one in
amt_tunnel_get_or_create() use it. A tunnel is still found by its full
endpoint, so gateways in one /64 each keep their own tunnel and share
the cap. Patch 11 now has a case for it: with max_tunnels 16, which
allows two per source, two gateways fill their /64 and a third one in
it, with an address of its own, gets no Membership Query and no
multicast, while a gateway in another /64 gets both.
The /64 is fixed, not configurable: the cap is a bound on one host, and
a host that is given less than a /64 is simply counted with its
neighbours.
> The commit message only says that the per-source count "compares the
> same way".
It says what the count does now.
I will send v3.
pw-bot: cr
--
Omar
next prev parent reply other threads:[~2026-11-27 9:44 UTC|newest]
Thread overview: 25+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-25 19:14 [PATCH net-next v2 00/12] amt: add an IPv6 outer transport Omar Ramadan
2026-11-25 19:14 ` [PATCH net-next v2 01/12] amt: create an AF_INET6 encapsulation socket for an IPv6 outer address Omar Ramadan
2026-11-25 19:14 ` [PATCH net-next v2 02/12] amt: send the Relay Advertisement over IPv6 Omar Ramadan
2026-11-26 19:16 ` netdev-bot+sashiko
2026-11-25 19:14 ` [PATCH net-next v2 03/12] amt: key relay tunnels on a union amt_addr endpoint Omar Ramadan
2026-11-26 19:16 ` netdev-bot+sashiko
2026-11-27 9:44 ` Omar Ramadan [this message]
2026-11-25 19:14 ` [PATCH net-next v2 04/12] amt: send the Membership Query over IPv6 Omar Ramadan
2026-11-26 19:16 ` netdev-bot+sashiko
2026-11-25 19:14 ` [PATCH net-next v2 05/12] amt: forward multicast data " Omar Ramadan
2026-11-26 19:16 ` netdev-bot+sashiko
2026-11-27 9:44 ` [PATCH net-next v2 5/12] " Omar Ramadan
2026-11-25 19:14 ` [PATCH net-next v2 06/12] amt: size the encapsulation headroom by the outer IP version Omar Ramadan
2026-11-26 19:17 ` netdev-bot+sashiko
2026-11-25 19:14 ` [PATCH net-next v2 07/12] amt: send the AMT gateway control plane over IPv6 Omar Ramadan
2026-11-25 19:14 ` [PATCH net-next v2 08/12] amt: receive " Omar Ramadan
2026-11-26 19:17 ` netdev-bot+sashiko
2026-11-25 19:14 ` [PATCH net-next v2 09/12] amt: add netlink attributes for an IPv6 outer transport Omar Ramadan
2026-11-25 19:14 ` [PATCH net-next v2 10/12] MAINTAINERS: amt: cover the amt headers and selftests Omar Ramadan
2026-11-25 19:14 ` [PATCH net-next v2 11/12] selftests: net: add amt_v6.sh for an IPv6 outer transport Omar Ramadan
2026-11-26 19:17 ` netdev-bot+sashiko
2026-11-27 9:44 ` Omar Ramadan
2026-11-25 19:14 ` [PATCH net-next v2 12/12] selftests: net: add amt_gw_v6.sh for the IPv6 netlink attributes Omar Ramadan
2026-11-26 19:17 ` netdev-bot+sashiko
2026-11-27 9:44 ` Omar Ramadan
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=20261127094427.2962443-1-omar@blockcast.net \
--to=omar@blockcast.net \
--cc=andrew+netdev@lunn.ch \
--cc=ap420073@gmail.com \
--cc=davem@davemloft.net \
--cc=edumazet@kernel.org \
--cc=horms@kernel.org \
--cc=kuba@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=netdev-bot+sashiko@kernel.org \
--cc=netdev@vger.kernel.org \
--cc=pabeni@redhat.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