From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 8B6C748941; Wed, 15 Oct 2025 10:59:33 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 0C732402ED; Wed, 15 Oct 2025 10:59:33 +0200 (CEST) Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.10]) by mails.dpdk.org (Postfix) with ESMTP id D97B0402AE for ; Tue, 14 Oct 2025 12:22:43 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1760437364; x=1791973364; h=from:to:subject:date:message-id:in-reply-to:references: mime-version:content-transfer-encoding; bh=zlDGkZ3PvnSlFb6M891NDq5p8gmyliZcsFjmfcWRMHA=; b=HKBwlCxwzGNsPWC15Ps6JPaviPrWG6X7K32ijokq693FacIr3m/cADAf yjzkJMTXWlnDyjDayx2tp+UBXq8ZKUo5GItB4+hb6dOi1XsHXrxOyDvT6 obm3e0JI/CJEk0O00XI7oq1pmimMhEGePTytILbVokTq8JsEqSBh1hSku kllSOyxJs90CnIVUr21UQgsTk5P8MVP6FokiPPnrIeX82H0Oj6ZxBYVmh S94Az0pc2HzYjGynuOVyk7JEeWmX9AAB95v9To1E5LjERldXKsuUYVxNo FE7OYV77gaHgHv5vtf803B57zvTFDrwHDA4arJjPafk+Npo9txrpSbcc4 A==; X-CSE-ConnectionGUID: I080QaxGQn+dsju/szgYpw== X-CSE-MsgGUID: GW9f03RBTCye12VoTpfOOw== X-IronPort-AV: E=McAfee;i="6800,10657,11581"; a="80031847" X-IronPort-AV: E=Sophos;i="6.19,227,1754982000"; d="scan'208";a="80031847" Received: from orviesa003.jf.intel.com ([10.64.159.143]) by orvoesa102.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 14 Oct 2025 03:22:43 -0700 X-CSE-ConnectionGUID: nC2iKRL/S/Ki44kNHn4oqg== X-CSE-MsgGUID: hCsJRecKT1m/vAxTdqJZ7A== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.19,227,1754982000"; d="scan'208";a="185863790" Received: from unknown (HELO sprmax19..) ([10.138.182.140]) by orviesa003.jf.intel.com with ESMTP; 14 Oct 2025 03:22:41 -0700 From: Venkatesh Vemula To: dev@dpdk.org, aman.deep.singh@intel.com, shaiq.wani@intel.com, david.marchand@redhat.com, bruce.richardson@intel.com Subject: [PATCH v7 0/2] net/intel: add IDPF PCI class ID support Date: Tue, 14 Oct 2025 15:50:54 +0530 Message-Id: <20251014102056.459175-1-venkatesh.vemula@intel.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20250919145125.113028-1-venkatesh.vemula@intel.com> References: <20250919145125.113028-1-venkatesh.vemula@intel.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Mailman-Approved-At: Wed, 15 Oct 2025 10:59:31 +0200 X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Current IDPF supports only the MEV device IDs. MMG has new set of device IDs and same might be the case for the future devices. Instead of adding new device IDs every time, make use of the IDPF PCI class ID(0x20001) to differentiate between PF and VF. Write and read the VF_ARQBAL register to find if the current device is a PF or a VF. --- v2: *Renamed macro RTE_PCI_CLASS name to IDPF_PCI_CLASS. *Renamed macro IDPF_DEV_ID_CPF to CPFL_DEV_ID_MMG and CPFL_DEV_ID_MEV v3: *Moved cls_id variable in idpf_hw struct to avoid more struct padding. *Simplified and moved this check "(hw->device_id == IDPF_DEV_ID_SRIOV)" to idpf_is_vf_device function also switch case is removed. returns true for VF device and false for PF. *Simplified the IDPF_CLASS_NETWORK_ETHERNET_PROGIF macro logic with detailed fields "PCI_SUB_BASE_CLASS_NETWORK_ETHERNET" and PCI_BASE_CLASS_NETWORK_ETHERNET. v4: *Fixed code styling errors. *Removed cls_id variable in the idpf_hw structure no longer needed. v5: *Fixed merge conflicts. v6: *Added name in .mailmap file. *changed the sign off name format in commit message. v7: *Split into two patches one of idpf and one of cpfl, as both are independent *Rebased next-net-intel-for-next-net branch and fixed merge conflict and compilation error. *Changed macro name IDPF_DEV_ID_CPF to CPFL_DEV_ID_MEV in cpfl code. Venkatesh Vemula (2): net/idpf: add IDPF PCI class ID support net/cpfl: added CPFL devID for MMG .mailmap | 1 + drivers/net/intel/cpfl/cpfl_ethdev.c | 13 +++++++------ drivers/net/intel/cpfl/cpfl_ethdev.h | 5 +++-- drivers/net/intel/idpf/idpf_common_device.c | 20 ++++++++++++++++++-- drivers/net/intel/idpf/idpf_common_device.h | 18 ++++++++++++++++++ drivers/net/intel/idpf/idpf_ethdev.c | 1 + 6 files changed, 48 insertions(+), 10 deletions(-) -- 2.34.1