DPDK patches and discussions
 help / color / mirror / Atom feed
From: Venkatesh Vemula <venkatesh.vemula@intel.com>
To: dev@dpdk.org, aman.deep.singh@intel.com, shaiq.wani@intel.com,
	david.marchand@redhat.com, bruce.richardson@intel.com
Subject: [PATCH v7 2/2] net/cpfl: added CPFL devID for MMG
Date: Tue, 14 Oct 2025 16:15:11 +0530	[thread overview]
Message-ID: <20251014104511.459215-3-venkatesh.vemula@intel.com> (raw)
In-Reply-To: <20251014104511.459215-1-venkatesh.vemula@intel.com>

CPFL changes added to new CPFL device id for MMG.
rebased to next-net-intel-for-next-net and fixed conflict
and compiler issue.
changed macro name IDPF_DEVICE_ID_CPF to CPFL_DEV_ID_MEV

Signed-off-by: Venkatesh Vemula <venkatesh.vemula@intel.com>
---
 .mailmap                             |  1 +
 drivers/net/intel/cpfl/cpfl_ethdev.c | 13 +++++++------
 drivers/net/intel/cpfl/cpfl_ethdev.h |  5 +++--
 3 files changed, 11 insertions(+), 8 deletions(-)

diff --git a/.mailmap b/.mailmap
index 0dcd8fce3a..7c121cf5ba 100644
--- a/.mailmap
+++ b/.mailmap
@@ -1665,6 +1665,7 @@ Venkata Suresh Kumar P <venkata.suresh.kumar.p@intel.com>
 Venkat Duvvuru <venkatkumar.duvvuru@broadcom.com>
 Venkatesh Nuthula <venki497@gmail.com>
 Venkatesh Srinivas <venkateshs@google.com>
+Venkatesh Vemula <venkatesh.vemula@intel.com>
 Venkateshwarlu Nalla <venkatn@marvell.com>
 Venkat Koppula <venkat.koppula@caviumnetworks.com>
 Venkat Kumar Ande <venkatkumar.ande@amd.com>
diff --git a/drivers/net/intel/cpfl/cpfl_ethdev.c b/drivers/net/intel/cpfl/cpfl_ethdev.c
index 110678e312..5fc1825391 100644
--- a/drivers/net/intel/cpfl/cpfl_ethdev.c
+++ b/drivers/net/intel/cpfl/cpfl_ethdev.c
@@ -1702,7 +1702,7 @@ cpfl_handle_vchnl_event_msg(struct cpfl_adapter_ext *adapter, uint8_t *msg, uint
 	}
 
 	/* ignore if it is ctrl vport */
