Skip to content

Commit f318c6f

Browse files
author
CKI KWF Bot
committed
Merge: RHEL-89855: hv_netvsc: Set VF priv_flags to IFF_NO_ADDRCONF before open to prevent IPv6 addrconf
MR: https://gitlab.com/redhat/centos-stream/src/kernel/centos-stream-10/-/merge_requests/1217 JIRA: https://issues.redhat.com/browse/RHEL-89855 Tested: functionally tested on Azure VM. Signed-off-by: Li Tian <litian@redhat.com> Approved-by: Vitaly Kuznetsov <vkuznets@redhat.com> Approved-by: Emanuele Giuseppe Esposito <eesposit@redhat.com> Approved-by: CKI KWF Bot <cki-ci-bot+kwf-gitlab-com@redhat.com> Merged-by: CKI GitLab Kmaint Pipeline Bot <26919896-cki-kmaint-pipeline-bot@users.noreply.gitlab.com>
2 parents 85140a1 + 54755fc commit f318c6f

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)