Re: [PATCH net-next v2 04/12] amt: send the Membership Query over IPv6
From: netdev-bot+sashiko
Date: Thu Nov 26 2026 - 14:17:15 EST
Thank you for your contribution! Sashiko AI review found more severe
issue(s) in other patches of this series. This mail is only an FYI, in case
you want to address the nit picks below when you respin.
Low priority / nit picks for your consideration:
- [Low] This patch changes `daddr` in amt_send_membership_query()
(drivers/net/amt.c) from `__be32 daddr` to `const union amt_addr…
--
amt: send the Membership Query over IPv6
This moves the routing and transmit step of amt_send_membership_query()
into a new amt_udp_xmit() helper. The helper sends over IPv4 or IPv6
depending on the device's outer family. amt_send_igmp_gq(),
amt_send_mld_gq() and amt_send_membership_query() now take the gateway's
endpoint as a union amt_addr pointer.
> diff --git a/drivers/net/amt.c b/drivers/net/amt.c
> index 38740e0ace424..7e8219a0cdf9e 100644
> --- a/drivers/net/amt.c
> +++ b/drivers/net/amt.c
[ ... ]
> @@ -1364,13 +1431,12 @@ static void amt_send_multicast_data(struct amt_dev *amt,
> */
> static bool amt_send_membership_query(struct amt_dev *amt,
> struct sk_buff *skb,
> - __be32 daddr, __be16 dport,
> + const union amt_addr *daddr,
> + __be16 dport,
> __be32 nonce, u64 mac,
> bool v6)
> {
[Severity: Low]
This isn't a bug, but should the comment above amt_send_membership_query()
be updated as well? It still says:
/* Send a Membership Query in reply to an unauthenticated Request.
*
* No per-source state is read or created: the gateway echoes the nonce and
* the keyed MAC in its Membership Update, where the MAC is recomputed, so
* everything this needs is passed by value.
*/
With this change, daddr is passed by reference. It points to the stack
variable saddr in amt_request_handler(), and reaches this function through
amt_send_igmp_gq() and amt_send_mld_gq():
amt_send_igmp_gq(amt, &saddr, udph->source, amtrh->nonce,
mac);
The first half of the comment, that no per-source state is read or created,
still holds. Only the "passed by value" part no longer matches the new
signature.
[ ... ]
--
Sashiko AI review · https://netdev-ai.bots.linux.dev/sashiko/#/patchset/20261125191450.2497936-1-omar%40blockcast.net