Re: [PATCH v2 net-next 1/5] geneve: Reuse ipv6_addr_type() result in geneve_nl2info().
From: Eric Dumazet <edumazet@google.com>
Date: 2026-05-25 07:23:57
From: Eric Dumazet <edumazet@google.com>
Date: 2026-05-25 07:23:57
On Sun, May 24, 2026 at 5:17 PM Kuniyuki Iwashima [off-list ref] wrote:
geneve_nl2info() calls ipv6_addr_type() to check if the remote IPv6 address is link-local. Then, it also calls ipv6_addr_is_multicast() for the same address. Let's not call ipv6_addr_is_multicast() and reuse ipv6_addr_type(). Signed-off-by: Kuniyuki Iwashima <kuniyu@google.com>
Reviewed-by: Eric Dumazet <edumazet@google.com>