net/i40e: remove i40evf
Subsystems (2)
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
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
@@ -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
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.
PATCH 2/3 net/iavf: remove i40evf devargs option
In reply to Robin ZhangDue 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
@@ -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
PATCH 3/3 doc: remove old deprecation notice for i40e
In reply to Robin ZhangAs 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
@@ -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
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
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 i40evfQuoted 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 i40eRelease 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
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 i40edoc/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
v2 cover net/i40e: remove i40evf
In reply to Robin ZhangIn 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
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
@@ -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
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.
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
Signed-off-by Robin Zhang <[email protected]>--- 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
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 i40evfThe 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
Signed-off-by Robin Zhang <[email protected]>--- 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
PATCH v2 2/3 net/iavf: remove i40evf devargs option
In reply to Robin ZhangDue 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
@@ -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
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.
Signed-off-by Robin Zhang <[email protected]>---
[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
-0RTE_LOG_REGISTER_SUFFIX (iavf_logtype_init, init,NOTICE );RTE_LOG_REGISTER_SUFFIX (iavf_logtype_driver, driver,NOTICE );#ifdef RTE_ETHDEV_DEBUG_RX
PATCH v2 3/3 doc: remove i40evf related documentation
In reply to Robin ZhangAs 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
@@ -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
@@ -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
@@ -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
@@ -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
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.
Signed-off-by Robin Zhang <[email protected]>--- 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(-)
v3 cover net/i40e: remove i40evf
In reply to Robin ZhangIn 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
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
@@ -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
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.
PATCH v3 2/3 net/iavf: remove i40evf devargs option
In reply to Robin ZhangDue 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
@@ -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
PATCH v3 3/3 doc: remove i40evf related documentation
In reply to Robin ZhangAs 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
@@ -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
@@ -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
@@ -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
@@ -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
v4 cover net/i40e: remove i40evf
In reply to Robin ZhangIn 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
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
@@ -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
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.
PATCH v4 2/3 net/iavf: remove i40evf devargs option
In reply to Robin ZhangDue 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
@@ -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
PATCH v4 3/3 doc: remove i40evf related documentation
In reply to Robin ZhangAs 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
@@ -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
@@ -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
@@ -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
@@ -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
v5 cover net/i40e: remove i40evf
In reply to Robin ZhangIn 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
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
@@ -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
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.
PATCH v5 2/3 net/iavf: remove i40evf devargs option
In reply to Robin ZhangDue 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
@@ -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
PATCH v5 3/3 doc: remove i40evf related documentation
In reply to Robin ZhangAs 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
@@ -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
@@ -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
@@ -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
@@ -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
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 i40evfIn 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 ini40e_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 documentationdoc/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
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 ini40e_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/
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 i40evfQuoted 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 ini40e_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 documentationJust 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 i40evfdrivers/net/
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 i40evfQuoted 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 ini40e_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 documentationJust 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:#defineI40EVF_DEV_PRIVATE_TO_VF(adapter)\i40e/i40e_ethdev.h: structi40e_vf*vf =I40EVF_DEV_PRIVATE_TO_VF(adapter);
This is a helper function "i40e_get_vsi_from_adapter", we still keep thei40e_vfmember ini40e_adapterstructure 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 i40evfdrivers/net/
v6 cover net/i40e: remove i40evf
In reply to Robin ZhangIn 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
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
@@ -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
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.
PATCH v6 2/3 net/iavf: remove i40evf devargs option
In reply to Robin ZhangDue 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
@@ -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
PATCH v6 3/3 doc: remove i40evf related documentation
In reply to Robin ZhangAs 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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
v7 cover net/i40e: remove i40evf
In reply to Robin ZhangIn 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
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
@@ -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
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.
PATCH v7 2/3 net/iavf: remove i40evf devargs option
In reply to Robin ZhangDue 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
@@ -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
PATCH v7 3/3 doc: remove i40evf related documentation
In reply to Robin ZhangAs 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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
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 i40evfIn 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:
- removei40e_vfstruct and related code, remove doc i40e_vf.ini.v5:
- rebase code.v4:
- resolve compile warning issue.v3:
- remove VF related code ini40e_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 documentationdoc/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
Quoted 8 lines
Quoted 4 lines
Robin Zhang (3):
net/i40e: remove i40evf
net/iavf: remove i40evf devargs option
doc: remove i40evf related documentationAcked-by Qi Zhang <[email protected]>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.