Skip to contentSkip to conversation

net/i40e: remove i40evf

PATCH Superseded Robin Zhang 6 participants 41 messages Aug 30, 2021 – Oct 5, 2021

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

cover net/i40e: remove i40evf

In DPDK 21.05, iavf already became the default VF for i40e devices. So remove i40evf due to it's no need to maintain now.

Robin Zhang (3):
net/i40e: remove i40evf
net/iavf: remove i40evf devargs option
doc: remove old deprecation notice for i40e

 doc/guides/rel_notes/deprecation.rst |    8 -
 drivers/net/i40e/i40e_ethdev.h       |    1 -
 drivers/net/i40e/i40e_ethdev_vf.c    | 3015 --------------------------
 drivers/net/i40e/meson.build         |    1 -
 drivers/net/i40e/rte_pmd_i40e.c      |    9 +-
 drivers/net/iavf/iavf_ethdev.c       |   52 +-
 6 files changed, 5 insertions(+), 3081 deletions(-)
 delete mode 100644 drivers/net/i40e/i40e_ethdev_vf.c
Signature · 1 line
2.25.1
#1 lore raw

PATCH 1/3 net/i40e: remove i40evf

The default VF driver for Intel 700 Series Ethernet Controller already switch to iavf in DPDK 21.05. And i40evf is no need to maintain now, so remove i40evf related code.

---
 drivers/net/i40e/i40e_ethdev.h    |    1 -
 drivers/net/i40e/i40e_ethdev_vf.c | 3015 -----------------------------
 drivers/net/i40e/meson.build      |    1 -
 drivers/net/i40e/rte_pmd_i40e.c   |    9 +-
 4 files changed, 3 insertions(+), 3023 deletions(-)
 delete mode 100644 drivers/net/i40e/i40e_ethdev_vf.c
drivers/net/i40e/i40e_ethdev.h +0 -1
index cd6deabd60..9df425612e 100644
@@ -1461,7 +1461,6 @@ int i40e_add_macvlan_filters(struct i40e_vsi *vsi,
 			     int total);
 bool is_device_supported(struct rte_eth_dev *dev, struct rte_pci_driver *drv);
 bool is_i40e_supported(struct rte_eth_dev *dev);
