From mboxrd@z Thu Jan 1 00:00:00 1970 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 9588B1A01C6 for ; Fri, 11 Jul 2025 03:40:35 +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=1752205237; cv=none; b=iB/bA/YJWUtRAXh7h4e2EQubCLoND9ruD6oAmXO1HMGmTNP9kPaig/mxHzXDKUbFj5V90NISEO0p//+GDpy8CgG+JF8ECpIF3Cqd40a+sG9qq7MjTLqNB9vFfb1fATLZhA5XX0nHLsv7PPPwwGmgi0eLO4qfhf4+cQR51lv2Jdg= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1752205237; c=relaxed/simple; bh=LxuZ8OSTlA6iw9Ze2zak8tKclKoj+w5PybT6taJeqYY=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=qpOzjaWhCDXO9t6+131WE2CW6IPEXQgrs4wopSF5r8t7DaAn0nqXqbaP9fv8mwLnTWW1it22wKCyfY8QVpBTF7E01qes32mYZyaBiPOKRVdk0VMzbe0ZuYipMTZRQuMGN0TN2cNuNw2s+YOQe22rYRRUzV8Lwg5XtT6PluPgGbQ= 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=NwHaiUlV; 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="NwHaiUlV" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1752205234; 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=NwHaiUlVjMG1bWH0ReV4Lr9aK6xfV/vl7KmF/VupIiZmKSc2nxcU24pkTpEy60IXoN+75g DHPczQ0c/XgtyMDfrMOGkY4LErGYdP4qTYktK/dXV46V9areosm2jRt+urjM22XG5WBFIZ hB6U2FCtzTO3Ty3g15jG7jE2Drtu2N4= 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-hyperv@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Scanned-By: MIMEDefang 3.0 on 10.30.177.15 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_drv.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; - /* 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 |= IFF_SLAVE; + vf_netdev->priv_flags |= IFF_NO_ADDRCONF; return NOTIFY_DONE; } -- 2.50.0