Netdev List
 help / color / mirror / Atom feed
From: Jakub Kicinski <kuba@kernel.org>
To: Kuniyuki Iwashima <kuniyu@google.com>
Cc: andrew+netdev@lunn.ch, davem@davemloft.net, edumazet@google.com,
	pabeni@redhat.com, horms@kernel.org, dsahern@kernel.org,
	stephen@networkplumber.org, kuni1840@gmail.com,
	netdev@vger.kernel.org
Subject: Re: [PATCH v4 net-next 5/5] geneve: Introduce IFLA_GENEVE_LOCAL and IFLA_GENEVE_LOCAL6.
Date: Tue, 2 Jun 2026 09:21:15 -0700	[thread overview]
Message-ID: <20260602092115.67f813e6@kernel.org> (raw)
In-Reply-To: <CAAVpQUD23owCGnbX0nxGgOGfjwr7At1sYncimrs6Sab6=rZ8yg@mail.gmail.com>

On Mon, 1 Jun 2026 20:25:24 -0700 Kuniyuki Iwashima wrote:
> > Does this emit IFLA_GENEVE_LOCAL or IFLA_GENEVE_LOCAL6 on every
> > non-collect_md device, including legacy devices created without any
> > local address?
> >
> > cfg->dualstack is only set true for collect_md devices, so for any
> > device where the user never specified a local address, info->key.u.ipv4.src
> > is 0 (or info->key.u.ipv6.src is ::) but the attribute is still emitted.
> > This would change the visible output of ip -d link show and netlink
> > dumps for existing GENEVE devices, adding a synthetic local 0.0.0.0 or
> > local :: that was not present before.
> >
> > Would gating this on a non-zero source address (or tracking whether the
> > user explicitly set LOCAL) avoid the dump-output change for unaffected
> > devices?  
> 
> Honestly I don't have strong preference on this.
> 
> New iproute2 will show 0.0.0.0 or :: even for devices created without
> the attribute indeed, but I guess it's almost always the case that
> the dump command shows every attribute when we add a new one...?

IDK if there's any strong reason one way or the other, but my
understanding was that we try to only dump back the optional
attributes which were actually set by the user.

Whether we follow that here or not is less important, but I think
the bot makes a legitimate point. If we default to dumping zeros
even if user never set the addr - we should allow user echoing back
already set values in changelink.

IOW the ask is not to rebind but to compare the addr to current one 
in changelink.

  reply	other threads:[~2026-06-02 16:21 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-05-28  0:56 [PATCH v4 net-next 0/5] geneve: Allow binding UDP socket to a specific address Kuniyuki Iwashima
2026-05-28  0:56 ` [PATCH v4 net-next 1/5] geneve: Reuse ipv6_addr_type() result in geneve_nl2info() Kuniyuki Iwashima
2026-05-28  0:56 ` [PATCH v4 net-next 2/5] geneve: Pass struct geneve_dev to geneve_create_sock() Kuniyuki Iwashima
2026-05-28  0:56 ` [PATCH v4 net-next 3/5] geneve: Pass struct geneve_dev to geneve_find_sock() Kuniyuki Iwashima
2026-05-28  0:56 ` [PATCH v4 net-next 4/5] geneve: Add dualstack flag to struct geneve_config Kuniyuki Iwashima
2026-05-28  0:56 ` [PATCH v4 net-next 5/5] geneve: Introduce IFLA_GENEVE_LOCAL and IFLA_GENEVE_LOCAL6 Kuniyuki Iwashima
2026-06-02  2:34   ` Jakub Kicinski
2026-06-02  3:25     ` Kuniyuki Iwashima
2026-06-02 16:21       ` Jakub Kicinski [this message]
2026-06-02 16:31         ` Kuniyuki Iwashima

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=20260602092115.67f813e6@kernel.org \
    --to=kuba@kernel.org \
    --cc=andrew+netdev@lunn.ch \
    --cc=davem@davemloft.net \
    --cc=dsahern@kernel.org \
    --cc=edumazet@google.com \
    --cc=horms@kernel.org \
    --cc=kuni1840@gmail.com \
    --cc=kuniyu@google.com \
    --cc=netdev@vger.kernel.org \
    --cc=pabeni@redhat.com \
    --cc=stephen@networkplumber.org \
    /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