-bool is_i40evf_supported(struct rte_eth_dev *dev);
 void i40e_set_symmetric_hash_enable_per_port(struct i40e_hw *hw,
 					     uint8_t enable);
 int i40e_validate_input_set(enum i40e_filter_pctype pctype,
drivers/net/i40e/i40e_ethdev_vf.c deleted +0 -3015

2,993 lines not on this page · raw message

drivers/net/i40e/meson.build +0 -1
index 3c931afeea..efc5f93e35 100644

Lines of this file are not shown. View the raw message.

drivers/net/i40e/rte_pmd_i40e.c +3 -6
index 2e34140c5b..c15e423656 100644

Lines of this file are not shown. View the raw message.

The rest of this diff is not shown. View the raw message.

Signature · 1 line
2.25.1

Part of the diff is not shown here. View the raw message.

#2 lore raw

PATCH 2/3 net/iavf: remove i40evf devargs option

In reply to Robin Zhang

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

---
 drivers/net/iavf/iavf_ethdev.c | 52 ++--------------------------------
 1 file changed, 2 insertions(+), 50 deletions(-)
drivers/net/iavf/iavf_ethdev.c +2 -50
index dc5cbc22f5..9263a64cde 100644
@@ -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
Signature · 1 line
2.25.1
#3 lore raw

PATCH 3/3 doc: remove old deprecation notice for i40e

In reply to Robin Zhang

As announced in the deprecation note, i40evf has been removed. So removing deprecation notice from the notes.

---
 doc/guides/rel_notes/deprecation.rst | 8 --------
 1 file changed, 8 deletions(-)
doc/guides/rel_notes/deprecation.rst +0 -8
index 76a4abfd6b..562d90f9ee 100644
@@ -164,14 +164,6 @@ Deprecation Notices
   consistent with existing outer header checksum status flag naming, which
   should help in reducing confusion about its usage.
 
-* i40e: As there are both i40evf and iavf pmd, the functions of them are
-  duplicated. And now more and more advanced features are developed on iavf.
-  To keep consistent with kernel driver's name
-  (https://patchwork.ozlabs.org/patch/970154/), i40evf is no need to maintain.
-  Starting from 21.05, the default VF driver of i40e will be iavf, but i40evf
-  can still be used if users specify the devarg "driver=i40evf". I40evf will
-  be deleted in DPDK 21.11.
-
 * net: ``s_addr`` and ``d_addr`` fields of ``rte_ether_hdr`` structure
   will be renamed in DPDK 21.11 to avoid conflict with Windows Sockets headers.
 
Signature · 1 line
2.25.1
#4 lore raw
In reply to Robin Zhang
Quoted 8 lines · Robin Zhang

In DPDK 21.05, iavf already became the default VF for i40e devices. So remove i40evf due to it's no need to maintain now.

Robin Zhang (3):
net/i40e: remove i40evf
net/iavf: remove i40evf devargs option
doc: remove old deprecation notice for i40e

Release notes must be updated.

Are you leaving the PF support for servicing i40evf devices on purpose? Idem, driver-specific API wrt to VF is still present.

Signature · 1 line
David Marchand
#5 lore raw
In reply to Robin Zhang

From: [email protected]

Hi David

Quoted 17 lines

-----Original Message-----
From: David Marchand <[email protected]>
Sent: Monday, August 30, 2021 7:41 PM
To: Zhang, RobinX <[email protected]>
Cc: dev <[email protected]>; Xing, Beilei <[email protected]>; Burakov, Anatoly <[email protected]>; Wu, Jingjing <[email protected]>; Ray Kinsella <[email protected]>; Zhang, Qi Z <[email protected]>; Guo, Junfeng <[email protected]>; Yang, SteveX <[email protected]>; Kevin Traynor <[email protected]>
Subject: Re: [dpdk-dev] [PATCH 0/3] net/i40e: remove i40evf

Quoted 4 lines · Robin Zhang

In DPDK 21.05, iavf already became the default VF for i40e devices. So remove i40evf due to it's no need to maintain now.

Quoted 6 lines
Quoted 4 lines

Robin Zhang (3):
net/i40e: remove i40evf
net/iavf: remove i40evf devargs option
doc: remove old deprecation notice for i40e

Release notes must be updated.

Will update in v2 patch.

Quoted 3 lines

Are you leaving the PF support for servicing i40evf devices on purpose? Idem, driver-specific API wrt to VF is still present.

I40evf driver is the old VF driver for i40e devices, now it's replaced by iavf driver. We still need the i40e PF support and driver-specific API work with iavf on i40e devices.

Quoted 4 lines

--
David Marchand

#6 lore raw
In reply to Robin Zhang

Please check dpdk documentation for references to i40evf also.

See guides/nics/intel_vf.rst and guides/howto/lm_bond_virtio_sriov.rst.

Quoted 17 lines · Robin Zhang

In DPDK 21.05, iavf already became the default VF for i40e devices. So remove i40evf due to it's no need to maintain now.

Robin Zhang (3):
net/i40e: remove i40evf
net/iavf: remove i40evf devargs option
doc: remove old deprecation notice for i40e

 doc/guides/rel_notes/deprecation.rst |    8 -
 drivers/net/i40e/i40e_ethdev.h       |    1 -
 drivers/net/i40e/i40e_ethdev_vf.c    | 3015 --------------------------
 drivers/net/i40e/meson.build         |    1 -
 drivers/net/i40e/rte_pmd_i40e.c      |    9 +-
 drivers/net/iavf/iavf_ethdev.c       |   52 +-
 6 files changed, 5 insertions(+), 3081 deletions(-)
 delete mode 100644 drivers/net/i40e/i40e_ethdev_vf.c
#7 lore raw

v2 cover net/i40e: remove i40evf

In reply to Robin Zhang

In DPDK 21.05, iavf already became the default VF for i40e devices. So remove i40evf due to it's no need to maintain now.

v2:
- update 21.11 release note, remove some missed documentation.

Robin Zhang (3):
net/i40e: remove i40evf
net/iavf: remove i40evf devargs option
doc: remove i40evf related documentation

 doc/guides/howto/lm_bond_virtio_sriov.rst |    4 +-
 doc/guides/nics/intel_vf.rst              |    8 +-
 doc/guides/rel_notes/deprecation.rst      |    8 -
 doc/guides/rel_notes/release_21_11.rst    |    2 +
 drivers/net/i40e/i40e_ethdev.h            |    1 -
 drivers/net/i40e/i40e_ethdev_vf.c         | 3015 ---------------------
 drivers/net/i40e/meson.build              |    1 -
 drivers/net/i40e/rte_pmd_i40e.c           |    9 +-
 drivers/net/iavf/iavf_ethdev.c            |   52 +-
 9 files changed, 10 insertions(+), 3090 deletions(-)
 delete mode 100644 drivers/net/i40e/i40e_ethdev_vf.c
Signature · 1 line
2.25.1
#8 lore raw

PATCH v2 1/3 net/i40e: remove i40evf

The default VF driver for Intel 700 Series Ethernet Controller already switch to iavf in DPDK 21.05. And i40evf is no need to maintain now, so remove i40evf related code.

---
 drivers/net/i40e/i40e_ethdev.h    |    1 -
 drivers/net/i40e/i40e_ethdev_vf.c | 3015 -----------------------------
 drivers/net/i40e/meson.build      |    1 -
 drivers/net/i40e/rte_pmd_i40e.c   |    9 +-
 4 files changed, 3 insertions(+), 3023 deletions(-)
 delete mode 100644 drivers/net/i40e/i40e_ethdev_vf.c
drivers/net/i40e/i40e_ethdev.h +0 -1
index cd6deabd60..9df425612e 100644
@@ -1461,7 +1461,6 @@ int i40e_add_macvlan_filters(struct i40e_vsi *vsi,
 			     int total);
 bool is_device_supported(struct rte_eth_dev *dev, struct rte_pci_driver *drv);
 bool is_i40e_supported(struct rte_eth_dev *dev);
-bool is_i40evf_supported(struct rte_eth_dev *dev);
 void i40e_set_symmetric_hash_enable_per_port(struct i40e_hw *hw,
 					     uint8_t enable);
 int i40e_validate_input_set(enum i40e_filter_pctype pctype,
drivers/net/i40e/i40e_ethdev_vf.c deleted +0 -3015

2,993 lines not on this page · raw message

drivers/net/i40e/meson.build +0 -1
index 3c931afeea..efc5f93e35 100644

Lines of this file are not shown. View the raw message.

drivers/net/i40e/rte_pmd_i40e.c +3 -6
index 2e34140c5b..c15e423656 100644

Lines of this file are not shown. View the raw message.

The rest of this diff is not shown. View the raw message.

Signature · 1 line
2.25.1

Part of the diff is not shown here. View the raw message.

Acked-by on v2 1/3
#9 lore raw
Quoted 4 lines · Robin Zhang

The default VF driver for Intel 700 Series Ethernet Controller already switch to iavf in DPDK 21.05. And i40evf is no need to maintain now, so remove i40evf related code.

Quoted 9 lines
---
 drivers/net/i40e/i40e_ethdev.h    |    1 -
 drivers/net/i40e/i40e_ethdev_vf.c | 3015 -----------------------------
 drivers/net/i40e/meson.build      |    1 -
 drivers/net/i40e/rte_pmd_i40e.c   |    9 +-
 4 files changed, 3 insertions(+), 3023 deletions(-)
 delete mode 100644 drivers/net/i40e/i40e_ethdev_vf.c
#10 lore raw
In reply to Robin Zhang
Quoted 18 lines

-----Original Message-----
From: Zhang, RobinX <[email protected]>
Sent: Wednesday, September 1, 2021 11:31 AM
To: [email protected]
Cc: Xing, Beilei <[email protected]>; Burakov, Anatoly <[email protected]>; Wu, Jingjing <[email protected]>; [email protected]; Zhang, Qi Z <[email protected]>; Guo, Junfeng <[email protected]>; Yang, SteveX <[email protected]>; [email protected]; [email protected]; Zhang, RobinX <[email protected]>
Subject: [PATCH v2 1/3] net/i40e: remove i40evf

The default VF driver for Intel 700 Series Ethernet Controller already switch to iavf in DPDK 21.05. And i40evf is no need to maintain now, so remove i40evf related code.

Quoted 8 lines
---
 drivers/net/i40e/i40e_ethdev.h    |    1 -
 drivers/net/i40e/i40e_ethdev_vf.c | 3015 -----------------------------
 drivers/net/i40e/meson.build      |    1 -
 drivers/net/i40e/rte_pmd_i40e.c   |    9 +-
 4 files changed, 3 insertions(+), 3023 deletions(-)
 delete mode 100644 drivers/net/i40e/i40e_ethdev_vf.c

I saw some VF related code in i40e_rxtx.c might also need to be removed

grep i40e_vf driver/net/i40e/i40e_rxtx.c

#11 lore raw

PATCH v2 2/3 net/iavf: remove i40evf devargs option

In reply to Robin Zhang

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

---
 drivers/net/iavf/iavf_ethdev.c | 52 ++--------------------------------
 1 file changed, 2 insertions(+), 50 deletions(-)
drivers/net/iavf/iavf_ethdev.c +2 -50
index dc5cbc22f5..9263a64cde 100644
@@ -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
Signature · 1 line
2.25.1
#12 lore raw

Re: [dpdk-dev] [PATCH v2 2/3] net/iavf: remove i40evf devargs option

Quoted 5 lines · Robin Zhang

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

---

[SNIP]

drivers/net/iavf/iavf_ethdev.c static struct rte_pci_driver rte_iavf_pmd = { · line 2511

Quoted 6 lines
drivers/net/iavf/iavf_ethdev.c +1 -1
@@ -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");

Is "cap=dcf driver=iavf" required?

Quoted 4 lines
drivers/net/iavf/iavf_ethdev.c +0 -0
 RTE_LOG_REGISTER_SUFFIX(iavf_logtype_init, init, NOTICE);
 RTE_LOG_REGISTER_SUFFIX(iavf_logtype_driver, driver, NOTICE);
 #ifdef RTE_ETHDEV_DEBUG_RX
#13 lore raw

PATCH v2 3/3 doc: remove i40evf related documentation

In reply to Robin Zhang

As announced in the deprecation note, i40evf has been removed. So removing deprecation notice and other i40evf related documentation.

---
 doc/guides/howto/lm_bond_virtio_sriov.rst | 4 ++--
 doc/guides/nics/intel_vf.rst              | 8 +-------
 doc/guides/rel_notes/deprecation.rst      | 8 --------
 doc/guides/rel_notes/release_21_11.rst    | 2 ++
 4 files changed, 5 insertions(+), 17 deletions(-)
doc/guides/howto/lm_bond_virtio_sriov.rst +2 -2
index 3e25480316..e854ae214e 100644
@@ -392,7 +392,7 @@ Set up Virtual Functions on host_server_1
    cat /sys/bus/pci/devices/0000\:02\:00.0/sriov_numvfs
    echo 1 > /sys/bus/pci/devices/0000\:02\:00.0/sriov_numvfs
    cat /sys/bus/pci/devices/0000\:02\:00.0/sriov_numvfs
-   rmmod i40evf
+   rmmod iavf
 
 vm_virtio_vf_one_212_46.sh
 ~~~~~~~~~~~~~~~~~~~~~~~~~~
@@ -492,7 +492,7 @@ Set up Virtual Functions on host_server_2
    cat /sys/bus/pci/devices/0000\:03\:00.0/sriov_numvfs
    echo 1 > /sys/bus/pci/devices/0000\:03\:00.0/sriov_numvfs
    cat /sys/bus/pci/devices/0000\:03\:00.0/sriov_numvfs
-   rmmod i40evf
+   rmmod iavf
 
 vm_virtio_one_migrate.sh
 ~~~~~~~~~~~~~~~~~~~~~~~~
doc/guides/nics/intel_vf.rst +1 -7
index fcea8151bf..b80c41809b 100644
@@ -26,7 +26,7 @@ Refer to :numref:`figure_single_port_nic`.
 
 Therefore, a NIC is logically distributed among multiple virtual machines (as shown in :numref:`figure_single_port_nic`),
 while still having global data in common to share with the Physical Function and other Virtual Functions.
-The DPDK fm10kvf, i40evf, igbvf or ixgbevf as a Poll Mode Driver (PMD) serves for the Intel® 82576 Gigabit Ethernet Controller,
+The DPDK fm10kvf, iavf, igbvf or ixgbevf as a Poll Mode Driver (PMD) serves for the Intel® 82576 Gigabit Ethernet Controller,
 Intel® Ethernet Controller I350 family, Intel® 82599 10 Gigabit Ethernet Controller NIC,
 Intel® Fortville 10/40 Gigabit Ethernet Controller NIC's virtual PCI function, or PCIe host-interface of the Intel Ethernet Switch
 FM10000 Series.
@@ -88,12 +88,6 @@ For more detail on SR-IOV, please refer to the following documents:
     assignment in hypervisor. Take qemu for example, the device assignment should carry the IAVF device id (0x1889) like
     ``-device vfio-pci,x-pci-device-id=0x1889,host=03:0a.0``.
 
-    Starting from DPDK 21.05, the default VF driver for Intel® 700 Series Ethernet Controller will be IAVF. No new feature
-    will be added into i40evf except bug fix until it's removed in DPDK 21.11. Between DPDK 21.05 and 21.11, by using the
-    ``devargs`` option ``driver=i40evf``, i40evf PMD still can be used on Intel® 700 Series Ethernet Controller, for example::
-
-    -a 81:02.0,driver=i40evf
-
     When IAVF is backed by an Intel® E810 device, the "Protocol Extraction" feature which is supported by ice PMD is also
     available for IAVF PMD. The same devargs with the same parameters can be applied to IAVF PMD, for detail please reference
     the section ``Protocol extraction for per queue`` of ice.rst.
doc/guides/rel_notes/deprecation.rst +0 -8
index 76a4abfd6b..562d90f9ee 100644
@@ -164,14 +164,6 @@ Deprecation Notices
   consistent with existing outer header checksum status flag naming, which
   should help in reducing confusion about its usage.
 
-* i40e: As there are both i40evf and iavf pmd, the functions of them are
-  duplicated. And now more and more advanced features are developed on iavf.
-  To keep consistent with kernel driver's name
-  (https://patchwork.ozlabs.org/patch/970154/), i40evf is no need to maintain.
-  Starting from 21.05, the default VF driver of i40e will be iavf, but i40evf
-  can still be used if users specify the devarg "driver=i40evf". I40evf will
-  be deleted in DPDK 21.11.
-
 * net: ``s_addr`` and ``d_addr`` fields of ``rte_ether_hdr`` structure
   will be renamed in DPDK 21.11 to avoid conflict with Windows Sockets headers.
 
doc/guides/rel_notes/release_21_11.rst +2 -0
index d707a554ef..04760084d9 100644
@@ -68,6 +68,8 @@ Removed Items
    Also, make sure to start the actual text at the margin.
    =======================================================
 
+* Removed i40evf driver. Due to iavf already became the default VF driver
+  for i40e devices, so remove i40evf due to it's no need to maintain.
 
 API Changes
 -----------
Signature · 1 line
2.25.1
Acked-by on v2 3/3
#14 lore raw

Re: [dpdk-dev] [PATCH v2 3/3] doc: remove i40evf related documentation

Quoted 11 lines · Robin Zhang

As announced in the deprecation note, i40evf has been removed. So removing deprecation notice and other i40evf related documentation.

---
 doc/guides/howto/lm_bond_virtio_sriov.rst | 4 ++--
 doc/guides/nics/intel_vf.rst              | 8 +-------
 doc/guides/rel_notes/deprecation.rst      | 8 --------
 doc/guides/rel_notes/release_21_11.rst    | 2 ++
 4 files changed, 5 insertions(+), 17 deletions(-)
#15 lore raw

v3 cover net/i40e: remove i40evf

In reply to Robin Zhang

In DPDK 21.05, iavf already became the default VF for i40e devices. So remove i40evf due to it's no need to maintain now.

v3:
- remove VF related code in i40e_rxtx.c.

v2:
- update 21.11 release note, remove some missed documentation.

Robin Zhang (3):
net/i40e: remove i40evf
net/iavf: remove i40evf devargs option
doc: remove i40evf related documentation

 doc/guides/howto/lm_bond_virtio_sriov.rst |    4 +-
 doc/guides/nics/intel_vf.rst              |    8 +-
 doc/guides/rel_notes/deprecation.rst      |    8 -
 doc/guides/rel_notes/release_21_11.rst    |    2 +
 drivers/net/i40e/i40e_ethdev.h            |    1 -
 drivers/net/i40e/i40e_ethdev_vf.c         | 3015 ---------------------
 drivers/net/i40e/i40e_rxtx.c              |   48 +-
 drivers/net/i40e/meson.build              |    1 -
 drivers/net/i40e/rte_pmd_i40e.c           |    9 +-
 drivers/net/iavf/iavf_ethdev.c            |   52 +-
 10 files changed, 26 insertions(+), 3122 deletions(-)
 delete mode 100644 drivers/net/i40e/i40e_ethdev_vf.c
Signature · 1 line
2.25.1
#16 lore raw

PATCH v3 1/3 net/i40e: remove i40evf

The default VF driver for Intel 700 Series Ethernet Controller already switch to iavf in DPDK 21.05. And i40evf is no need to maintain now, so remove i40evf related code.

---
 drivers/net/i40e/i40e_ethdev.h    |    1 -
 drivers/net/i40e/i40e_ethdev_vf.c | 3015 -----------------------------
 drivers/net/i40e/i40e_rxtx.c      |   48 +-
 drivers/net/i40e/meson.build      |    1 -
 drivers/net/i40e/rte_pmd_i40e.c   |    9 +-
 5 files changed, 19 insertions(+), 3055 deletions(-)
 delete mode 100644 drivers/net/i40e/i40e_ethdev_vf.c
drivers/net/i40e/i40e_ethdev.h +0 -1
index cd6deabd60..9df425612e 100644
@@ -1461,7 +1461,6 @@ int i40e_add_macvlan_filters(struct i40e_vsi *vsi,
 			     int total);
 bool is_device_supported(struct rte_eth_dev *dev, struct rte_pci_driver *drv);
 bool is_i40e_supported(struct rte_eth_dev *dev);
-bool is_i40evf_supported(struct rte_eth_dev *dev);
 void i40e_set_symmetric_hash_enable_per_port(struct i40e_hw *hw,
 					     uint8_t enable);
 int i40e_validate_input_set(enum i40e_filter_pctype pctype,
drivers/net/i40e/i40e_ethdev_vf.c deleted +0 -3015

2,993 lines not on this page · raw message

drivers/net/i40e/i40e_rxtx.c +16 -32

48 lines not on this page · raw message

drivers/net/i40e/meson.build +0 -1
index 3c931afeea..efc5f93e35 100644

Lines of this file are not shown. View the raw message.

drivers/net/i40e/rte_pmd_i40e.c +3 -6
index 2e34140c5b..c15e423656 100644

Lines of this file are not shown. View the raw message.

The rest of this diff is not shown. View the raw message.

Signature · 1 line
2.25.1

Part of the diff is not shown here. View the raw message.

#17 lore raw

PATCH v3 2/3 net/iavf: remove i40evf devargs option

In reply to Robin Zhang

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

---
 drivers/net/iavf/iavf_ethdev.c | 52 ++--------------------------------
 1 file changed, 2 insertions(+), 50 deletions(-)
drivers/net/iavf/iavf_ethdev.c +2 -50
index dc5cbc22f5..9263a64cde 100644
@@ -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
Signature · 1 line
2.25.1
#18 lore raw

PATCH v3 3/3 doc: remove i40evf related documentation

In reply to Robin Zhang

As announced in the deprecation note, i40evf has been removed. So removing deprecation notice and other i40evf related documentation.

---
 doc/guides/howto/lm_bond_virtio_sriov.rst | 4 ++--
 doc/guides/nics/intel_vf.rst              | 8 +-------
 doc/guides/rel_notes/deprecation.rst      | 8 --------
 doc/guides/rel_notes/release_21_11.rst    | 2 ++
 4 files changed, 5 insertions(+), 17 deletions(-)
doc/guides/howto/lm_bond_virtio_sriov.rst +2 -2
index 3e25480316..e854ae214e 100644
@@ -392,7 +392,7 @@ Set up Virtual Functions on host_server_1
    cat /sys/bus/pci/devices/0000\:02\:00.0/sriov_numvfs
    echo 1 > /sys/bus/pci/devices/0000\:02\:00.0/sriov_numvfs
    cat /sys/bus/pci/devices/0000\:02\:00.0/sriov_numvfs
-   rmmod i40evf
+   rmmod iavf
 
 vm_virtio_vf_one_212_46.sh
 ~~~~~~~~~~~~~~~~~~~~~~~~~~
@@ -492,7 +492,7 @@ Set up Virtual Functions on host_server_2
    cat /sys/bus/pci/devices/0000\:03\:00.0/sriov_numvfs
    echo 1 > /sys/bus/pci/devices/0000\:03\:00.0/sriov_numvfs
    cat /sys/bus/pci/devices/0000\:03\:00.0/sriov_numvfs
-   rmmod i40evf
+   rmmod iavf
 
 vm_virtio_one_migrate.sh
 ~~~~~~~~~~~~~~~~~~~~~~~~
doc/guides/nics/intel_vf.rst +1 -7
index fcea8151bf..b80c41809b 100644
@@ -26,7 +26,7 @@ Refer to :numref:`figure_single_port_nic`.
 
 Therefore, a NIC is logically distributed among multiple virtual machines (as shown in :numref:`figure_single_port_nic`),
 while still having global data in common to share with the Physical Function and other Virtual Functions.
-The DPDK fm10kvf, i40evf, igbvf or ixgbevf as a Poll Mode Driver (PMD) serves for the Intel® 82576 Gigabit Ethernet Controller,
+The DPDK fm10kvf, iavf, igbvf or ixgbevf as a Poll Mode Driver (PMD) serves for the Intel® 82576 Gigabit Ethernet Controller,
 Intel® Ethernet Controller I350 family, Intel® 82599 10 Gigabit Ethernet Controller NIC,
 Intel® Fortville 10/40 Gigabit Ethernet Controller NIC's virtual PCI function, or PCIe host-interface of the Intel Ethernet Switch
 FM10000 Series.
@@ -88,12 +88,6 @@ For more detail on SR-IOV, please refer to the following documents:
     assignment in hypervisor. Take qemu for example, the device assignment should carry the IAVF device id (0x1889) like
     ``-device vfio-pci,x-pci-device-id=0x1889,host=03:0a.0``.
 
-    Starting from DPDK 21.05, the default VF driver for Intel® 700 Series Ethernet Controller will be IAVF. No new feature
-    will be added into i40evf except bug fix until it's removed in DPDK 21.11. Between DPDK 21.05 and 21.11, by using the
-    ``devargs`` option ``driver=i40evf``, i40evf PMD still can be used on Intel® 700 Series Ethernet Controller, for example::
-
-    -a 81:02.0,driver=i40evf
-
     When IAVF is backed by an Intel® E810 device, the "Protocol Extraction" feature which is supported by ice PMD is also
     available for IAVF PMD. The same devargs with the same parameters can be applied to IAVF PMD, for detail please reference
     the section ``Protocol extraction for per queue`` of ice.rst.
doc/guides/rel_notes/deprecation.rst +0 -8
index 76a4abfd6b..562d90f9ee 100644
@@ -164,14 +164,6 @@ Deprecation Notices
   consistent with existing outer header checksum status flag naming, which
   should help in reducing confusion about its usage.
 
-* i40e: As there are both i40evf and iavf pmd, the functions of them are
-  duplicated. And now more and more advanced features are developed on iavf.
-  To keep consistent with kernel driver's name
-  (https://patchwork.ozlabs.org/patch/970154/), i40evf is no need to maintain.
-  Starting from 21.05, the default VF driver of i40e will be iavf, but i40evf
-  can still be used if users specify the devarg "driver=i40evf". I40evf will
-  be deleted in DPDK 21.11.
-
 * net: ``s_addr`` and ``d_addr`` fields of ``rte_ether_hdr`` structure
   will be renamed in DPDK 21.11 to avoid conflict with Windows Sockets headers.
 
doc/guides/rel_notes/release_21_11.rst +2 -0
index d707a554ef..04760084d9 100644
@@ -68,6 +68,8 @@ Removed Items
    Also, make sure to start the actual text at the margin.
    =======================================================
 
+* Removed i40evf driver. Due to iavf already became the default VF driver
+  for i40e devices, so remove i40evf due to it's no need to maintain.
 
 API Changes
 -----------
Signature · 1 line
2.25.1
#19 lore raw

v4 cover net/i40e: remove i40evf

In reply to Robin Zhang

In DPDK 21.05, iavf already became the default VF for i40e devices. So remove i40evf due to it's no need to maintain now.

v4:
- resolve compile warning issue.

v3:
- remove VF related code in i40e_rxtx.c.

v2:
- update 21.11 release note, remove some missed documentation.

Robin Zhang (3):
net/i40e: remove i40evf
net/iavf: remove i40evf devargs option
doc: remove i40evf related documentation

 doc/guides/howto/lm_bond_virtio_sriov.rst |    4 +-
 doc/guides/nics/intel_vf.rst              |    8 +-
 doc/guides/rel_notes/deprecation.rst      |    8 -
 doc/guides/rel_notes/release_21_11.rst    |    2 +
 drivers/net/i40e/i40e_ethdev.h            |    1 -
 drivers/net/i40e/i40e_ethdev_vf.c         | 3015 ---------------------
 drivers/net/i40e/i40e_rxtx.c              |   50 +-
 drivers/net/i40e/meson.build              |    1 -
 drivers/net/i40e/rte_pmd_i40e.c           |    9 +-
 drivers/net/iavf/iavf_ethdev.c            |   52 +-
 10 files changed, 26 insertions(+), 3124 deletions(-)
 delete mode 100644 drivers/net/i40e/i40e_ethdev_vf.c
Signature · 1 line
2.25.1
#20 lore raw

PATCH v4 1/3 net/i40e: remove i40evf

The default VF driver for Intel 700 Series Ethernet Controller already switch to iavf in DPDK 21.05. And i40evf is no need to maintain now, so remove i40evf related code.

---
 drivers/net/i40e/i40e_ethdev.h    |    1 -
 drivers/net/i40e/i40e_ethdev_vf.c | 3015 -----------------------------
 drivers/net/i40e/i40e_rxtx.c      |   50 +-
 drivers/net/i40e/meson.build      |    1 -
 drivers/net/i40e/rte_pmd_i40e.c   |    9 +-
 5 files changed, 19 insertions(+), 3057 deletions(-)
 delete mode 100644 drivers/net/i40e/i40e_ethdev_vf.c
drivers/net/i40e/i40e_ethdev.h +0 -1
index cd6deabd60..9df425612e 100644
@@ -1461,7 +1461,6 @@ int i40e_add_macvlan_filters(struct i40e_vsi *vsi,
 			     int total);
 bool is_device_supported(struct rte_eth_dev *dev, struct rte_pci_driver *drv);
 bool is_i40e_supported(struct rte_eth_dev *dev);
-bool is_i40evf_supported(struct rte_eth_dev *dev);
 void i40e_set_symmetric_hash_enable_per_port(struct i40e_hw *hw,
 					     uint8_t enable);
 int i40e_validate_input_set(enum i40e_filter_pctype pctype,
drivers/net/i40e/i40e_ethdev_vf.c deleted +0 -3015

2,993 lines not on this page · raw message

drivers/net/i40e/i40e_rxtx.c +16 -34

50 lines not on this page · raw message

drivers/net/i40e/meson.build +0 -1
index 3c931afeea..efc5f93e35 100644

Lines of this file are not shown. View the raw message.

drivers/net/i40e/rte_pmd_i40e.c +3 -6
index 2e34140c5b..c15e423656 100644

Lines of this file are not shown. View the raw message.

The rest of this diff is not shown. View the raw message.

Signature · 1 line
2.25.1

Part of the diff is not shown here. View the raw message.

#21 lore raw

PATCH v4 2/3 net/iavf: remove i40evf devargs option

In reply to Robin Zhang

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

---
 drivers/net/iavf/iavf_ethdev.c | 52 ++--------------------------------
 1 file changed, 2 insertions(+), 50 deletions(-)
drivers/net/iavf/iavf_ethdev.c +2 -50
index dc5cbc22f5..9263a64cde 100644
@@ -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
Signature · 1 line
2.25.1
#22 lore raw

PATCH v4 3/3 doc: remove i40evf related documentation

In reply to Robin Zhang

As announced in the deprecation note, i40evf has been removed. So removing deprecation notice and other i40evf related documentation.

---
 doc/guides/howto/lm_bond_virtio_sriov.rst | 4 ++--
 doc/guides/nics/intel_vf.rst              | 8 +-------
 doc/guides/rel_notes/deprecation.rst      | 8 --------
 doc/guides/rel_notes/release_21_11.rst    | 2 ++
 4 files changed, 5 insertions(+), 17 deletions(-)
doc/guides/howto/lm_bond_virtio_sriov.rst +2 -2
index 3e25480316..e854ae214e 100644
@@ -392,7 +392,7 @@ Set up Virtual Functions on host_server_1
    cat /sys/bus/pci/devices/0000\:02\:00.0/sriov_numvfs
    echo 1 > /sys/bus/pci/devices/0000\:02\:00.0/sriov_numvfs
    cat /sys/bus/pci/devices/0000\:02\:00.0/sriov_numvfs
-   rmmod i40evf
+   rmmod iavf
 
 vm_virtio_vf_one_212_46.sh
 ~~~~~~~~~~~~~~~~~~~~~~~~~~
@@ -492,7 +492,7 @@ Set up Virtual Functions on host_server_2
    cat /sys/bus/pci/devices/0000\:03\:00.0/sriov_numvfs
    echo 1 > /sys/bus/pci/devices/0000\:03\:00.0/sriov_numvfs
    cat /sys/bus/pci/devices/0000\:03\:00.0/sriov_numvfs
-   rmmod i40evf
+   rmmod iavf
 
 vm_virtio_one_migrate.sh
 ~~~~~~~~~~~~~~~~~~~~~~~~
doc/guides/nics/intel_vf.rst +1 -7
index fcea8151bf..b80c41809b 100644
@@ -26,7 +26,7 @@ Refer to :numref:`figure_single_port_nic`.
 
 Therefore, a NIC is logically distributed among multiple virtual machines (as shown in :numref:`figure_single_port_nic`),
 while still having global data in common to share with the Physical Function and other Virtual Functions.
-The DPDK fm10kvf, i40evf, igbvf or ixgbevf as a Poll Mode Driver (PMD) serves for the Intel® 82576 Gigabit Ethernet Controller,
+The DPDK fm10kvf, iavf, igbvf or ixgbevf as a Poll Mode Driver (PMD) serves for the Intel® 82576 Gigabit Ethernet Controller,
 Intel® Ethernet Controller I350 family, Intel® 82599 10 Gigabit Ethernet Controller NIC,
 Intel® Fortville 10/40 Gigabit Ethernet Controller NIC's virtual PCI function, or PCIe host-interface of the Intel Ethernet Switch
 FM10000 Series.
@@ -88,12 +88,6 @@ For more detail on SR-IOV, please refer to the following documents:
     assignment in hypervisor. Take qemu for example, the device assignment should carry the IAVF device id (0x1889) like
     ``-device vfio-pci,x-pci-device-id=0x1889,host=03:0a.0``.
 
-    Starting from DPDK 21.05, the default VF driver for Intel® 700 Series Ethernet Controller will be IAVF. No new feature
-    will be added into i40evf except bug fix until it's removed in DPDK 21.11. Between DPDK 21.05 and 21.11, by using the
-    ``devargs`` option ``driver=i40evf``, i40evf PMD still can be used on Intel® 700 Series Ethernet Controller, for example::
-
-    -a 81:02.0,driver=i40evf
-
     When IAVF is backed by an Intel® E810 device, the "Protocol Extraction" feature which is supported by ice PMD is also
     available for IAVF PMD. The same devargs with the same parameters can be applied to IAVF PMD, for detail please reference
     the section ``Protocol extraction for per queue`` of ice.rst.
doc/guides/rel_notes/deprecation.rst +0 -8
index 76a4abfd6b..562d90f9ee 100644
@@ -164,14 +164,6 @@ Deprecation Notices
   consistent with existing outer header checksum status flag naming, which
   should help in reducing confusion about its usage.
 
-* i40e: As there are both i40evf and iavf pmd, the functions of them are
-  duplicated. And now more and more advanced features are developed on iavf.
-  To keep consistent with kernel driver's name
-  (https://patchwork.ozlabs.org/patch/970154/), i40evf is no need to maintain.
-  Starting from 21.05, the default VF driver of i40e will be iavf, but i40evf
-  can still be used if users specify the devarg "driver=i40evf". I40evf will
-  be deleted in DPDK 21.11.
-
 * net: ``s_addr`` and ``d_addr`` fields of ``rte_ether_hdr`` structure
   will be renamed in DPDK 21.11 to avoid conflict with Windows Sockets headers.
 
doc/guides/rel_notes/release_21_11.rst +2 -0
index d707a554ef..04760084d9 100644
@@ -68,6 +68,8 @@ Removed Items
    Also, make sure to start the actual text at the margin.
    =======================================================
 
+* Removed i40evf driver. Due to iavf already became the default VF driver
+  for i40e devices, so remove i40evf due to it's no need to maintain.
 
 API Changes
 -----------
Signature · 1 line
2.25.1
#23 lore raw

v5 cover net/i40e: remove i40evf

In reply to Robin Zhang

In DPDK 21.05, iavf already became the default VF for i40e devices. So remove i40evf due to it's no need to maintain now.

v5:
- rebase code.

v4:
- resolve compile warning issue.

v3:
- remove VF related code in i40e_rxtx.c.

v2:
- update 21.11 release note, remove some missed documentation.

Robin Zhang (3):
net/i40e: remove i40evf
net/iavf: remove i40evf devargs option
doc: remove i40evf related documentation

 doc/guides/howto/lm_bond_virtio_sriov.rst |    4 +-
 doc/guides/nics/intel_vf.rst              |    8 +-
 doc/guides/rel_notes/deprecation.rst      |    8 -
 doc/guides/rel_notes/release_21_11.rst    |    2 +
 drivers/net/i40e/i40e_ethdev.h            |    1 -
 drivers/net/i40e/i40e_ethdev_vf.c         | 3006 ---------------------
 drivers/net/i40e/i40e_rxtx.c              |   50 +-
 drivers/net/i40e/meson.build              |    1 -
 drivers/net/i40e/rte_pmd_i40e.c           |    9 +-
 drivers/net/iavf/iavf_ethdev.c            |   52 +-
 10 files changed, 26 insertions(+), 3115 deletions(-)
 delete mode 100644 drivers/net/i40e/i40e_ethdev_vf.c
Signature · 1 line
2.25.1
#24 lore raw

PATCH v5 1/3 net/i40e: remove i40evf

The default VF driver for Intel 700 Series Ethernet Controller already switch to iavf in DPDK 21.05. And i40evf is no need to maintain now, so remove i40evf related code.

---
 drivers/net/i40e/i40e_ethdev.h    |    1 -
 drivers/net/i40e/i40e_ethdev_vf.c | 3006 -----------------------------
 drivers/net/i40e/i40e_rxtx.c      |   50 +-
 drivers/net/i40e/meson.build      |    1 -
 drivers/net/i40e/rte_pmd_i40e.c   |    9 +-
 5 files changed, 19 insertions(+), 3048 deletions(-)
 delete mode 100644 drivers/net/i40e/i40e_ethdev_vf.c
drivers/net/i40e/i40e_ethdev.h +0 -1
index cd6deabd60..9df425612e 100644
@@ -1461,7 +1461,6 @@ int i40e_add_macvlan_filters(struct i40e_vsi *vsi,
 			     int total);
 bool is_device_supported(struct rte_eth_dev *dev, struct rte_pci_driver *drv);
 bool is_i40e_supported(struct rte_eth_dev *dev);
-bool is_i40evf_supported(struct rte_eth_dev *dev);
 void i40e_set_symmetric_hash_enable_per_port(struct i40e_hw *hw,
 					     uint8_t enable);
 int i40e_validate_input_set(enum i40e_filter_pctype pctype,
drivers/net/i40e/i40e_ethdev_vf.c deleted +0 -3006

2,993 lines not on this page · raw message

drivers/net/i40e/i40e_rxtx.c +16 -34

50 lines not on this page · raw message

drivers/net/i40e/meson.build +0 -1
index 3c931afeea..efc5f93e35 100644

Lines of this file are not shown. View the raw message.

drivers/net/i40e/rte_pmd_i40e.c +3 -6
index 2e34140c5b..c15e423656 100644

Lines of this file are not shown. View the raw message.

The rest of this diff is not shown. View the raw message.

Signature · 1 line
2.25.1

Part of the diff is not shown here. View the raw message.

#25 lore raw

PATCH v5 2/3 net/iavf: remove i40evf devargs option

In reply to Robin Zhang

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

---
 drivers/net/iavf/iavf_ethdev.c | 52 ++--------------------------------
 1 file changed, 2 insertions(+), 50 deletions(-)
drivers/net/iavf/iavf_ethdev.c +2 -50
index 887b8b045b..ecc15a0803 100644
@@ -2472,58 +2472,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,
@@ -2546,7 +2498,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
Signature · 1 line
2.25.1
#26 lore raw

PATCH v5 3/3 doc: remove i40evf related documentation

In reply to Robin Zhang

As announced in the deprecation note, i40evf has been removed. So removing deprecation notice and other i40evf related documentation.

---
 doc/guides/howto/lm_bond_virtio_sriov.rst | 4 ++--
 doc/guides/nics/intel_vf.rst              | 8 +-------
 doc/guides/rel_notes/deprecation.rst      | 8 --------
 doc/guides/rel_notes/release_21_11.rst    | 2 ++
 4 files changed, 5 insertions(+), 17 deletions(-)
doc/guides/howto/lm_bond_virtio_sriov.rst +2 -2
index 3e25480316..e854ae214e 100644
@@ -392,7 +392,7 @@ Set up Virtual Functions on host_server_1
    cat /sys/bus/pci/devices/0000\:02\:00.0/sriov_numvfs
    echo 1 > /sys/bus/pci/devices/0000\:02\:00.0/sriov_numvfs
    cat /sys/bus/pci/devices/0000\:02\:00.0/sriov_numvfs
-   rmmod i40evf
+   rmmod iavf
 
 vm_virtio_vf_one_212_46.sh
 ~~~~~~~~~~~~~~~~~~~~~~~~~~
@@ -492,7 +492,7 @@ Set up Virtual Functions on host_server_2
    cat /sys/bus/pci/devices/0000\:03\:00.0/sriov_numvfs
    echo 1 > /sys/bus/pci/devices/0000\:03\:00.0/sriov_numvfs
    cat /sys/bus/pci/devices/0000\:03\:00.0/sriov_numvfs
-   rmmod i40evf
+   rmmod iavf
 
 vm_virtio_one_migrate.sh
 ~~~~~~~~~~~~~~~~~~~~~~~~
doc/guides/nics/intel_vf.rst +1 -7
index fcea8151bf..b80c41809b 100644
@@ -26,7 +26,7 @@ Refer to :numref:`figure_single_port_nic`.
 
 Therefore, a NIC is logically distributed among multiple virtual machines (as shown in :numref:`figure_single_port_nic`),
 while still having global data in common to share with the Physical Function and other Virtual Functions.
-The DPDK fm10kvf, i40evf, igbvf or ixgbevf as a Poll Mode Driver (PMD) serves for the Intel® 82576 Gigabit Ethernet Controller,
+The DPDK fm10kvf, iavf, igbvf or ixgbevf as a Poll Mode Driver (PMD) serves for the Intel® 82576 Gigabit Ethernet Controller,
 Intel® Ethernet Controller I350 family, Intel® 82599 10 Gigabit Ethernet Controller NIC,
 Intel® Fortville 10/40 Gigabit Ethernet Controller NIC's virtual PCI function, or PCIe host-interface of the Intel Ethernet Switch
 FM10000 Series.
@@ -88,12 +88,6 @@ For more detail on SR-IOV, please refer to the following documents:
     assignment in hypervisor. Take qemu for example, the device assignment should carry the IAVF device id (0x1889) like
     ``-device vfio-pci,x-pci-device-id=0x1889,host=03:0a.0``.
 
-    Starting from DPDK 21.05, the default VF driver for Intel® 700 Series Ethernet Controller will be IAVF. No new feature
-    will be added into i40evf except bug fix until it's removed in DPDK 21.11. Between DPDK 21.05 and 21.11, by using the
-    ``devargs`` option ``driver=i40evf``, i40evf PMD still can be used on Intel® 700 Series Ethernet Controller, for example::
-
-    -a 81:02.0,driver=i40evf
-
     When IAVF is backed by an Intel® E810 device, the "Protocol Extraction" feature which is supported by ice PMD is also
     available for IAVF PMD. The same devargs with the same parameters can be applied to IAVF PMD, for detail please reference
     the section ``Protocol extraction for per queue`` of ice.rst.
doc/guides/rel_notes/deprecation.rst +0 -8
index 76a4abfd6b..562d90f9ee 100644
@@ -164,14 +164,6 @@ Deprecation Notices
   consistent with existing outer header checksum status flag naming, which
   should help in reducing confusion about its usage.
 
-* i40e: As there are both i40evf and iavf pmd, the functions of them are
-  duplicated. And now more and more advanced features are developed on iavf.
-  To keep consistent with kernel driver's name
-  (https://patchwork.ozlabs.org/patch/970154/), i40evf is no need to maintain.
-  Starting from 21.05, the default VF driver of i40e will be iavf, but i40evf
-  can still be used if users specify the devarg "driver=i40evf". I40evf will
-  be deleted in DPDK 21.11.
-
 * net: ``s_addr`` and ``d_addr`` fields of ``rte_ether_hdr`` structure
   will be renamed in DPDK 21.11 to avoid conflict with Windows Sockets headers.
 
doc/guides/rel_notes/release_21_11.rst +2 -0
index 14654032be..9eda76baa7 100644
@@ -80,6 +80,8 @@ Removed Items
    Also, make sure to start the actual text at the margin.
    =======================================================
 
+* Removed i40evf driver. Due to iavf already became the default VF driver
+  for i40e devices, so remove i40evf due to it's no need to maintain.
 
 API Changes
 -----------
Signature · 1 line
2.25.1
Acked-by on the v5 series Applied
#27 lore raw
In reply to Robin Zhang
Quoted 45 lines

-----Original Message-----
From: Zhang, RobinX <[email protected]>
Sent: Wednesday, September 15, 2021 11:10 AM
To: [email protected]
Cc: Wang, Haiyue <[email protected]>; Xing, Beilei <[email protected]>; [email protected]; Wu, Jingjing <[email protected]>; Burakov, Anatoly <[email protected]>; Zhang, Qi Z <[email protected]>; Guo, Junfeng <[email protected]>; Yang, SteveX <[email protected]>; Zhang, RobinX <[email protected]>
Subject: [PATCH v5 0/3] net/i40e: remove i40evf

In DPDK 21.05, iavf already became the default VF for i40e devices. So remove i40evf due to it's no need to maintain now.

v5:
- rebase code.

v4:
- resolve compile warning issue.

v3:
- remove VF related code in i40e_rxtx.c.

v2:
- update 21.11 release note, remove some missed documentation.

Robin Zhang (3):
net/i40e: remove i40evf
net/iavf: remove i40evf devargs option
doc: remove i40evf related documentation

 doc/guides/howto/lm_bond_virtio_sriov.rst |    4 +-
 doc/guides/nics/intel_vf.rst              |    8 +-
 doc/guides/rel_notes/deprecation.rst      |    8 -
 doc/guides/rel_notes/release_21_11.rst    |    2 +
 drivers/net/i40e/i40e_ethdev.h            |    1 -
 drivers/net/i40e/i40e_ethdev_vf.c         | 3006 ---------------------
 drivers/net/i40e/i40e_rxtx.c              |   50 +-
 drivers/net/i40e/meson.build              |    1 -
 drivers/net/i40e/rte_pmd_i40e.c           |    9 +-
 drivers/net/iavf/iavf_ethdev.c            |   52 +-
 10 files changed, 26 insertions(+), 3115 deletions(-)  delete mode 100644
Quoted 4 lines

drivers/net/i40e/i40e_ethdev_vf.c

--
2.25.1

Applied to dpdk-next-net-intel.

Thanks
Qi

#28 lore raw
In reply to Robin Zhang
Quoted 12 lines · Robin Zhang

In DPDK 21.05, iavf already became the default VF for i40e devices. So remove i40evf due to it's no need to maintain now.

v5:
- rebase code.

v4:
- resolve compile warning issue.

v3:
- remove VF related code in i40e_rxtx.c.

Quoted 8 lines

v2:
- update 21.11 release note, remove some missed documentation.

Robin Zhang (3):
net/i40e: remove i40evf
net/iavf: remove i40evf devargs option
doc: remove i40evf related documentation

Just to double check, searching 'i40evf' within driver still yields some results [1]. Is this expected? Why they should remain?

Thanks,
ferruh

[1]
git grep -i i40evf drivers/net/

#29 lore raw

Hi, Ferruh

Quoted 27 lines

-----Original Message-----
From: Yigit, Ferruh <[email protected]>
Sent: Friday, September 17, 2021 12:28 AM
To: Zhang, RobinX <[email protected]>; [email protected]
Cc: Wang, Haiyue <[email protected]>; Xing, Beilei <[email protected]>; [email protected]; Wu, Jingjing <[email protected]>; Burakov, Anatoly <[email protected]>; Zhang, Qi Z <[email protected]>; Guo, Junfeng <[email protected]>; Yang, SteveX <[email protected]>
Subject: Re: [dpdk-dev] [PATCH v5 0/3] net/i40e: remove i40evf

Quoted 15 lines · Robin Zhang

In DPDK 21.05, iavf already became the default VF for i40e devices. So remove i40evf due to it's no need to maintain now.

v5:
- rebase code.

v4:
- resolve compile warning issue.

v3:
- remove VF related code in i40e_rxtx.c.

v2:
- update 21.11 release note, remove some missed documentation.

Quoted 8 lines
Quoted 5 lines

Robin Zhang (3):
net/i40e: remove i40evf
net/iavf: remove i40evf devargs option
doc: remove i40evf related documentation

Just to double check, searching 'i40evf' within driver still yields some results [1]. Is this expected? Why they should remain?

git grep -i i40evf drivers/net/:

i40e/base/i40e_osdep.h:#define I40EVF_WRITE_FLUSH(a) I40E_READ_REG(a, I40E_VFGEN_RSTAT)
This macro is defined in i40e share code.

i40e/i40e_ethdev.h:/* I40EVF_DEV_PRIVATE_TO */
i40e/i40e_ethdev.h:#define I40EVF_DEV_PRIVATE_TO_VF(adapter) \
i40e/i40e_ethdev.h: struct i40e_vf *vf = I40EVF_DEV_PRIVATE_TO_VF(adapter);
This is a helper function "i40e_get_vsi_from_adapter", we still keep the i40e_vf member in i40e_adapter structure for some future possibilities.

i40e/i40e_vf_representor.c:i40evf_stat_update_48(uint64_t *offset, i40e/i40e_vf_representor.c:i40evf_stat_update_32(uint64_t *offset,

i40e/i40e_vf_representor.c:             i40evf_stat_update_48(
i40e/i40e_vf_representor.c:             i40evf_stat_update_48(
i40e/i40e_vf_representor.c:             i40evf_stat_update_48(
i40e/i40e_vf_representor.c:             i40evf_stat_update_48(
i40e/i40e_vf_representor.c:             i40evf_stat_update_32(
i40e/i40e_vf_representor.c:             i40evf_stat_update_32(
i40e/i40e_vf_representor.c:             i40evf_stat_update_48(
i40e/i40e_vf_representor.c:             i40evf_stat_update_48(
i40e/i40e_vf_representor.c:             i40evf_stat_update_48(
i40e/i40e_vf_representor.c:             i40evf_stat_update_48(
i40e/i40e_vf_representor.c:             i40evf_stat_update_32(
i40e/i40e_vf_representor.c:             i40evf_stat_update_32(

These are ops for VF representor ports of i40e

Quoted 8 lines

Thanks,
ferruh

[1]
git grep -i i40evf drivers/net/

#30 lore raw
Quoted 40 lines · RobinX

Hi, Ferruh

Quoted 27 lines

-----Original Message-----
From: Yigit, Ferruh <[email protected]>
Sent: Friday, September 17, 2021 12:28 AM
To: Zhang, RobinX <[email protected]>; [email protected]
Cc: Wang, Haiyue <[email protected]>; Xing, Beilei <[email protected]>; [email protected]; Wu, Jingjing <[email protected]>; Burakov, Anatoly <[email protected]>; Zhang, Qi Z <[email protected]>; Guo, Junfeng <[email protected]>; Yang, SteveX <[email protected]>
Subject: Re: [dpdk-dev] [PATCH v5 0/3] net/i40e: remove i40evf

Quoted 15 lines · Robin Zhang

In DPDK 21.05, iavf already became the default VF for i40e devices. So remove i40evf due to it's no need to maintain now.

v5:
- rebase code.

v4:
- resolve compile warning issue.

v3:
- remove VF related code in i40e_rxtx.c.

v2:
- update 21.11 release note, remove some missed documentation.

Quoted 8 lines
Quoted 5 lines

Robin Zhang (3):
net/i40e: remove i40evf
net/iavf: remove i40evf devargs option
doc: remove i40evf related documentation

Just to double check, searching 'i40evf' within driver still yields some results [1]. Is this expected? Why they should remain?

git grep -i i40evf drivers/net/:

Quoted 8 lines

i40e/base/i40e_osdep.h:#define I40EVF_WRITE_FLUSH(a) I40E_READ_REG(a, I40E_VFGEN_RSTAT)
This macro is defined in i40e share code.

i40e/i40e_ethdev.h:/* I40EVF_DEV_PRIVATE_TO */
i40e/i40e_ethdev.h:#define I40EVF_DEV_PRIVATE_TO_VF(adapter) \
i40e/i40e_ethdev.h: struct i40e_vf *vf = I40EVF_DEV_PRIVATE_TO_VF(adapter);
This is a helper function "i40e_get_vsi_from_adapter", we still keep the i40e_vf member in i40e_adapter structure for some future possibilities.

What do you mean by "future possibilities"?

Quoted 24 lines

i40e/i40e_vf_representor.c:i40evf_stat_update_48(uint64_t *offset, i40e/i40e_vf_representor.c:i40evf_stat_update_32(uint64_t *offset,

i40e/i40e_vf_representor.c:             i40evf_stat_update_48(
i40e/i40e_vf_representor.c:             i40evf_stat_update_48(
i40e/i40e_vf_representor.c:             i40evf_stat_update_48(
i40e/i40e_vf_representor.c:             i40evf_stat_update_48(
i40e/i40e_vf_representor.c:             i40evf_stat_update_32(
i40e/i40e_vf_representor.c:             i40evf_stat_update_32(
i40e/i40e_vf_representor.c:             i40evf_stat_update_48(
i40e/i40e_vf_representor.c:             i40evf_stat_update_48(
i40e/i40e_vf_representor.c:             i40evf_stat_update_48(
i40e/i40e_vf_representor.c:             i40evf_stat_update_48(
i40e/i40e_vf_representor.c:             i40evf_stat_update_32(
i40e/i40e_vf_representor.c:             i40evf_stat_update_32(

These are ops for VF representor ports of i40e

Quoted 8 lines

Thanks,
ferruh

[1]
git grep -i i40evf drivers/net/

#31 lore raw

v6 cover net/i40e: remove i40evf

In reply to Robin Zhang

In DPDK 21.05, iavf already became the default VF for i40e devices. So remove i40evf due to it's no need to maintain now.

v6:
- remove i40e_vf struct and related code, remove doc i40e_vf.ini.

v5:
- rebase code.

v4:
- resolve compile warning issue.

v3:
- remove VF related code in i40e_rxtx.c.

v2:
- update 21.11 release note, remove some missed documentation.

Robin Zhang (3):
net/i40e: remove i40evf
net/iavf: remove i40evf devargs option
doc: remove i40evf related documentation

 doc/guides/howto/lm_bond_virtio_sriov.rst |    4 +-
 doc/guides/nics/features/i40e_vf.ini      |   40 -
 doc/guides/nics/intel_vf.rst              |    8 +-
 doc/guides/rel_notes/deprecation.rst      |    8 -
 doc/guides/rel_notes/release_21_11.rst    |    2 +
 drivers/net/i40e/base/i40e_osdep.h        |    1 -
 drivers/net/i40e/i40e_ethdev.h            |   78 +-
 drivers/net/i40e/i40e_ethdev_vf.c         | 3006 ---------------------
 drivers/net/i40e/i40e_rxtx.c              |   50 +-
 drivers/net/i40e/meson.build              |    1 -
 drivers/net/i40e/rte_pmd_i40e.c           |    9 +-
 drivers/net/iavf/iavf_ethdev.c            |   52 +-
 12 files changed, 31 insertions(+), 3228 deletions(-)
 delete mode 100644 doc/guides/nics/features/i40e_vf.ini
 delete mode 100644 drivers/net/i40e/i40e_ethdev_vf.c
Signature · 1 line
2.25.1
#32 lore raw

PATCH v6 1/3 net/i40e: remove i40evf

The default VF driver for Intel 700 Series Ethernet Controller already switch to iavf in DPDK 21.05. And i40evf is no need to maintain now, so remove i40evf related code.

---
 drivers/net/i40e/base/i40e_osdep.h |    1 -
 drivers/net/i40e/i40e_ethdev.h     |   78 +-
 drivers/net/i40e/i40e_ethdev_vf.c  | 3006 ----------------------------
 drivers/net/i40e/i40e_rxtx.c       |   50 +-
 drivers/net/i40e/meson.build       |    1 -
 drivers/net/i40e/rte_pmd_i40e.c    |    9 +-
 6 files changed, 24 insertions(+), 3121 deletions(-)
 delete mode 100644 drivers/net/i40e/i40e_ethdev_vf.c
drivers/net/i40e/base/i40e_osdep.h +0 -1
index 230d400149..51537c5cf3 100644
@@ -162,7 +162,6 @@ static inline uint64_t i40e_read64_addr(volatile void *addr)
 	rte_write32_wc_relaxed((rte_cpu_to_le_32(value)), reg)
 
 #define I40E_WRITE_FLUSH(a) I40E_READ_REG(a, I40E_GLGEN_STAT)
-#define I40EVF_WRITE_FLUSH(a) I40E_READ_REG(a, I40E_VFGEN_RSTAT)
 
 #define I40E_READ_REG(hw, reg) i40e_read_addr(I40E_PCI_REG_ADDR((hw), (reg)))
 #define I40E_WRITE_REG(hw, reg, value) \
drivers/net/i40e/i40e_ethdev.h +5 -73

114 lines not on this page · raw message

drivers/net/i40e/i40e_ethdev_vf.c deleted +0 -3006

2,879 lines not on this page · raw message

drivers/net/i40e/i40e_rxtx.c +16 -34

50 lines not on this page · raw message

drivers/net/i40e/meson.build +0 -1
index 3c931afeea..efc5f93e35 100644

Lines of this file are not shown. View the raw message.

drivers/net/i40e/rte_pmd_i40e.c +3 -6
index 2e34140c5b..c15e423656 100644

Lines of this file are not shown. View the raw message.

The rest of this diff is not shown. View the raw message.

Signature · 1 line
2.25.1

Part of the diff is not shown here. View the raw message.

#33 lore raw

PATCH v6 2/3 net/iavf: remove i40evf devargs option

In reply to Robin Zhang

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

---
 drivers/net/iavf/iavf_ethdev.c | 52 ++--------------------------------
 1 file changed, 2 insertions(+), 50 deletions(-)
drivers/net/iavf/iavf_ethdev.c +2 -50
index c131461517..493bc41da9 100644
@@ -2506,58 +2506,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,
@@ -2580,7 +2532,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
Signature · 1 line
2.25.1
#34 lore raw

PATCH v6 3/3 doc: remove i40evf related documentation

In reply to Robin Zhang

As announced in the deprecation note, i40evf has been removed. So removing deprecation notice and other i40evf related documentation.

---
 doc/guides/howto/lm_bond_virtio_sriov.rst |  4 +--
 doc/guides/nics/features/i40e_vf.ini      | 40 -----------------------
 doc/guides/nics/intel_vf.rst              |  8 +----
 doc/guides/rel_notes/deprecation.rst      |  8 -----
 doc/guides/rel_notes/release_21_11.rst    |  2 ++
 5 files changed, 5 insertions(+), 57 deletions(-)
 delete mode 100644 doc/guides/nics/features/i40e_vf.ini
doc/guides/howto/lm_bond_virtio_sriov.rst +2 -2
index 3e25480316..e854ae214e 100644
@@ -392,7 +392,7 @@ Set up Virtual Functions on host_server_1
    cat /sys/bus/pci/devices/0000\:02\:00.0/sriov_numvfs
    echo 1 > /sys/bus/pci/devices/0000\:02\:00.0/sriov_numvfs
    cat /sys/bus/pci/devices/0000\:02\:00.0/sriov_numvfs
-   rmmod i40evf
+   rmmod iavf
 
 vm_virtio_vf_one_212_46.sh
 ~~~~~~~~~~~~~~~~~~~~~~~~~~
@@ -492,7 +492,7 @@ Set up Virtual Functions on host_server_2
    cat /sys/bus/pci/devices/0000\:03\:00.0/sriov_numvfs
    echo 1 > /sys/bus/pci/devices/0000\:03\:00.0/sriov_numvfs
    cat /sys/bus/pci/devices/0000\:03\:00.0/sriov_numvfs
-   rmmod i40evf
+   rmmod iavf
 
 vm_virtio_one_migrate.sh
 ~~~~~~~~~~~~~~~~~~~~~~~~
doc/guides/nics/features/i40e_vf.ini deleted +0 -40
deleted file mode 100644
index 36d7136d13..0000000000
@@ -1,40 +0,0 @@
-;
-; Supported features of the 'i40e_vf' network poll mode driver.
-;
-; Refer to default.ini for the full list of available PMD features.
-;
-[Features]
-Rx interrupt         = Y
-Link status          = Y
-Link status event    = Y
-Fast mbuf free       = P
-Queue start/stop     = Y
-Power mgmt address monitor = Y
-Jumbo frame          = Y
-Scattered Rx         = Y
-TSO                  = Y
-Promiscuous mode     = Y
-Allmulticast mode    = Y
-Unicast MAC filter   = Y
-Multicast MAC filter = Y
-RSS hash             = Y
-RSS key update       = Y
-RSS reta update      = Y
-VLAN filter          = Y
-CRC offload          = Y
-VLAN offload         = Y
-QinQ offload         = P
-L3 checksum offload  = P
-L4 checksum offload  = P
-Inner L3 checksum    = P
-Inner L4 checksum    = P
-Packet type parsing  = Y
-Rx descriptor status = Y
-Tx descriptor status = Y
-Basic stats          = Y
-Extended stats       = Y
-Multiprocess aware   = Y
-FreeBSD              = Y
-Linux                = Y
-x86-32               = Y
-x86-64               = Y
doc/guides/nics/intel_vf.rst +1 -7
index fcea8151bf..b80c41809b 100644
@@ -26,7 +26,7 @@ Refer to :numref:`figure_single_port_nic`.
 
 Therefore, a NIC is logically distributed among multiple virtual machines (as shown in :numref:`figure_single_port_nic`),
 while still having global data in common to share with the Physical Function and other Virtual Functions.
-The DPDK fm10kvf, i40evf, igbvf or ixgbevf as a Poll Mode Driver (PMD) serves for the Intel® 82576 Gigabit Ethernet Controller,
+The DPDK fm10kvf, iavf, igbvf or ixgbevf as a Poll Mode Driver (PMD) serves for the Intel® 82576 Gigabit Ethernet Controller,
 Intel® Ethernet Controller I350 family, Intel® 82599 10 Gigabit Ethernet Controller NIC,
 Intel® Fortville 10/40 Gigabit Ethernet Controller NIC's virtual PCI function, or PCIe host-interface of the Intel Ethernet Switch
 FM10000 Series.
@@ -88,12 +88,6 @@ For more detail on SR-IOV, please refer to the following documents:
     assignment in hypervisor. Take qemu for example, the device assignment should carry the IAVF device id (0x1889) like
     ``-device vfio-pci,x-pci-device-id=0x1889,host=03:0a.0``.
 
-    Starting from DPDK 21.05, the default VF driver for Intel® 700 Series Ethernet Controller will be IAVF. No new feature
-    will be added into i40evf except bug fix until it's removed in DPDK 21.11. Between DPDK 21.05 and 21.11, by using the
-    ``devargs`` option ``driver=i40evf``, i40evf PMD still can be used on Intel® 700 Series Ethernet Controller, for example::
-
-    -a 81:02.0,driver=i40evf
-
     When IAVF is backed by an Intel® E810 device, the "Protocol Extraction" feature which is supported by ice PMD is also
     available for IAVF PMD. The same devargs with the same parameters can be applied to IAVF PMD, for detail please reference
     the section ``Protocol extraction for per queue`` of ice.rst.
doc/guides/rel_notes/deprecation.rst +0 -8
index 59445a6f42..d0a65d3f46 100644
@@ -164,14 +164,6 @@ Deprecation Notices
   consistent with existing outer header checksum status flag naming, which
   should help in reducing confusion about its usage.
 
-* i40e: As there are both i40evf and iavf pmd, the functions of them are
-  duplicated. And now more and more advanced features are developed on iavf.
-  To keep consistent with kernel driver's name
-  (https://patchwork.ozlabs.org/patch/970154/), i40evf is no need to maintain.
-  Starting from 21.05, the default VF driver of i40e will be iavf, but i40evf
-  can still be used if users specify the devarg "driver=i40evf". I40evf will
-  be deleted in DPDK 21.11.
-
 * net: ``s_addr`` and ``d_addr`` fields of ``rte_ether_hdr`` structure
   will be renamed in DPDK 21.11 to avoid conflict with Windows Sockets headers.
 
doc/guides/rel_notes/release_21_11.rst +2 -0
index b44c077fd6..27fa45ad32 100644
@@ -104,6 +104,8 @@ Removed Items
    Also, make sure to start the actual text at the margin.
    =======================================================
 
+* Removed i40evf driver. Due to iavf already became the default VF driver
+  for i40e devices, so remove i40evf due to it's no need to maintain.
 
 API Changes
 -----------
Signature · 1 line
2.25.1
#35 lore raw

v7 cover net/i40e: remove i40evf

In reply to Robin Zhang

In DPDK 21.05, iavf already became the default VF for i40e devices. So remove i40evf due to it's no need to maintain now.

v7:
- rebase code.

v6:
- remove i40e_vf struct and related code, remove doc i40e_vf.ini.

v5:
- rebase code.

v4:
- resolve compile warning issue.

v3:
- remove VF related code in i40e_rxtx.c.

v2:
- update 21.11 release note, remove some missed documentation.

Robin Zhang (3):
net/i40e: remove i40evf
net/iavf: remove i40evf devargs option
doc: remove i40evf related documentation

 doc/guides/howto/lm_bond_virtio_sriov.rst |    4 +-
 doc/guides/nics/features/i40e_vf.ini      |   40 -
 doc/guides/nics/intel_vf.rst              |    8 +-
 doc/guides/rel_notes/deprecation.rst      |    8 -
 doc/guides/rel_notes/release_21_11.rst    |    2 +
 drivers/net/i40e/base/i40e_osdep.h        |    1 -
 drivers/net/i40e/i40e_ethdev.h            |   78 +-
 drivers/net/i40e/i40e_ethdev_vf.c         | 3006 ---------------------
 drivers/net/i40e/i40e_rxtx.c              |   50 +-
 drivers/net/i40e/meson.build              |    1 -
 drivers/net/i40e/rte_pmd_i40e.c           |    9 +-
 drivers/net/iavf/iavf_ethdev.c            |   52 +-
 12 files changed, 31 insertions(+), 3228 deletions(-)
 delete mode 100644 doc/guides/nics/features/i40e_vf.ini
 delete mode 100644 drivers/net/i40e/i40e_ethdev_vf.c
Signature · 1 line
2.25.1
#36 lore raw

PATCH v7 1/3 net/i40e: remove i40evf

The default VF driver for Intel 700 Series Ethernet Controller already switch to iavf in DPDK 21.05. And i40evf is no need to maintain now, so remove i40evf related code.

---
 drivers/net/i40e/base/i40e_osdep.h |    1 -
 drivers/net/i40e/i40e_ethdev.h     |   78 +-
 drivers/net/i40e/i40e_ethdev_vf.c  | 3006 ----------------------------
 drivers/net/i40e/i40e_rxtx.c       |   50 +-
 drivers/net/i40e/meson.build       |    1 -
 drivers/net/i40e/rte_pmd_i40e.c    |    9 +-
 6 files changed, 24 insertions(+), 3121 deletions(-)
 delete mode 100644 drivers/net/i40e/i40e_ethdev_vf.c
drivers/net/i40e/base/i40e_osdep.h +0 -1
index 230d400149..51537c5cf3 100644
@@ -162,7 +162,6 @@ static inline uint64_t i40e_read64_addr(volatile void *addr)
 	rte_write32_wc_relaxed((rte_cpu_to_le_32(value)), reg)
 
 #define I40E_WRITE_FLUSH(a) I40E_READ_REG(a, I40E_GLGEN_STAT)
-#define I40EVF_WRITE_FLUSH(a) I40E_READ_REG(a, I40E_VFGEN_RSTAT)
 
 #define I40E_READ_REG(hw, reg) i40e_read_addr(I40E_PCI_REG_ADDR((hw), (reg)))
 #define I40E_WRITE_REG(hw, reg, value) \
drivers/net/i40e/i40e_ethdev.h +5 -73

114 lines not on this page · raw message

drivers/net/i40e/i40e_ethdev_vf.c deleted +0 -3006

2,879 lines not on this page · raw message

drivers/net/i40e/i40e_rxtx.c +16 -34

50 lines not on this page · raw message

drivers/net/i40e/meson.build +0 -1
index 3c931afeea..efc5f93e35 100644

Lines of this file are not shown. View the raw message.

drivers/net/i40e/rte_pmd_i40e.c +3 -6
index 2e34140c5b..c15e423656 100644

Lines of this file are not shown. View the raw message.

The rest of this diff is not shown. View the raw message.

Signature · 1 line
2.25.1

Part of the diff is not shown here. View the raw message.

#37 lore raw

PATCH v7 2/3 net/iavf: remove i40evf devargs option

In reply to Robin Zhang

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

---
 drivers/net/iavf/iavf_ethdev.c | 52 ++--------------------------------
 1 file changed, 2 insertions(+), 50 deletions(-)
drivers/net/iavf/iavf_ethdev.c +2 -50
index 985ccc98ac..c004e72486 100644
@@ -2547,58 +2547,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,
@@ -2621,7 +2573,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
Signature · 1 line
2.25.1
#38 lore raw

PATCH v7 3/3 doc: remove i40evf related documentation

In reply to Robin Zhang

As announced in the deprecation note, i40evf has been removed. So removing deprecation notice and other i40evf related documentation.

---
 doc/guides/howto/lm_bond_virtio_sriov.rst |  4 +--
 doc/guides/nics/features/i40e_vf.ini      | 40 -----------------------
 doc/guides/nics/intel_vf.rst              |  8 +----
 doc/guides/rel_notes/deprecation.rst      |  8 -----
 doc/guides/rel_notes/release_21_11.rst    |  2 ++
 5 files changed, 5 insertions(+), 57 deletions(-)
 delete mode 100644 doc/guides/nics/features/i40e_vf.ini
doc/guides/howto/lm_bond_virtio_sriov.rst +2 -2
index 3e25480316..e854ae214e 100644
@@ -392,7 +392,7 @@ Set up Virtual Functions on host_server_1
    cat /sys/bus/pci/devices/0000\:02\:00.0/sriov_numvfs
    echo 1 > /sys/bus/pci/devices/0000\:02\:00.0/sriov_numvfs
    cat /sys/bus/pci/devices/0000\:02\:00.0/sriov_numvfs
-   rmmod i40evf
+   rmmod iavf
 
 vm_virtio_vf_one_212_46.sh
 ~~~~~~~~~~~~~~~~~~~~~~~~~~
@@ -492,7 +492,7 @@ Set up Virtual Functions on host_server_2
    cat /sys/bus/pci/devices/0000\:03\:00.0/sriov_numvfs
    echo 1 > /sys/bus/pci/devices/0000\:03\:00.0/sriov_numvfs
    cat /sys/bus/pci/devices/0000\:03\:00.0/sriov_numvfs
-   rmmod i40evf
+   rmmod iavf
 
 vm_virtio_one_migrate.sh
 ~~~~~~~~~~~~~~~~~~~~~~~~
doc/guides/nics/features/i40e_vf.ini deleted +0 -40
deleted file mode 100644
index 36d7136d13..0000000000
@@ -1,40 +0,0 @@
-;
-; Supported features of the 'i40e_vf' network poll mode driver.
-;
-; Refer to default.ini for the full list of available PMD features.
-;
-[Features]
-Rx interrupt         = Y
-Link status          = Y
-Link status event    = Y
-Fast mbuf free       = P
-Queue start/stop     = Y
-Power mgmt address monitor = Y
-Jumbo frame          = Y
-Scattered Rx         = Y
-TSO                  = Y
-Promiscuous mode     = Y
-Allmulticast mode    = Y
-Unicast MAC filter   = Y
-Multicast MAC filter = Y
-RSS hash             = Y
-RSS key update       = Y
-RSS reta update      = Y
-VLAN filter          = Y
-CRC offload          = Y
-VLAN offload         = Y
-QinQ offload         = P
-L3 checksum offload  = P
-L4 checksum offload  = P
-Inner L3 checksum    = P
-Inner L4 checksum    = P
-Packet type parsing  = Y
-Rx descriptor status = Y
-Tx descriptor status = Y
-Basic stats          = Y
-Extended stats       = Y
-Multiprocess aware   = Y
-FreeBSD              = Y
-Linux                = Y
-x86-32               = Y
-x86-64               = Y
doc/guides/nics/intel_vf.rst +1 -7
index fcea8151bf..b80c41809b 100644
@@ -26,7 +26,7 @@ Refer to :numref:`figure_single_port_nic`.
 
 Therefore, a NIC is logically distributed among multiple virtual machines (as shown in :numref:`figure_single_port_nic`),
 while still having global data in common to share with the Physical Function and other Virtual Functions.
-The DPDK fm10kvf, i40evf, igbvf or ixgbevf as a Poll Mode Driver (PMD) serves for the Intel® 82576 Gigabit Ethernet Controller,
+The DPDK fm10kvf, iavf, igbvf or ixgbevf as a Poll Mode Driver (PMD) serves for the Intel® 82576 Gigabit Ethernet Controller,
 Intel® Ethernet Controller I350 family, Intel® 82599 10 Gigabit Ethernet Controller NIC,
 Intel® Fortville 10/40 Gigabit Ethernet Controller NIC's virtual PCI function, or PCIe host-interface of the Intel Ethernet Switch
 FM10000 Series.
@@ -88,12 +88,6 @@ For more detail on SR-IOV, please refer to the following documents:
     assignment in hypervisor. Take qemu for example, the device assignment should carry the IAVF device id (0x1889) like
     ``-device vfio-pci,x-pci-device-id=0x1889,host=03:0a.0``.
 
-    Starting from DPDK 21.05, the default VF driver for Intel® 700 Series Ethernet Controller will be IAVF. No new feature
-    will be added into i40evf except bug fix until it's removed in DPDK 21.11. Between DPDK 21.05 and 21.11, by using the
-    ``devargs`` option ``driver=i40evf``, i40evf PMD still can be used on Intel® 700 Series Ethernet Controller, for example::
-
-    -a 81:02.0,driver=i40evf
-
     When IAVF is backed by an Intel® E810 device, the "Protocol Extraction" feature which is supported by ice PMD is also
     available for IAVF PMD. The same devargs with the same parameters can be applied to IAVF PMD, for detail please reference
     the section ``Protocol extraction for per queue`` of ice.rst.
doc/guides/rel_notes/deprecation.rst +0 -8
index 59445a6f42..d0a65d3f46 100644
@@ -164,14 +164,6 @@ Deprecation Notices
   consistent with existing outer header checksum status flag naming, which
   should help in reducing confusion about its usage.
 
-* i40e: As there are both i40evf and iavf pmd, the functions of them are
-  duplicated. And now more and more advanced features are developed on iavf.
-  To keep consistent with kernel driver's name
-  (https://patchwork.ozlabs.org/patch/970154/), i40evf is no need to maintain.
-  Starting from 21.05, the default VF driver of i40e will be iavf, but i40evf
-  can still be used if users specify the devarg "driver=i40evf". I40evf will
-  be deleted in DPDK 21.11.
-
 * net: ``s_addr`` and ``d_addr`` fields of ``rte_ether_hdr`` structure
   will be renamed in DPDK 21.11 to avoid conflict with Windows Sockets headers.
 
doc/guides/rel_notes/release_21_11.rst +2 -0
index 19356ac53c..77e8af1833 100644
@@ -126,6 +126,8 @@ Removed Items
   blacklist/whitelist are removed. Users must use the new
   block/allow list arguments.
 
+* i40e: Removed i40evf driver. Due to iavf already became the default VF
+  driver for i40e devices, so remove i40evf due to it's no need to maintain.
 
 API Changes
 -----------
Signature · 1 line
2.25.1
Acked-by on the v7 series Applied
#39 lore raw
In reply to Robin Zhang
Quoted 56 lines

-----Original Message-----
From: Zhang, RobinX <[email protected]>
Sent: Friday, September 24, 2021 2:22 PM
To: [email protected]
Cc: Wang, Haiyue <[email protected]>; Xing, Beilei <[email protected]>; [email protected]; Wu, Jingjing <[email protected]>; Burakov, Anatoly <[email protected]>; Zhang, Qi Z <[email protected]>; Guo, Junfeng <[email protected]>; Yang, SteveX <[email protected]>; Zhang, RobinX <[email protected]>
Subject: [PATCH v7 0/3] net/i40e: remove i40evf

In DPDK 21.05, iavf already became the default VF for i40e devices. So remove i40evf due to it's no need to maintain now.

v7:
- rebase code.

v6:
- remove i40e_vf struct and related code, remove doc i40e_vf.ini.

v5:
- rebase code.

v4:
- resolve compile warning issue.

v3:
- remove VF related code in i40e_rxtx.c.

v2:
- update 21.11 release note, remove some missed documentation.

Robin Zhang (3):
net/i40e: remove i40evf
net/iavf: remove i40evf devargs option
doc: remove i40evf related documentation

 doc/guides/howto/lm_bond_virtio_sriov.rst |    4 +-
 doc/guides/nics/features/i40e_vf.ini      |   40 -
 doc/guides/nics/intel_vf.rst              |    8 +-
 doc/guides/rel_notes/deprecation.rst      |    8 -
 doc/guides/rel_notes/release_21_11.rst    |    2 +
 drivers/net/i40e/base/i40e_osdep.h        |    1 -
 drivers/net/i40e/i40e_ethdev.h            |   78 +-
 drivers/net/i40e/i40e_ethdev_vf.c         | 3006 ---------------------
 drivers/net/i40e/i40e_rxtx.c              |   50 +-
 drivers/net/i40e/meson.build              |    1 -
 drivers/net/i40e/rte_pmd_i40e.c           |    9 +-
 drivers/net/iavf/iavf_ethdev.c            |   52 +-
 12 files changed, 31 insertions(+), 3228 deletions(-)  delete mode 100644
doc/guides/nics/features/i40e_vf.ini
 delete mode 100644 drivers/net/i40e/i40e_ethdev_vf.c
Quoted 2 lines

--
2.25.1

Applied to dpdk-next-inet-intel.

Thanks
Qi

#40 lore raw
Quoted 8 lines
Quoted 4 lines

Robin Zhang (3):
net/i40e: remove i40evf
net/iavf: remove i40evf devargs option
doc: remove i40evf related documentation

Applied to dpdk-next-inet-intel.

The split of the patch is not logical. "net/iavf: remove i40evf devargs option" should be first. doc changes should be squashed in first 2 patches. There are also some minor blank line issues. I'll fix all while pulling.