]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
ipv6: Simplify link-local address generation for IPv6 GRE.
authorGuillaume Nault <gnault@redhat.com>
Mon, 16 Jun 2025 11:58:29 +0000 (13:58 +0200)
committerPaolo Abeni <pabeni@redhat.com>
Thu, 19 Jun 2025 10:11:40 +0000 (12:11 +0200)
commitd3623dd5bd4e1fc9acfc08dd0064658bbbf1e8de
tree568d0c833b87076f5a0e52d2ce89808d1ba2b75a
parentf6be1f290c65cf99c703c4e2e4c951aee4af6de0
ipv6: Simplify link-local address generation for IPv6 GRE.

Since commit 3e6a0243ff00 ("gre: Fix again IPv6 link-local address
generation."), addrconf_gre_config() has stopped handling IP6GRE
devices specially and just calls the regular addrconf_addr_gen()
function to create their link-local IPv6 addresses.

We can thus avoid using addrconf_gre_config() for IP6GRE devices and
use the normal IPv6 initialisation path instead (that is, jump directly
to addrconf_dev_config() in addrconf_init_auto_addrs()).

See commit 3e6a0243ff00 ("gre: Fix again IPv6 link-local address
generation.") for a deeper explanation on how and why GRE devices
started handling their IPv6 link-local address generation specially,
why it was a problem, and why this is not even necessary in most cases
(especially for GRE over IPv6).

Signed-off-by: Guillaume Nault <gnault@redhat.com>
Reviewed-by: Ido Schimmel <idosch@nvidia.com>
Link: https://patch.msgid.link/a9144be9c7ec3cf09f25becae5e8fdf141fde9f6.1750075076.git.gnault@redhat.com
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
net/ipv6/addrconf.c