Skip to content

Commit 69a343b

Browse files
committed
hv_netvsc: Set VF priv_flags to IFF_NO_ADDRCONF before open to prevent IPv6 addrconf
jira LE-4365 Rebuild_History Non-Buildable kernel-6.12.0-55.38.1.el10_0 commit-author Li Tian <litian@redhat.com> commit d7501e0 Set an additional flag IFF_NO_ADDRCONF to prevent ipv6 addrconf. Commit under Fixes added a new flag change that was not made to hv_netvsc resulting in the VF being assinged an IPv6. Fixes: 8a321cf ("net: add IFF_NO_ADDRCONF and use it in bonding to prevent ipv6 addrconf") Suggested-by: Cathy Avery <cavery@redhat.com> Signed-off-by: Li Tian <litian@redhat.com> Reviewed-by: Xin Long <lucien.xin@gmail.com> Link: https://patch.msgid.link/20250716002607.4927-1-litian@redhat.com Signed-off-by: Jakub Kicinski <kuba@kernel.org> (cherry picked from commit d7501e0) Signed-off-by: Jonathan Maple <jmaple@ciq.com>
1 parent c80ad53 commit 69a343b

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

drivers/net/hyperv/netvsc_drv.c

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2350,8 +2350,11 @@ static int netvsc_prepare_bonding(struct net_device *vf_netdev)
23502350
if (!ndev)
23512351
return NOTIFY_DONE;
23522352

2353-
/* set slave flag before open to prevent IPv6 addrconf */
2353+
/* Set slave flag and no addrconf flag before open
2354+
* to prevent IPv6 addrconf.
2355+
*/
23542356
vf_netdev->flags |= IFF_SLAVE;
2357+
vf_netdev->priv_flags |= IFF_NO_ADDRCONF;
23552358
return NOTIFY_DONE;
23562359
}
23572360

0 commit comments

Comments
 (0)