From nobody Fri Apr 3 04:34:53 2026 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 9D61A34F49F; Wed, 25 Mar 2026 07:21:39 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1774423299; cv=none; b=ciy76iTFoVYzLZCjPR3pVJqRvjjR0v5j+T5VvogEDqM/t2/fgxfPYpgG7n+9SJCOH5ubDJMcFSVUXbdyuACURWTYiKPIXmiXwO450CkXZmeGyA+aoxxSgxwMPEfeGJSUDZvubSfcBV/Mr9UW7KfwO1pm9SmX6w/PGF15dOdP9AA= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1774423299; c=relaxed/simple; bh=GaJWaVTbn/UL3B4IZ3JOup4VGmfvjwuuWoZ7Ej05S78=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=ZRTIbuksWA289mM9dRO6ZP7B2a+eetsCxZRGFdM8H1hvGx78DstpsYsQWM49RIl4bXjcbvdHxIiI8M7aDqx33r0qnNK8cMBk+Fh0v6rehR7/VLUyBHpY9OKHBzUz8Yh1qIBUJmGKd/IwBAdduOlcn4wlvJcTKHdNB9le1ydN16M= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=M0Y74Anf; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="M0Y74Anf" Received: by smtp.kernel.org (Postfix) with ESMTPS id 7FC2FC2BCB2; Wed, 25 Mar 2026 07:21:39 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1774423299; bh=GaJWaVTbn/UL3B4IZ3JOup4VGmfvjwuuWoZ7Ej05S78=; h=From:Date:Subject:References:In-Reply-To:To:Cc:Reply-To:From; b=M0Y74AnfbDwHsAkvbTU5Ae8qlExnAiBKDYbZRlvxWMPEdhg/1FCJRvLumNbe7Z9qC AUczzjdQKHRJYV/XIZk00ANGIWwMfg3wA9GhfFyswt73Xb2ye1EIuELvKsgETwJOM4 8xYl7sMSls0Gmp5khFTPL1qzDoub7QM+UdFKFB9s1khoYPeDxrn7tTxYmsBXNEgZR0 8DBcWP1+eCDjupRQFtz8Kwn+L5pnCikdpuSebaVbd7df46cR6FZqJKTp8efyHzCnxs HV6+6SD7ATvXiY2xHpRpvsOnWP1OqNFbOAUuGOKvy4hNER/RbCpviWJRnT7amrpeTH /Vx/i/ss9GbXA== Received: from aws-us-west-2-korg-lkml-1.web.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.lore.kernel.org (Postfix) with ESMTP id 75982FEA822; Wed, 25 Mar 2026 07:21:39 +0000 (UTC) From: Satish Kharat via B4 Relay Date: Wed, 25 Mar 2026 00:21:40 -0700 Subject: [PATCH net-next 2/6] enic: add V2 SR-IOV VF device ID Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Message-Id: <20260325-enic-sriov-v2-prep-v1-2-48f04ce110cc@cisco.com> References: <20260325-enic-sriov-v2-prep-v1-0-48f04ce110cc@cisco.com> In-Reply-To: <20260325-enic-sriov-v2-prep-v1-0-48f04ce110cc@cisco.com> To: netdev@vger.kernel.org Cc: linux-kernel@vger.kernel.org, Satish Kharat X-Mailer: b4 0.13.0 X-Developer-Signature: v=1; a=ed25519-sha256; t=1774423298; l=1690; i=satishkh@cisco.com; h=from:subject:message-id; bh=1chUHjnI8ZuULFMfvuOuwWNT2kAEAJEGnPmXwEaCezM=; b=VmrXT0awEfh6stHSRZl0LCMJQ6JD2asOuyGGKo1W1qqho3++AamyADVYD4KAEL5vbGK/93e4x L1QCbxhY3y7D/2D4USOSNOl1fLjQqJKKWIe0aaAYEhhqyVAoLfWVwX/ X-Developer-Key: i=satishkh@cisco.com; a=ed25519; pk=4BxbLoCGvHeIMH/PbpiNVx8/2IcTjFvqcr0AD8K6WLY= X-Endpoint-Received: by B4 Relay for satishkh@cisco.com/default with auth_id=639 X-Original-From: Satish Kharat Reply-To: satishkh@cisco.com From: Satish Kharat Register the V2 VF PCI device ID (0x02b7) so the driver binds to V2 virtual functions created via sriov_configure. Update enic_is_sriov_vf() to recognize V2 VFs alongside the existing V1 type. Signed-off-by: Satish Kharat --- drivers/net/ethernet/cisco/enic/enic_main.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/drivers/net/ethernet/cisco/enic/enic_main.c b/drivers/net/ethe= rnet/cisco/enic/enic_main.c index e839081f9ee4..e16dfbcd2c22 100644 --- a/drivers/net/ethernet/cisco/enic/enic_main.c +++ b/drivers/net/ethernet/cisco/enic/enic_main.c @@ -66,12 +66,14 @@ #define PCI_DEVICE_ID_CISCO_VIC_ENET 0x0043 /* ethernet vnic */ #define PCI_DEVICE_ID_CISCO_VIC_ENET_DYN 0x0044 /* enet dynamic vnic = */ #define PCI_DEVICE_ID_CISCO_VIC_ENET_VF 0x0071 /* enet SRIOV VF */ +#define PCI_DEVICE_ID_CISCO_VIC_ENET_VF_V2 0x02b7 /* enet SRIOV V2 VF */ =20 /* Supported devices */ static const struct pci_device_id enic_id_table[] =3D { { PCI_VDEVICE(CISCO, PCI_DEVICE_ID_CISCO_VIC_ENET) }, { PCI_VDEVICE(CISCO, PCI_DEVICE_ID_CISCO_VIC_ENET_DYN) }, { PCI_VDEVICE(CISCO, PCI_DEVICE_ID_CISCO_VIC_ENET_VF) }, + { PCI_VDEVICE(CISCO, PCI_DEVICE_ID_CISCO_VIC_ENET_VF_V2) }, { 0, } /* end of table */ }; =20 @@ -307,7 +309,8 @@ int enic_sriov_enabled(struct enic *enic) =20 static int enic_is_sriov_vf(struct enic *enic) { - return enic->pdev->device =3D=3D PCI_DEVICE_ID_CISCO_VIC_ENET_VF; + return enic->pdev->device =3D=3D PCI_DEVICE_ID_CISCO_VIC_ENET_VF || + enic->pdev->device =3D=3D PCI_DEVICE_ID_CISCO_VIC_ENET_VF_V2; } =20 int enic_is_valid_vf(struct enic *enic, int vf) --=20 2.43.0