DPDK patches and discussions
 help / color / mirror / Atom feed
From: Robin Zhang <robinx.zhang@intel.com>
To: dev@dpdk.org
Cc: beilei.xing@intel.com, anatoly.burakov@intel.com,
	jingjing.wu@intel.com, mdr@ashroe.eu, qi.z.zhang@intel.com,
	junfeng.guo@intel.com, stevex.yang@intel.com,
	david.marchand@redhat.com, ktraynor@redhat.com,
	Robin Zhang <robinx.zhang@intel.com>
Subject: [dpdk-dev] [PATCH v2 2/3] net/iavf: remove i40evf devargs option
Date: Wed,  1 Sep 2021 03:30:58 +0000	[thread overview]
Message-ID: <20210901033059.767679-3-robinx.zhang@intel.com> (raw)
In-Reply-To: <20210901033059.767679-1-robinx.zhang@intel.com>

Due to i40evf will be removed, so there's no need to keep the devargs
option "driver=i40evf" in iavf.

Signed-off-by: Robin Zhang <robinx.zhang@intel.com>
---
 drivers/net/iavf/iavf_ethdev.c | 52 ++--------------------------------
 1 file changed, 2 insertions(+), 50 deletions(-)

diff --git a/drivers/net/iavf/iavf_ethdev.c b/drivers/net/iavf/iavf_ethdev.c
index dc5cbc22f5..9263a64cde 100644
--- a/drivers/net/iavf/iavf_ethdev.c
+++ b/drivers/net/iavf/iavf_ethdev.c
@@ -2482,58 +2482,10 @@ iavf_dcf_cap_selected(struct rte_devargs *devargs)
 	return ret;
 }
 
