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 813CFA0503; Wed, 18 May 2022 10:27:11 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 25B8842BCE; Wed, 18 May 2022 10:25:45 +0200 (CEST) Received: from mga01.intel.com (mga01.intel.com [192.55.52.88]) by mails.dpdk.org (Postfix) with ESMTP id 313D842B6C for ; Wed, 18 May 2022 10:25:41 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1652862341; x=1684398341; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=do3ZxumuJdiqXej2D+gi7GXus1AoOuZVMnDl1iGKIDk=; b=LkD7hvmZkGIyVvmDBk93hAyrfFYENJ3vHBHC42L11XMEjqdmyLHlbyRX Z+LHtukve4pfqhRToT2yMKDzGXM6QJaCuVWRcWab25otudKfQfrC0FQMf r4GdU4tTIVoPC2xFVZffweaZPMpEX91xwxexVP93cpXN4d2VpAwsTHoRK F9CzetAZ9w919E+Vqts0NvGi34R/xjqnZTdFL6WQOb8Tg2scLihbGAQSF KHNrS4ttiZ1X4D9Fc9jVoDh4BA9oyD/0WOWUSdReoFiwqV2Py2AoB1eNc qqrutDDPxaXkqphgW6NoddNyZy6DmAevzV2voHeYyRZDoi/zTyyclrIb1 Q==; X-IronPort-AV: E=McAfee;i="6400,9594,10350"; a="296841941" X-IronPort-AV: E=Sophos;i="5.91,234,1647327600"; d="scan'208";a="296841941" Received: from orsmga006.jf.intel.com ([10.7.209.51]) by fmsmga101.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 18 May 2022 01:25:40 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.91,234,1647327600"; d="scan'208";a="545326815" Received: from dpdk-jf-ntb-v2.sh.intel.com ([10.67.119.111]) by orsmga006.jf.intel.com with ESMTP; 18 May 2022 01:25:38 -0700 From: Junfeng Guo To: qi.z.zhang@intel.com, jingjing.wu@intel.com, beilei.xing@intel.com Cc: dev@dpdk.org, junfeng.guo@intel.com, Wenjun Wu Subject: [RFC v3 11/11] net/idpf: add CPF device ID for idpf map table Date: Wed, 18 May 2022 16:25:31 +0800 Message-Id: <20220518082531.1604266-12-junfeng.guo@intel.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220518082531.1604266-1-junfeng.guo@intel.com> References: <20220509091133.3752306-10-junfeng.guo@intel.com> <20220518082531.1604266-1-junfeng.guo@intel.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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 This patch adds CPF device ID. CPF data path is supported by idpf PMD now. Signed-off-by: Wenjun Wu Signed-off-by: Beilei Xing Signed-off-by: Junfeng Guo --- drivers/net/idpf/base/iecm_devids.h | 1 + drivers/net/idpf/idpf_ethdev.c | 1 + 2 files changed, 2 insertions(+) diff --git a/drivers/net/idpf/base/iecm_devids.h b/drivers/net/idpf/base/iecm_devids.h index 839214cb40..aa58982db2 100644 --- a/drivers/net/idpf/base/iecm_devids.h +++ b/drivers/net/idpf/base/iecm_devids.h @@ -10,6 +10,7 @@ /* Device IDs */ #define IECM_DEV_ID_PF 0x1452 +#define IECM_DEV_ID_CPF 0x1453 diff --git a/drivers/net/idpf/idpf_ethdev.c b/drivers/net/idpf/idpf_ethdev.c index 9b0bbca4a5..6e205a7b13 100644 --- a/drivers/net/idpf/idpf_ethdev.c +++ b/drivers/net/idpf/idpf_ethdev.c @@ -898,6 +898,7 @@ idpf_dev_uninit(struct rte_eth_dev *dev) static const struct rte_pci_id pci_id_idpf_map[] = { { RTE_PCI_DEVICE(IECM_INTEL_VENDOR_ID, IECM_DEV_ID_PF) }, + { RTE_PCI_DEVICE(IECM_INTEL_VENDOR_ID, IECM_DEV_ID_CPF) }, { .vendor_id = 0, /* sentinel */ }, }; -- 2.25.1