Skip to content

Commit f01be49

Browse files
committed
hv_netvsc: Set VF priv_flags to IFF_NO_ADDRCONF before open to prevent IPv6 addrconf
jira LE-4385 Rebuild_History Non-Buildable kernel-5.14.0-570.52.1.el9_6 commit-author Li Tian <[email protected]> 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 <[email protected]> Signed-off-by: Li Tian <[email protected]> Reviewed-by: Xin Long <[email protected]> Link: https://patch.msgid.link/[email protected] Signed-off-by: Jakub Kicinski <[email protected]> (cherry picked from commit d7501e0) Signed-off-by: Jonathan Maple <[email protected]>
1 parent b08c46d commit f01be49

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)