-static int
-iavf_drv_i40evf_check_handler(__rte_unused const char *key,
-			      const char *value, __rte_unused void *opaque)
-{
-	if (strcmp(value, "i40evf"))
-		return -1;
-
-	return 0;
-}
-
-static int
-iavf_drv_i40evf_selected(struct rte_devargs *devargs, uint16_t device_id)
-{
-	struct rte_kvargs *kvlist;
-	int ret = 0;
-
-	if (device_id != IAVF_DEV_ID_VF &&
-	    device_id != IAVF_DEV_ID_VF_HV &&
-	    device_id != IAVF_DEV_ID_X722_VF &&
-	    device_id != IAVF_DEV_ID_X722_A0_VF)
-		return 0;
-
-	if (devargs == NULL)
-		return 0;
-
-	kvlist = rte_kvargs_parse(devargs->args, NULL);
-	if (kvlist == NULL)
-		return 0;
-
-	if (!rte_kvargs_count(kvlist, RTE_DEVARGS_KEY_DRIVER))
-		goto exit;
-
-	/* i40evf driver selected when there's a key-value pair:
-	 * driver=i40evf
-	 */
-	if (rte_kvargs_process(kvlist, RTE_DEVARGS_KEY_DRIVER,
-			       iavf_drv_i40evf_check_handler, NULL) < 0)
-		goto exit;
-
-	ret = 1;
-
-exit:
-	rte_kvargs_free(kvlist);
-	return ret;
-}
-
 static int eth_iavf_pci_probe(struct rte_pci_driver *pci_drv __rte_unused,
 			     struct rte_pci_device *pci_dev)
 {
-	if (iavf_dcf_cap_selected(pci_dev->device.devargs) ||
-	    iavf_drv_i40evf_selected(pci_dev->device.devargs,
-				     pci_dev->id.device_id))
+	if (iavf_dcf_cap_selected(pci_dev->device.devargs))
 		return 1;
 
 	return rte_eth_dev_pci_generic_probe(pci_dev,
@@ -2556,7 +2508,7 @@ static struct rte_pci_driver rte_iavf_pmd = {
 RTE_PMD_REGISTER_PCI(net_iavf, rte_iavf_pmd);
 RTE_PMD_REGISTER_PCI_TABLE(net_iavf, pci_id_iavf_map);
 RTE_PMD_REGISTER_KMOD_DEP(net_iavf, "* igb_uio | vfio-pci");
-RTE_PMD_REGISTER_PARAM_STRING(net_iavf, "cap=dcf driver=i40evf");
+RTE_PMD_REGISTER_PARAM_STRING(net_iavf, "cap=dcf");
 RTE_LOG_REGISTER_SUFFIX(iavf_logtype_init, init, NOTICE);
 RTE_LOG_REGISTER_SUFFIX(iavf_logtype_driver, driver, NOTICE);
 #ifdef RTE_ETHDEV_DEBUG_RX
-- 
2.25.1


  parent reply	other threads:[~2021-09-01  3:44 UTC|newest]

Thread overview: 41+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-08-30  3:12 [dpdk-dev] [PATCH 0/3] net/i40e: remove i40evf Robin Zhang
2021-08-30  3:12 ` [dpdk-dev] [PATCH 1/3] " Robin Zhang
2021-08-30  3:12 ` [dpdk-dev] [PATCH 2/3] net/iavf: remove i40evf devargs option Robin Zhang
2021-08-30  3:12 ` [dpdk-dev] [PATCH 3/3] doc: remove old deprecation notice for i40e Robin Zhang
2021-08-30 11:41 ` [dpdk-dev] [PATCH 0/3] net/i40e: remove i40evf David Marchand
2021-08-31  9:40 ` Robin Zhang
2021-08-31 15:26 ` Kinsella, Ray
2021-09-01  3:30 ` [dpdk-dev] [PATCH v2 " Robin Zhang
2021-09-01  3:30   ` [dpdk-dev] [PATCH v2 1/3] " Robin Zhang
2021-09-01 11:13     ` Kinsella, Ray
2021-09-06  1:10     ` Zhang, Qi Z
2021-09-01  3:30   ` Robin Zhang [this message]
2021-09-01 11:13     ` [dpdk-dev] [PATCH v2 2/3] net/iavf: remove i40evf devargs option Kinsella, Ray
2021-09-01  3:30   ` [dpdk-dev] [PATCH v2 3/3] doc: remove i40evf related documentation Robin Zhang
2021-09-01 11:11     ` Kinsella, Ray
2021-09-10  7:16 ` [dpdk-dev] [PATCH v3 0/3] net/i40e: remove i40evf Robin Zhang
2021-09-10  7:16   ` [dpdk-dev] [PATCH v3 1/3] " Robin Zhang
2021-09-10  7:16   ` [dpdk-dev] [PATCH v3 2/3] net/iavf: remove i40evf devargs option Robin Zhang
2021-09-10  7:16   ` [dpdk-dev] [PATCH v3 3/3] doc: remove i40evf related documentation Robin Zhang
2021-09-10  8:12 ` [dpdk-dev] [PATCH v4 0/3] net/i40e: remove i40evf Robin Zhang
2021-09-10  8:12   ` [dpdk-dev] [PATCH v4 1/3] " Robin Zhang
2021-09-10  8:12   ` [dpdk-dev] [PATCH v4 2/3] net/iavf: remove i40evf devargs option Robin Zhang
2021-09-10  8:12   ` [dpdk-dev] [PATCH v4 3/3] doc: remove i40evf related documentation Robin Zhang
2021-09-15  3:09 ` [dpdk-dev] [PATCH v5 0/3] net/i40e: remove i40evf Robin Zhang
2021-09-15  3:09   ` [dpdk-dev] [PATCH v5 1/3] " Robin Zhang
2021-09-15  3:09   ` [dpdk-dev] [PATCH v5 2/3] net/iavf: remove i40evf devargs option Robin Zhang
2021-09-15  3:09   ` [dpdk-dev] [PATCH v5 3/3] doc: remove i40evf related documentation Robin Zhang
2021-09-15  4:03   ` [dpdk-dev] [PATCH v5 0/3] net/i40e: remove i40evf Zhang, Qi Z
2021-09-16 16:27   ` Ferruh Yigit
2021-09-17  1:55     ` Zhang, RobinX
2021-09-17  8:05       ` Ferruh Yigit
2021-09-17 10:18 ` [dpdk-dev] [PATCH v6 " Robin Zhang
2021-09-17 10:18   ` [dpdk-dev] [PATCH v6 1/3] " Robin Zhang
2021-09-17 10:18   ` [dpdk-dev] [PATCH v6 2/3] net/iavf: remove i40evf devargs option Robin Zhang
2021-09-17 10:18   ` [dpdk-dev] [PATCH v6 3/3] doc: remove i40evf related documentation Robin Zhang
2021-09-24  6:22 ` [dpdk-dev] [PATCH v7 0/3] net/i40e: remove i40evf Robin Zhang
2021-09-24  6:22   ` [dpdk-dev] [PATCH v7 1/3] " Robin Zhang
2021-09-24  6:22   ` [dpdk-dev] [PATCH v7 2/3] net/iavf: remove i40evf devargs option Robin Zhang
2021-09-24  6:22   ` [dpdk-dev] [PATCH v7 3/3] doc: remove i40evf related documentation Robin Zhang
2021-09-26  6:22   ` [dpdk-dev] [PATCH v7 0/3] net/i40e: remove i40evf Zhang, Qi Z
2021-10-05  9:43     ` Thomas Monjalon

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=20210901033059.767679-3-robinx.zhang@intel.com \
    --to=robinx.zhang@intel.com \
    --cc=anatoly.burakov@intel.com \
    --cc=beilei.xing@intel.com \
    --cc=david.marchand@redhat.com \
    --cc=dev@dpdk.org \
    --cc=jingjing.wu@intel.com \
    --cc=junfeng.guo@intel.com \
    --cc=ktraynor@redhat.com \
    --cc=mdr@ashroe.eu \
    --cc=qi.z.zhang@intel.com \
    --cc=stevex.yang@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).