-	if (adapter->base.hw.device_id == IDPF_DEV_ID_CPF &&
+	if (adapter->base.hw.device_id == CPFL_DEV_ID_MEV &&
 			adapter->ctrl_vport.base.vport_id == vc_event->vport_id)
 		return;
 
@@ -2288,7 +2288,7 @@ cpfl_ctrl_path_close(struct cpfl_adapter_ext *adapter)
 {
 	cpfl_stop_cfgqs(adapter);
 	cpfl_remove_cfgqs(adapter);
-	if (adapter->base.hw.device_id == IDPF_DEV_ID_CPF)
+	if (adapter->base.hw.device_id == CPFL_DEV_ID_MEV)
 		idpf_vc_vport_destroy(&adapter->ctrl_vport.base);
 	else
 		vcpf_del_queues(adapter);
@@ -2299,7 +2299,7 @@ cpfl_ctrl_path_open(struct cpfl_adapter_ext *adapter)
 {
 	int ret;
 
-	if (adapter->base.hw.device_id == IDPF_DEV_ID_CPF) {
+	if (adapter->base.hw.device_id == CPFL_DEV_ID_MEV) {
 		ret = cpfl_vc_create_ctrl_vport(adapter);
 		if (ret) {
 			PMD_INIT_LOG(ERR, "Failed to create control vport");
@@ -2328,7 +2328,7 @@ cpfl_ctrl_path_open(struct cpfl_adapter_ext *adapter)
 	ret = cpfl_cfgq_setup(adapter);
 	if (ret) {
 		PMD_INIT_LOG(ERR, "Failed to setup control queues");
-		if (adapter->base.hw.device_id == IDPF_DEV_ID_CPF)
+		if (adapter->base.hw.device_id == CPFL_DEV_ID_MEV)
 			goto err_cfgq_setup;
 		else
 			goto err_del_cfg;
@@ -2354,7 +2354,7 @@ cpfl_ctrl_path_open(struct cpfl_adapter_ext *adapter)
 	cpfl_remove_cfgqs(adapter);
 err_cfgq_setup:
 err_init_ctrl_vport:
-	if (adapter->base.hw.device_id == IDPF_DEV_ID_CPF)
+	if (adapter->base.hw.device_id == CPFL_DEV_ID_MEV)
 		idpf_vc_vport_destroy(&adapter->ctrl_vport.base);
 err_del_cfg:
 	vcpf_del_queues(adapter);
@@ -2868,7 +2868,8 @@ cpfl_dev_vport_init(struct rte_eth_dev *dev, void *init_params)
 }
 
 static const struct rte_pci_id pci_id_cpfl_map[] = {
-	{ RTE_PCI_DEVICE(IDPF_INTEL_VENDOR_ID, IDPF_DEV_ID_CPF) },
+	{ RTE_PCI_DEVICE(IDPF_INTEL_VENDOR_ID, CPFL_DEV_ID_MEV) },
+	{ RTE_PCI_DEVICE(IDPF_INTEL_VENDOR_ID, CPFL_DEV_ID_MMG) },
 	{ .vendor_id = 0, /* sentinel */ },
 };
 
diff --git a/drivers/net/intel/cpfl/cpfl_ethdev.h b/drivers/net/intel/cpfl/cpfl_ethdev.h
index be73e05a0e..e05a0901d5 100644
--- a/drivers/net/intel/cpfl/cpfl_ethdev.h
+++ b/drivers/net/intel/cpfl/cpfl_ethdev.h
@@ -59,7 +59,8 @@
 #define CPFL_ALARM_INTERVAL	50000 /* us */
 
 /* Device IDs */
-#define IDPF_DEV_ID_CPF			0x1453
+#define CPFL_DEV_ID_MMG			0x11E0
+#define CPFL_DEV_ID_MEV			0x1453
 #define VIRTCHNL2_QUEUE_GROUP_P2P	0x100
 
 #define CPFL_HOST_ID_NUM	2
@@ -339,7 +340,7 @@ cpfl_get_vsi_id(struct cpfl_itf *itf)
 
 		return repr->vport_info->vport.info.vsi_id;
 	} else if (itf->type == CPFL_ITF_TYPE_VPORT) {
-		if (itf->adapter->base.hw.device_id == IDPF_DEV_ID_CPF) {
+		if (itf->adapter->base.hw.device_id == CPFL_DEV_ID_MEV) {
 			vport_id = ((struct cpfl_vport *)itf)->base.vport_id;
 
 			vport_identity.func_type = CPCHNL2_FTYPE_LAN_PF;
-- 
2.34.1


  parent reply	other threads:[~2025-10-14 10:47 UTC|newest]

Thread overview: 25+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-09-19 14:51 [PATCH v1] net/idpf: add IDPF PCI class ID support Vemula Venkatesh
2025-09-22  8:31 ` Wani, Shaiq
2025-09-22 12:09 ` David Marchand
2025-09-22 16:35   ` Singh, Aman Deep
2025-09-23  6:52     ` David Marchand
2025-09-24 12:57 ` [PATCH v2] net/intel: " Vemula Venkatesh
2025-09-24 14:34   ` Bruce Richardson
2025-09-25 10:28     ` Vemula, Venkatesh
2025-09-25 17:47   ` [PATCH v3] " Vemula Venkatesh
2025-09-26 15:26     ` Singh, Aman Deep
2025-09-29 14:00 ` [PATCH v4] " Vemula Venkatesh
2025-10-01 15:30 ` [PATCH v5] " Vemula Venkatesh
2025-10-06 18:12 ` [PATCH v6] " Venkatesh Vemula
2025-10-09 16:10   ` Bruce Richardson
2025-10-14 10:20 ` [PATCH v7 0/2] " Venkatesh Vemula
2025-10-14 10:20   ` [PATCH v7 1/2] net/idpf: " Venkatesh Vemula
2025-10-14 10:20   ` [PATCH v7 2/2] net/cpfl: added CPFL devID for MMG Venkatesh Vemula
2025-10-14 10:44 ` [PATCH v7 0/2] net/intel: add IDPF PCI class ID support Venkatesh Vemula
2025-10-14 10:45 ` Venkatesh Vemula
2025-10-14 10:45   ` [PATCH v7 1/2] net/idpf: " Venkatesh Vemula
2025-10-14 12:47     ` Bruce Richardson
2025-10-14 13:24       ` Bruce Richardson
2025-10-14 10:45   ` Venkatesh Vemula [this message]
2025-10-14 12:48     ` [PATCH v7 2/2] net/cpfl: added CPFL devID for MMG Bruce Richardson
2025-10-14 13:34       ` Vemula, Venkatesh

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20251014104511.459215-3-venkatesh.vemula@intel.com \
    --to=venkatesh.vemula@intel.com \
    --cc=aman.deep.singh@intel.com \
    --cc=bruce.richardson@intel.com \
    --cc=david.marchand@redhat.com \
    --cc=dev@dpdk.org \
    --cc=shaiq.wani@intel.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).