Skip to content

Commit 1a71bf5

Browse files
litian1992gregkh
authored andcommitted
hv_netvsc: Set VF priv_flags to IFF_NO_ADDRCONF before open to prevent IPv6 addrconf
[ Upstream 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> Signed-off-by: Sasha Levin <sashal@kernel.org>
1 parent 5db93cb commit 1a71bf5

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
@@ -2316,8 +2316,11 @@ static int netvsc_prepare_bonding(struct net_device *vf_netdev)
23162316
if (!ndev)
23172317
return NOTIFY_DONE;
23182318

2319-
/* set slave flag before open to prevent IPv6 addrconf */
2319+
/* Set slave flag and no addrconf flag before open
2320+
* to prevent IPv6 addrconf.
2321+
*/
23202322
vf_netdev->flags |= IFF_SLAVE;
2323+
vf_netdev->priv_flags |= IFF_NO_ADDRCONF;
23212324
return NOTIFY_DONE;
23222325
}
23232326

0 commit comments

Comments
 (0)