From nobody Tue Oct 7 08:53:18 2025 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id BE273179A7 for ; Fri, 11 Jul 2025 03:40:31 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=170.10.129.124 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1752205233; cv=none; b=DWYBL0zuSFpOGueriNtyAWcw7onb9zqIL28ycM0DlOUGqP9WU2dKXFgoR2Cj7c8I4BsdrVoW9l341a5MVOoRxIn/Guh52MnXObBKAfUqyH1ADExDk5B7RFOkc1sL572S80ZqEFoQWGZ+wMndIaDvmICAWze10leMwiI0nyVra8I= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1752205233; c=relaxed/simple; bh=LxuZ8OSTlA6iw9Ze2zak8tKclKoj+w5PybT6taJeqYY=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=kiep2otwzdBTD/lMlXcGb6kcWg0tyGf2QwgzRC6wabSMtfVipWfu4OigWHgQuc0AtwaH3VTcFAkwHFj/8j3ggcOLPJO0AyxZFDoQWvYKLYuiXYyIT4eakbrnoqvz6axe5JI4oDZrwMPGtB4r3DHDLa59+9agQRvenANCq2nPtCQ= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=redhat.com; spf=pass smtp.mailfrom=redhat.com; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b=jOje/ZSJ; arc=none smtp.client-ip=170.10.129.124 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=redhat.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=redhat.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b="jOje/ZSJ" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1752205230; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=NCD8MMN1rhsEE3HMxg4dAIgN0YN+q9vvuUnRfOH8RCM=; b=jOje/ZSJ8yXY/pVyVs0AyhPaFlg2fqhJ5r3KW2wkB6KcoJbXq0PHkc9ufKwWGCWprkYWTH zTG+Dr8UKB7sYs420sTXwtUn5sHc9adfMMvlOuAYq+hZJVgwYwraFtYOu9i6U/Xu7wYSgD hgQV5c2UFn1Df5rVAKcJhE3k3vyovwA= Received: from mx-prod-mc-06.mail-002.prod.us-west-2.aws.redhat.com (ec2-35-165-154-97.us-west-2.compute.amazonaws.com [35.165.154.97]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-479-SnlyhPCFPcSSl4zpdof2PQ-1; Thu, 10 Jul 2025 23:40:28 -0400 X-MC-Unique: SnlyhPCFPcSSl4zpdof2PQ-1 X-Mimecast-MFC-AGG-ID: SnlyhPCFPcSSl4zpdof2PQ_1752205227 Received: from mx-prod-int-02.mail-002.prod.us-west-2.aws.redhat.com (mx-prod-int-02.mail-002.prod.us-west-2.aws.redhat.com [10.30.177.15]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mx-prod-mc-06.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTPS id C53FD180029F; Fri, 11 Jul 2025 03:40:27 +0000 (UTC) Received: from laptop.redhat.com (unknown [10.72.116.32]) by mx-prod-int-02.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTP id 8B3D21956094; Fri, 11 Jul 2025 03:40:24 +0000 (UTC) From: Li Tian To: netdev@vger.kernel.org, linux-hyperv@vger.kernel.org Cc: linux-kernel@vger.kernel.org, Haiyang Zhang , Dexuan Cui Subject: [PATCH v2] hv_netvsc: Add IFF_NO_ADDRCONF to VF priv_flags before Date: Fri, 11 Jul 2025 11:39:58 +0800 Message-ID: <20250711034021.11668-1-litian@redhat.com> In-Reply-To: <20250710024603.10162-1-litian@redhat.com> References: <20250710024603.10162-1-litian@redhat.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-Scanned-By: MIMEDefang 3.0 on 10.30.177.15 Content-Type: text/plain; charset="utf-8" Add an additional flag IFF_NO_ADDRCONF to prevent ipv6 addrconf. Commit 8a321cf7becc6c065ae595b837b826a2a81036b9 ("net: add IFF_NO_ADDRCONF and use it in bonding to prevent ipv6 addrconf") This new flag change was not made to hv_netvsc resulting in the VF being assinged an IPv6. Suggested-by: Cathy Avery Signed-off-by: Li Tian --- drivers/net/hyperv/netvsc_drv.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/drivers/net/hyperv/netvsc_drv.c b/drivers/net/hyperv/netvsc_dr= v.c index c41a025c66f0..8be9bce66a4e 100644 --- a/drivers/net/hyperv/netvsc_drv.c +++ b/drivers/net/hyperv/netvsc_drv.c @@ -2317,8 +2317,11 @@ static int netvsc_prepare_bonding(struct net_device = *vf_netdev) if (!ndev) return NOTIFY_DONE; =20 - /* set slave flag before open to prevent IPv6 addrconf */ + /* Set slave flag and no addrconf flag before open + * to prevent IPv6 addrconf. + */ vf_netdev->flags |=3D IFF_SLAVE; + vf_netdev->priv_flags |=3D IFF_NO_ADDRCONF; return NOTIFY_DONE; } =20 --=20 2.50.0