Skip to content

Commit d7501e0

Browse files
litian1992kuba-moo
authored andcommitted
hv_netvsc: Set VF priv_flags to IFF_NO_ADDRCONF before open to prevent IPv6 addrconf
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]>
1 parent 17ba793 commit d7501e0

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

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

0 commit comments

Comments
 (0)