net: failover: use IFF_NO_ADDRCONF flag to prevent ipv6 addrconf
authorXin Long <lucien.xin@gmail.com>
Fri, 9 Dec 2022 15:21:40 +0000 (10:21 -0500)
committerJakub Kicinski <kuba@kernel.org>
Mon, 12 Dec 2022 23:18:25 +0000 (15:18 -0800)
commitcb54d392279dd450e65f6fa3c3f66db8cbdbcc0e
tree534628277a9d6573112a0241d6716f514a71b987
parent0aa64df30b382fc71d4fb1827d528e0eb3eff854
net: failover: use IFF_NO_ADDRCONF flag to prevent ipv6 addrconf

Similar to Bonding and Team, to prevent ipv6 addrconf with
IFF_NO_ADDRCONF in slave_dev->priv_flags for slave ports
is also needed in net failover.

Note that dev_open(slave_dev) is called in .slave_register,
which is called after the IFF_NO_ADDRCONF flag is set in
failover_slave_register().

Signed-off-by: Xin Long <lucien.xin@gmail.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
net/core/failover.c