net/iavf: rename avf to iavf
Subsystems (2)
PATCH 1/2 net/iavf: rename avf to iavf
Rename Intel Ethernet Adaptive Virtual Function driver avf to iavf.
This patch renames the directory name, filenames, lib name, macros, functions, structs and any other strings in the iavf src code.
---
config/common_base | 16 +-
drivers/net/Makefile | 2 +-
drivers/net/avf/avf.h | 216 --
drivers/net/avf/base/avf_adminq_cmd.h | 2841 -----------------
drivers/net/avf/base/avf_common.c | 1845 -----------
drivers/net/avf/base/avf_hmc.h | 245 --
drivers/net/avf/base/avf_prototype.h | 206 --
drivers/net/avf/base/avf_register.h | 346 --
drivers/net/avf/base/avf_status.h | 108 -
drivers/net/avf/base/avf_type.h | 2024 ------------
drivers/net/{avf => iavf}/Makefile | 16 +-
drivers/net/{avf => iavf}/base/README | 8 +-
.../avf_adminq.c => iavf/base/iavf_adminq.c} | 582 ++--
.../avf_adminq.h => iavf/base/iavf_adminq.h} | 116 +-
drivers/net/iavf/base/iavf_adminq_cmd.h | 2841 +++++++++++++++++
.../avf_alloc.h => iavf/base/iavf_alloc.h} | 46 +-
drivers/net/iavf/base/iavf_common.c | 1845 +++++++++++
.../avf_devids.h => iavf/base/iavf_devids.h} | 10 +-
drivers/net/iavf/base/iavf_hmc.h | 245 ++
.../base/iavf_lan_hmc.h} | 132 +-
.../avf_osdep.h => iavf/base/iavf_osdep.h} | 82 +-
drivers/net/iavf/base/iavf_prototype.h | 206 ++
drivers/net/iavf/base/iavf_register.h | 346 ++
drivers/net/iavf/base/iavf_status.h | 108 +
drivers/net/iavf/base/iavf_type.h | 2024 ++++++++++++
drivers/net/{avf => iavf}/base/meson.build | 6 +-
drivers/net/{avf => iavf}/base/virtchnl.h | 10 +-
drivers/net/iavf/iavf.h | 216 ++
.../{avf/avf_ethdev.c => iavf/iavf_ethdev.c} | 730 ++---
.../net/{avf/avf_log.h => iavf/iavf_log.h} | 20 +-
.../net/{avf/avf_rxtx.c => iavf/iavf_rxtx.c} | 592 ++--
.../net/{avf/avf_rxtx.h => iavf/iavf_rxtx.h} | 162 +-
.../iavf_rxtx_vec_common.h} | 30 +-
.../iavf_rxtx_vec_sse.c} | 120 +-
.../{avf/avf_vchnl.c => iavf/iavf_vchnl.c} | 256 +-
drivers/net/{avf => iavf}/meson.build | 10 +-
.../rte_pmd_iavf_version.map} | 0
drivers/net/meson.build | 2 +-
mk/rte.app.mk | 2 +-
39 files changed, 9306 insertions(+), 9306 deletions(-)
delete mode 100644 drivers/net/avf/avf.h
delete mode 100644 drivers/net/avf/base/avf_adminq_cmd.h
delete mode 100644 drivers/net/avf/base/avf_common.c
delete mode 100644 drivers/net/avf/base/avf_hmc.h
delete mode 100644 drivers/net/avf/base/avf_prototype.h
delete mode 100644 drivers/net/avf/base/avf_register.h
delete mode 100644 drivers/net/avf/base/avf_status.h
delete mode 100644 drivers/net/avf/base/avf_type.h
rename drivers/net/{avf => iavf}/Makefile (73%)
rename drivers/net/{avf => iavf}/base/README (65%)
rename drivers/net/{avf/base/avf_adminq.c => iavf/base/iavf_adminq.c} (56%)
rename drivers/net/{avf/base/avf_adminq.h => iavf/base/iavf_adminq.h} (57%)
create mode 100644 drivers/net/iavf/base/iavf_adminq_cmd.h
rename drivers/net/{avf/base/avf_alloc.h => iavf/base/iavf_alloc.h} (66%)
create mode 100644 drivers/net/iavf/base/iavf_common.c
rename drivers/net/{avf/base/avf_devids.h => iavf/base/iavf_devids.h} (91%)
create mode 100644 drivers/net/iavf/base/iavf_hmc.h
rename drivers/net/{avf/base/avf_lan_hmc.h => iavf/base/iavf_lan_hmc.h} (59%)
rename drivers/net/{avf/base/avf_osdep.h => iavf/base/iavf_osdep.h} (60%)
create mode 100644 drivers/net/iavf/base/iavf_prototype.h
create mode 100644 drivers/net/iavf/base/iavf_register.h
create mode 100644 drivers/net/iavf/base/iavf_status.h
create mode 100644 drivers/net/iavf/base/iavf_type.h
rename drivers/net/{avf => iavf}/base/meson.build (83%)
rename drivers/net/{avf => iavf}/base/virtchnl.h (98%)
create mode 100644 drivers/net/iavf/iavf.h
rename drivers/net/{avf/avf_ethdev.c => iavf/iavf_ethdev.c} (57%)
rename drivers/net/{avf/avf_log.h => iavf/iavf_log.h} (72%)
rename drivers/net/{avf/avf_rxtx.c => iavf/iavf_rxtx.c} (73%)
rename drivers/net/{avf/avf_rxtx.h => iavf/iavf_rxtx.h} (58%)
rename drivers/net/{avf/avf_rxtx_vec_common.h => iavf/iavf_rxtx_vec_common.h} (87%)
rename drivers/net/{avf/avf_rxtx_vec_sse.c => iavf/iavf_rxtx_vec_sse.c} (85%)
rename drivers/net/{avf/avf_vchnl.c => iavf/iavf_vchnl.c} (74%)
rename drivers/net/{avf => iavf}/meson.build (63%)
rename drivers/net/{avf/rte_pmd_avf_version.map => iavf/rte_pmd_iavf_version.map} (100%)config/common_base +8 -8
@@ -306,14 +306,14 @@ CONFIG_RTE_LIBRTE_ICE_DEBUG_TX_FREE=n CONFIG_RTE_LIBRTE_ICE_RX_ALLOW_BULK_ALLOC=y CONFIG_RTE_LIBRTE_ICE_16BYTE_RX_DESC=n -# Compile burst-oriented AVF PMD driver -# -CONFIG_RTE_LIBRTE_AVF_PMD=y -CONFIG_RTE_LIBRTE_AVF_INC_VECTOR=y -CONFIG_RTE_LIBRTE_AVF_DEBUG_TX=n -CONFIG_RTE_LIBRTE_AVF_DEBUG_TX_FREE=n -CONFIG_RTE_LIBRTE_AVF_DEBUG_RX=n -CONFIG_RTE_LIBRTE_AVF_16BYTE_RX_DESC=n +# Compile burst-oriented IAVF PMD driver +# +CONFIG_RTE_LIBRTE_IAVF_PMD=y +CONFIG_RTE_LIBRTE_IAVF_INC_VECTOR=y +CONFIG_RTE_LIBRTE_IAVF_DEBUG_TX=n +CONFIG_RTE_LIBRTE_IAVF_DEBUG_TX_FREE=n +CONFIG_RTE_LIBRTE_IAVF_DEBUG_RX=n +CONFIG_RTE_LIBRTE_IAVF_16BYTE_RX_DESC=n # # Compile burst-oriented Mellanox ConnectX-3 (MLX4) PMD
drivers/net/Makefile +1 -1
@@ -11,7 +11,7 @@ endif DIRS-$(CONFIG_RTE_LIBRTE_PMD_AF_PACKET) += af_packet DIRS-$(CONFIG_RTE_LIBRTE_ARK_PMD) += ark DIRS-$(CONFIG_RTE_LIBRTE_ATLANTIC_PMD) += atlantic -DIRS-$(CONFIG_RTE_LIBRTE_AVF_PMD) += avf +DIRS-$(CONFIG_RTE_LIBRTE_IAVF_PMD) += iavf DIRS-$(CONFIG_RTE_LIBRTE_AVP_PMD) += avp DIRS-$(CONFIG_RTE_LIBRTE_AXGBE_PMD) += axgbe DIRS-$(CONFIG_RTE_LIBRTE_BNX2X_PMD) += bnx2x
drivers/net/avf/avf.h deleted +0 -216
216 lines not on this page · raw message
drivers/net/avf/base/avf_adminq_cmd.h deleted +0 -2841
2,754 lines not on this page · raw message
drivers/net/avf/base/avf_common.c deleted +0 -1845
1,845 lines not on this page · raw message
drivers/net/avf/base/avf_hmc.h deleted +0 -245
245 lines not on this page · raw message
drivers/net/avf/base/avf_prototype.h deleted +0 -206
206 lines not on this page · raw message
drivers/net/avf/base/avf_register.h deleted +0 -346
346 lines not on this page · raw message
drivers/net/avf/base/avf_status.h deleted +0 -108
108 lines not on this page · raw message
drivers/net/avf/base/avf_type.h deleted +0 -2024
2,024 lines not on this page · raw message
drivers/net/iavf/Makefile renamed from drivers/net/avf/Makefile +8 -8
Lines of this file are not shown. View the raw message.
drivers/net/iavf/base/README renamed from drivers/net/avf/base/README +4 -4
Lines of this file are not shown. View the raw message.
drivers/net/iavf/base/iavf_adminq.c renamed from drivers/net/avf/base/avf_adminq.c +291 -291
582 lines not on this page · raw message
drivers/net/iavf/base/iavf_adminq.h renamed from drivers/net/avf/base/avf_adminq.h +58 -58
116 lines not on this page · raw message
drivers/net/iavf/base/iavf_adminq_cmd.h new file +2841 -0
2,841 lines not on this page · raw message
drivers/net/iavf/base/iavf_alloc.h renamed from drivers/net/avf/base/avf_alloc.h +23 -23
46 lines not on this page · raw message
drivers/net/iavf/base/iavf_common.c new file +1845 -0
1,845 lines not on this page · raw message
drivers/net/iavf/base/iavf_devids.h renamed from drivers/net/avf/base/avf_devids.h +5 -5
Lines of this file are not shown. View the raw message.
drivers/net/iavf/base/iavf_hmc.h new file +245 -0
245 lines not on this page · raw message
drivers/net/iavf/base/iavf_lan_hmc.h renamed from drivers/net/avf/base/avf_lan_hmc.h +66 -66
132 lines not on this page · raw message
drivers/net/iavf/base/iavf_osdep.h renamed from drivers/net/avf/base/avf_osdep.h +41 -41
82 lines not on this page · raw message
drivers/net/iavf/base/iavf_prototype.h new file +206 -0
206 lines not on this page · raw message
drivers/net/iavf/base/iavf_register.h new file +346 -0
346 lines not on this page · raw message
drivers/net/iavf/base/iavf_status.h new file +108 -0
108 lines not on this page · raw message
drivers/net/iavf/base/iavf_type.h new file +2024 -0
2,024 lines not on this page · raw message
drivers/net/iavf/base/meson.build renamed from drivers/net/avf/base/meson.build +3 -3
Lines of this file are not shown. View the raw message.
drivers/net/iavf/base/virtchnl.h renamed from drivers/net/avf/base/virtchnl.h +5 -5
Lines of this file are not shown. View the raw message.
drivers/net/iavf/iavf.h new file +216 -0
216 lines not on this page · raw message
drivers/net/iavf/iavf_ethdev.c renamed from drivers/net/avf/avf_ethdev.c +365 -365
730 lines not on this page · raw message
drivers/net/iavf/iavf_log.h renamed from drivers/net/avf/avf_log.h +10 -10
Lines of this file are not shown. View the raw message.
drivers/net/iavf/iavf_rxtx.c renamed from drivers/net/avf/avf_rxtx.c +296 -296
592 lines not on this page · raw message
drivers/net/iavf/iavf_rxtx.h renamed from drivers/net/avf/avf_rxtx.h +81 -81
162 lines not on this page · raw message
drivers/net/iavf/iavf_rxtx_vec_common.h renamed from drivers/net/avf/avf_rxtx_vec_common.h +15 -15
Lines of this file are not shown. View the raw message.
drivers/net/iavf/iavf_rxtx_vec_sse.c renamed from drivers/net/avf/avf_rxtx_vec_sse.c +60 -60
120 lines not on this page · raw message
drivers/net/iavf/iavf_vchnl.c renamed from drivers/net/avf/avf_vchnl.c +128 -128
256 lines not on this page · raw message
drivers/net/iavf/meson.build renamed from drivers/net/avf/meson.build +5 -5
Lines of this file are not shown. View the raw message.
drivers/net/iavf/rte_pmd_iavf_version.map renamed from drivers/net/avf/rte_pmd_avf_version.map +0 -0
The rest of this diff is not shown. View the raw message.
Signature · 1 line
2.17.1
Part of the diff is not shown here. View the raw message.
PATCH 2/2 doc: rename avf to iavf
This patch renames avf to iavf only for the doc files.
---
MAINTAINERS | 6 +++---
doc/guides/nics/features/{avf.ini => iavf.ini} | 2 +-
.../nics/features/{avf_vec.ini => iavf_vec.ini} | 2 +-
doc/guides/nics/intel_vf.rst | 14 +++++++-------
4 files changed, 12 insertions(+), 12 deletions(-)
rename doc/guides/nics/features/{avf.ini => iavf.ini} (93%)
rename doc/guides/nics/features/{avf_vec.ini => iavf_vec.ini} (92%)MAINTAINERS +3 -3
@@ -577,12 +577,12 @@ F: drivers/net/fm10k/ F: doc/guides/nics/fm10k.rst F: doc/guides/nics/features/fm10k*.ini -Intel avf +Intel iavf M: Jingjing Wu <[email protected]> M: Wenzhuo Lu <[email protected]> T: git://dpdk.org/next/dpdk-next-net-intel -F: drivers/net/avf/ -F: doc/guides/nics/features/avf*.ini +F: drivers/net/iavf/ +F: doc/guides/nics/features/iavf*.ini Intel ifc M: Xiao Wang <[email protected]>
doc/guides/nics/features/iavf.ini renamed from doc/guides/nics/features/avf.ini +1 -1
@@ -1,5 +1,5 @@ ; -; Supported features of the 'avf' network poll mode driver. +; Supported features of the 'iavf' network poll mode driver. ; ; Refer to default.ini for the full list of available PMD features. ;
doc/guides/nics/features/iavf_vec.ini renamed from doc/guides/nics/features/avf_vec.ini +1 -1
@@ -1,5 +1,5 @@ ; -; Supported features of the 'avf_vec' network poll mode driver. +; Supported features of the 'iavf_vec' network poll mode driver. ; ; Refer to default.ini for the full list of available PMD features. ;
doc/guides/nics/intel_vf.rst +7 -7
@@ -68,11 +68,11 @@ which is called a "Mailbox". Intel® Ethernet Adaptive Virtual Function ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -Adaptive Virtual Function (AVF) is a SR-IOV Virtual Function with the same device id (8086:1889) on different Intel Ethernet Controller. -AVF Driver is VF driver which supports for all future Intel devices without requiring a VM update. And since this happens to be an adaptive VF driver, +Adaptive Virtual Function (IAVF) is a SR-IOV Virtual Function with the same device id (8086:1889) on different Intel Ethernet Controller. +IAVF Driver is VF driver which supports for all future Intel devices without requiring a VM update. And since this happens to be an adaptive VF driver, every new drop of the VF driver would add more and more advanced features that can be turned on in the VM if the underlying HW device supports those -advanced features based on a device agnostic way without ever compromising on the base functionality. AVF provides generic hardware interface and -interface between AVF driver and a compliant PF driver is specified. +advanced features based on a device agnostic way without ever compromising on the base functionality. IAVF provides generic hardware interface and +interface between IAVF driver and a compliant PF driver is specified. Intel products starting Ethernet Controller 700 Series to support Adaptive Virtual Function.
@@ -80,12 +80,12 @@ The way to generate Virtual Function is like normal, and the resource of VF assi For more detail on SR-IOV, please refer to the following documents: -* `Intel® AVF HAS <https://www.intel.com/content/dam/www/public/us/en/documents/product-specifications/ethernet-adaptive-virtual-function-hardware-spec.pdf>`_ +* `Intel® IAVF HAS <https://www.intel.com/content/dam/www/public/us/en/documents/product-specifications/ethernet-adaptive-virtual-function-hardware-spec.pdf>`_ .. note:: - To use DPDK AVF PMD on Intel® 700 Series Ethernet Controller, the device id (0x1889) need to specified during device - assignment in hypervisor. Take qemu for example, the device assignment should carry the AVF device id (0x1889) like + To use DPDK IAVF PMD on Intel® 700 Series Ethernet Controller, the device id (0x1889) need to specified during device + 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``. The PCIE host-interface of Intel Ethernet Switch FM10000 Series VF infrastructure
Signature · 1 line
2.17.1
Re: [PATCH 2/2] doc: rename avf to iavf
Quoted 11 lines · Leyi Rong
This patch renames avf to iavf only for the doc files.
Signed-off-by Leyi Rong <[email protected]>--- MAINTAINERS | 6 +++--- doc/guides/nics/features/{avf.ini => iavf.ini} | 2 +- .../nics/features/{avf_vec.ini => iavf_vec.ini} | 2 +- doc/guides/nics/intel_vf.rst | 14 +++++++------- 4 files changed, 12 insertions(+), 12 deletions(-) rename doc/guides/nics/features/{avf.ini => iavf.ini} (93%) rename doc/guides/nics/features/{avf_vec.ini => iavf_vec.ini} (92%)
Normally I believe no need to make this a separate patch, but perhaps can be OK to separate since first one is too big.
If the suggestion I make to separate renaming files, and updating file content makes those patches smaller, I suggest squashing this patch that one.
Re: [PATCH 2/2] doc: rename avf to iavf
Quoted 23 lines
-----Original Message-----
From: Yigit, Ferruh
Sent: Saturday, February 23, 2019 12:46 AM
To: Rong, Leyi <[email protected]>; Wu, Jingjing <[email protected]>; Lu, Wenzhuo <[email protected]>; Zhang, Qi Z <[email protected]>
Cc: [email protected]
Subject: Re: [dpdk-dev] [PATCH 2/2] doc: rename avf to iavfQuoted 11 lines · Leyi Rong
This patch renames avf to iavf only for the doc files.
Signed-off-by Leyi Rong <[email protected]>--- MAINTAINERS | 6 +++--- doc/guides/nics/features/{avf.ini => iavf.ini} | 2 +- .../nics/features/{avf_vec.ini => iavf_vec.ini} | 2 +- doc/guides/nics/intel_vf.rst | 14 +++++++------- 4 files changed, 12 insertions(+), 12 deletions(-) renamedoc/guides/nics/features/{avf.ini => iavf.ini} (93%) rename doc/guides/nics/features/{avf_vec.ini => iavf_vec.ini} (92%)
Quoted 4 lines
Normally I believe no need to make this a separate patch, but perhaps can be OK to separate since first one is too big.
If the suggestion I make to separate renaming files, and updating file content makes those patches smaller, I suggest squashing this patch that one.
Hi Ferruh,
Can I just keep this patch as a separate one since this one will only affect the doc files, but the previous patch is a big one which will affect the iavf src code.
Thanks,
Leyi
v2 cover rename avf to iavf
In reply to Leyi RongLeyi Rong (3):
net/iavf: rename avf to iavf
net/iavf: rename remaining avf strings
doc: rename avf to iavf
MAINTAINERS | 6 +-
config/common_base | 16 +-
.../nics/features/{avf.ini => iavf.ini} | 2 +-
.../features/{avf_vec.ini => iavf_vec.ini} | 2 +-
doc/guides/nics/intel_vf.rst | 14 +-
drivers/net/Makefile | 2 +-
drivers/net/avf/avf.h | 216 --
drivers/net/avf/base/avf_adminq_cmd.h | 2841 -----------------
drivers/net/avf/base/avf_common.c | 1845 -----------
drivers/net/avf/base/avf_hmc.h | 245 --
drivers/net/avf/base/avf_prototype.h | 206 --
drivers/net/avf/base/avf_register.h | 346 --
drivers/net/avf/base/avf_status.h | 108 -
drivers/net/avf/base/avf_type.h | 2024 ------------
drivers/net/{avf => iavf}/Makefile | 16 +-
drivers/net/{avf => iavf}/base/README | 8 +-
.../avf_adminq.c => iavf/base/iavf_adminq.c} | 582 ++--
.../avf_adminq.h => iavf/base/iavf_adminq.h} | 116 +-
drivers/net/iavf/base/iavf_adminq_cmd.h | 2841 +++++++++++++++++
.../avf_alloc.h => iavf/base/iavf_alloc.h} | 46 +-
drivers/net/iavf/base/iavf_common.c | 1845 +++++++++++
.../avf_devids.h => iavf/base/iavf_devids.h} | 10 +-
drivers/net/iavf/base/iavf_hmc.h | 245 ++
.../base/iavf_lan_hmc.h} | 132 +-
.../avf_osdep.h => iavf/base/iavf_osdep.h} | 82 +-
drivers/net/iavf/base/iavf_prototype.h | 206 ++
drivers/net/iavf/base/iavf_register.h | 346 ++
drivers/net/iavf/base/iavf_status.h | 108 +
drivers/net/iavf/base/iavf_type.h | 2024 ++++++++++++
drivers/net/{avf => iavf}/base/meson.build | 6 +-
drivers/net/{avf => iavf}/base/virtchnl.h | 10 +-
drivers/net/iavf/iavf.h | 216 ++
.../{avf/avf_ethdev.c => iavf/iavf_ethdev.c} | 730 ++---
.../net/{avf/avf_log.h => iavf/iavf_log.h} | 20 +-
.../net/{avf/avf_rxtx.c => iavf/iavf_rxtx.c} | 592 ++--
.../net/{avf/avf_rxtx.h => iavf/iavf_rxtx.h} | 162 +-
.../iavf_rxtx_vec_common.h} | 30 +-
.../iavf_rxtx_vec_sse.c} | 120 +-
.../{avf/avf_vchnl.c => iavf/iavf_vchnl.c} | 256 +-
drivers/net/{avf => iavf}/meson.build | 10 +-
.../rte_pmd_iavf_version.map} | 0
drivers/net/meson.build | 2 +-
mk/rte.app.mk | 2 +-
43 files changed, 9318 insertions(+), 9318 deletions(-)
rename doc/guides/nics/features/{avf.ini => iavf.ini} (93%)
rename doc/guides/nics/features/{avf_vec.ini => iavf_vec.ini} (92%)
delete mode 100644 drivers/net/avf/avf.h
delete mode 100644 drivers/net/avf/base/avf_adminq_cmd.h
delete mode 100644 drivers/net/avf/base/avf_common.c
delete mode 100644 drivers/net/avf/base/avf_hmc.h
delete mode 100644 drivers/net/avf/base/avf_prototype.h
delete mode 100644 drivers/net/avf/base/avf_register.h
delete mode 100644 drivers/net/avf/base/avf_status.h
delete mode 100644 drivers/net/avf/base/avf_type.h
rename drivers/net/{avf => iavf}/Makefile (73%)
rename drivers/net/{avf => iavf}/base/README (65%)
rename drivers/net/{avf/base/avf_adminq.c => iavf/base/iavf_adminq.c} (56%)
rename drivers/net/{avf/base/avf_adminq.h => iavf/base/iavf_adminq.h} (57%)
create mode 100644 drivers/net/iavf/base/iavf_adminq_cmd.h
rename drivers/net/{avf/base/avf_alloc.h => iavf/base/iavf_alloc.h} (66%)
create mode 100644 drivers/net/iavf/base/iavf_common.c
rename drivers/net/{avf/base/avf_devids.h => iavf/base/iavf_devids.h} (91%)
create mode 100644 drivers/net/iavf/base/iavf_hmc.h
rename drivers/net/{avf/base/avf_lan_hmc.h => iavf/base/iavf_lan_hmc.h} (59%)
rename drivers/net/{avf/base/avf_osdep.h => iavf/base/iavf_osdep.h} (60%)
create mode 100644 drivers/net/iavf/base/iavf_prototype.h
create mode 100644 drivers/net/iavf/base/iavf_register.h
create mode 100644 drivers/net/iavf/base/iavf_status.h
create mode 100644 drivers/net/iavf/base/iavf_type.h
rename drivers/net/{avf => iavf}/base/meson.build (83%)
rename drivers/net/{avf => iavf}/base/virtchnl.h (98%)
create mode 100644 drivers/net/iavf/iavf.h
rename drivers/net/{avf/avf_ethdev.c => iavf/iavf_ethdev.c} (57%)
rename drivers/net/{avf/avf_log.h => iavf/iavf_log.h} (72%)
rename drivers/net/{avf/avf_rxtx.c => iavf/iavf_rxtx.c} (73%)
rename drivers/net/{avf/avf_rxtx.h => iavf/iavf_rxtx.h} (58%)
rename drivers/net/{avf/avf_rxtx_vec_common.h => iavf/iavf_rxtx_vec_common.h} (87%)
rename drivers/net/{avf/avf_rxtx_vec_sse.c => iavf/iavf_rxtx_vec_sse.c} (85%)
rename drivers/net/{avf/avf_vchnl.c => iavf/iavf_vchnl.c} (74%)
rename drivers/net/{avf => iavf}/meson.build (63%)
rename drivers/net/{avf/rte_pmd_avf_version.map => iavf/rte_pmd_iavf_version.map} (100%)Signature · 1 line
2.17.1
PATCH v2 1/3 net/iavf: rename avf to iavf
Rename Intel Ethernet Adaptive Virtual Function driver avf to iavf.
This is the first patch which will only renames the directory name, lib name, filenames and updates the new name in makefile and meson files. Also updates the #include files in source files.
---
drivers/net/Makefile | 2 +-
drivers/net/{avf => iavf}/Makefile | 16 ++++++++--------
drivers/net/{avf => iavf}/base/README | 0
.../avf_adminq.c => iavf/base/iavf_adminq.c} | 10 +++++-----
.../avf_adminq.h => iavf/base/iavf_adminq.h} | 6 +++---
.../base/iavf_adminq_cmd.h} | 0
.../base/avf_alloc.h => iavf/base/iavf_alloc.h} | 0
.../avf_common.c => iavf/base/iavf_common.c} | 6 +++---
.../avf_devids.h => iavf/base/iavf_devids.h} | 0
.../{avf/base/avf_hmc.h => iavf/base/iavf_hmc.h} | 0
.../avf_lan_hmc.h => iavf/base/iavf_lan_hmc.h} | 0
.../base/avf_osdep.h => iavf/base/iavf_osdep.h} | 2 +-
.../base/iavf_prototype.h} | 4 ++--
.../avf_register.h => iavf/base/iavf_register.h} | 0
.../avf_status.h => iavf/base/iavf_status.h} | 0
.../base/avf_type.h => iavf/base/iavf_type.h} | 14 +++++++-------
drivers/net/{avf => iavf}/base/meson.build | 6 +++---
drivers/net/{avf => iavf}/base/virtchnl.h | 0
drivers/net/{avf/avf.h => iavf/iavf.h} | 0
.../net/{avf/avf_ethdev.c => iavf/iavf_ethdev.c} | 12 ++++++------
drivers/net/{avf/avf_log.h => iavf/iavf_log.h} | 0
drivers/net/{avf/avf_rxtx.c => iavf/iavf_rxtx.c} | 10 +++++-----
drivers/net/{avf/avf_rxtx.h => iavf/iavf_rxtx.h} | 0
.../iavf_rxtx_vec_common.h} | 4 ++--
.../iavf_rxtx_vec_sse.c} | 10 +++++-----
.../net/{avf/avf_vchnl.c => iavf/iavf_vchnl.c} | 12 ++++++------
drivers/net/{avf => iavf}/meson.build | 8 ++++----
.../rte_pmd_iavf_version.map} | 0
drivers/net/meson.build | 2 +-
mk/rte.app.mk | 2 +-
30 files changed, 63 insertions(+), 63 deletions(-)
rename drivers/net/{avf => iavf}/Makefile (73%)
rename drivers/net/{avf => iavf}/base/README (100%)
rename drivers/net/{avf/base/avf_adminq.c => iavf/base/iavf_adminq.c} (99%)
rename drivers/net/{avf/base/avf_adminq.h => iavf/base/iavf_adminq.h} (98%)
rename drivers/net/{avf/base/avf_adminq_cmd.h => iavf/base/iavf_adminq_cmd.h} (100%)
rename drivers/net/{avf/base/avf_alloc.h => iavf/base/iavf_alloc.h} (100%)
rename drivers/net/{avf/base/avf_common.c => iavf/base/iavf_common.c} (99%)
rename drivers/net/{avf/base/avf_devids.h => iavf/base/iavf_devids.h} (100%)
rename drivers/net/{avf/base/avf_hmc.h => iavf/base/iavf_hmc.h} (100%)
rename drivers/net/{avf/base/avf_lan_hmc.h => iavf/base/iavf_lan_hmc.h} (100%)
rename drivers/net/{avf/base/avf_osdep.h => iavf/base/iavf_osdep.h} (99%)
rename drivers/net/{avf/base/avf_prototype.h => iavf/base/iavf_prototype.h} (99%)
rename drivers/net/{avf/base/avf_register.h => iavf/base/iavf_register.h} (100%)
rename drivers/net/{avf/base/avf_status.h => iavf/base/iavf_status.h} (100%)
rename drivers/net/{avf/base/avf_type.h => iavf/base/iavf_type.h} (99%)
rename drivers/net/{avf => iavf}/base/meson.build (83%)
rename drivers/net/{avf => iavf}/base/virtchnl.h (100%)
rename drivers/net/{avf/avf.h => iavf/iavf.h} (100%)
rename drivers/net/{avf/avf_ethdev.c => iavf/iavf_ethdev.c} (99%)
rename drivers/net/{avf/avf_log.h => iavf/iavf_log.h} (100%)
rename drivers/net/{avf/avf_rxtx.c => iavf/iavf_rxtx.c} (99%)
rename drivers/net/{avf/avf_rxtx.h => iavf/iavf_rxtx.h} (100%)
rename drivers/net/{avf/avf_rxtx_vec_common.h => iavf/iavf_rxtx_vec_common.h} (99%)
rename drivers/net/{avf/avf_rxtx_vec_sse.c => iavf/iavf_rxtx_vec_sse.c} (99%)
rename drivers/net/{avf/avf_vchnl.c => iavf/iavf_vchnl.c} (99%)
rename drivers/net/{avf => iavf}/meson.build (76%)
rename drivers/net/{avf/rte_pmd_avf_version.map => iavf/rte_pmd_iavf_version.map} (100%)drivers/net/Makefile +1 -1
@@ -11,7 +11,6 @@ endif DIRS-$(CONFIG_RTE_LIBRTE_PMD_AF_PACKET) += af_packet DIRS-$(CONFIG_RTE_LIBRTE_ARK_PMD) += ark DIRS-$(CONFIG_RTE_LIBRTE_ATLANTIC_PMD) += atlantic -DIRS-$(CONFIG_RTE_LIBRTE_AVF_PMD) += avf DIRS-$(CONFIG_RTE_LIBRTE_AVP_PMD) += avp DIRS-$(CONFIG_RTE_LIBRTE_AXGBE_PMD) += axgbe DIRS-$(CONFIG_RTE_LIBRTE_BNX2X_PMD) += bnx2x
@@ -30,6 +29,7 @@ DIRS-$(CONFIG_RTE_LIBRTE_ENIC_PMD) += enic DIRS-$(CONFIG_RTE_LIBRTE_PMD_FAILSAFE) += failsafe DIRS-$(CONFIG_RTE_LIBRTE_FM10K_PMD) += fm10k DIRS-$(CONFIG_RTE_LIBRTE_I40E_PMD) += i40e +DIRS-$(CONFIG_RTE_LIBRTE_AVF_PMD) += iavf DIRS-$(CONFIG_RTE_LIBRTE_ICE_PMD) += ice DIRS-$(CONFIG_RTE_LIBRTE_IXGBE_PMD) += ixgbe DIRS-$(CONFIG_RTE_LIBRTE_LIO_PMD) += liquidio
drivers/net/iavf/Makefile renamed from drivers/net/avf/Makefile +8 -8
@@ -6,7 +6,7 @@ include $(RTE_SDK)/mk/rte.vars.mk # # library name # -LIB = librte_pmd_avf.a +LIB = librte_pmd_iavf.a CFLAGS += -O3 $(WERROR_FLAGS) -Wno-strict-aliasing -DALLOW_EXPERIMENTAL_API LDLIBS += -lrte_eal -lrte_mbuf -lrte_mempool -lrte_ring
@@ -16,7 +16,7 @@ LDLIBS += -lrte_bus_pci # used to dump HW descriptor for debugging # CFLAGS += -DDEBUG_DUMP_DESC -EXPORT_MAP := rte_pmd_avf_version.map +EXPORT_MAP := rte_pmd_iavf_version.map LIBABIVER := 1
@@ -41,14 +41,14 @@ VPATH += $(SRCDIR)/base # # all source are stored in SRCS-y # -SRCS-$(CONFIG_RTE_LIBRTE_AVF_PMD) += avf_adminq.c -SRCS-$(CONFIG_RTE_LIBRTE_AVF_PMD) += avf_common.c +SRCS-$(CONFIG_RTE_LIBRTE_AVF_PMD) += iavf_adminq.c +SRCS-$(CONFIG_RTE_LIBRTE_AVF_PMD) += iavf_common.c -SRCS-$(CONFIG_RTE_LIBRTE_AVF_PMD) += avf_ethdev.c -SRCS-$(CONFIG_RTE_LIBRTE_AVF_PMD) += avf_vchnl.c -SRCS-$(CONFIG_RTE_LIBRTE_AVF_PMD) += avf_rxtx.c +SRCS-$(CONFIG_RTE_LIBRTE_AVF_PMD) += iavf_ethdev.c +SRCS-$(CONFIG_RTE_LIBRTE_AVF_PMD) += iavf_vchnl.c +SRCS-$(CONFIG_RTE_LIBRTE_AVF_PMD) += iavf_rxtx.c ifeq ($(CONFIG_RTE_ARCH_X86), y) -SRCS-$(CONFIG_RTE_LIBRTE_AVF_INC_VECTOR) += avf_rxtx_vec_sse.c +SRCS-$(CONFIG_RTE_LIBRTE_AVF_INC_VECTOR) += iavf_rxtx_vec_sse.c endif include $(RTE_SDK)/mk/rte.lib.mk
drivers/net/iavf/base/README renamed from drivers/net/avf/base/README +0 -0
drivers/net/iavf/base/iavf_adminq.c renamed from drivers/net/avf/base/avf_adminq.c +5 -5
@@ -31,11 +31,11 @@ POSSIBILITY OF SUCH DAMAGE.***************************************************************************/ -#include "avf_status.h" -#include "avf_type.h" -#include "avf_register.h" -#include "avf_adminq.h" -#include "avf_prototype.h" +#include "iavf_status.h" +#include "iavf_type.h" +#include "iavf_register.h" +#include "iavf_adminq.h" +#include "iavf_prototype.h" /** * avf_adminq_init_regs - Initialize AdminQ registers
drivers/net/iavf/base/iavf_adminq.h renamed from drivers/net/avf/base/avf_adminq.h +3 -3
@@ -34,9 +34,9 @@ POSSIBILITY OF SUCH DAMAGE.#ifndef _AVF_ADMINQ_H_#define _AVF_ADMINQ_H_ -#include "avf_osdep.h" -#include "avf_status.h" -#include "avf_adminq_cmd.h" +#include "iavf_osdep.h" +#include "iavf_status.h" +#include "iavf_adminq_cmd.h" #define AVF_ADMINQ_DESC (R , i) \ (&(((struct avf_aq_desc *)((R).desc_buf.va))[i]))
drivers/net/iavf/base/iavf_adminq_cmd.h renamed from drivers/net/avf/base/avf_adminq_cmd.h +0 -0
drivers/net/iavf/base/iavf_alloc.h renamed from drivers/net/avf/base/avf_alloc.h +0 -0
drivers/net/iavf/base/iavf_common.c renamed from drivers/net/avf/base/avf_common.c +3 -3
@@ -31,9 +31,9 @@ POSSIBILITY OF SUCH DAMAGE.***************************************************************************/ -#include "avf_type.h" -#include "avf_adminq.h" -#include "avf_prototype.h" +#include "iavf_type.h" +#include "iavf_adminq.h" +#include "iavf_prototype.h" #include "virtchnl.h"
drivers/net/iavf/base/iavf_devids.h renamed from drivers/net/avf/base/avf_devids.h +0 -0
drivers/net/iavf/base/iavf_hmc.h renamed from drivers/net/avf/base/avf_hmc.h +0 -0
drivers/net/iavf/base/iavf_lan_hmc.h renamed from drivers/net/avf/base/avf_lan_hmc.h +0 -0
drivers/net/iavf/base/iavf_osdep.h renamed from drivers/net/avf/base/avf_osdep.h +1 -1
@@ -21,7 +21,7 @@#include <rte_log.h> #include <rte_io.h> -#include "../avf_log.h" +#include "../iavf_log.h" #define INLINE inline#define STATIC static
drivers/net/iavf/base/iavf_prototype.h renamed from drivers/net/avf/base/avf_prototype.h +2 -2
@@ -34,8 +34,8 @@ POSSIBILITY OF SUCH DAMAGE.#ifndef _AVF_PROTOTYPE_H_#define _AVF_PROTOTYPE_H_ -#include "avf_type.h" -#include "avf_alloc.h" +#include "iavf_type.h" +#include "iavf_alloc.h" #include "virtchnl.h" /* Prototypes for shared code functions that are not in
drivers/net/iavf/base/iavf_register.h renamed from drivers/net/avf/base/avf_register.h +0 -0
drivers/net/iavf/base/iavf_status.h renamed from drivers/net/avf/base/avf_status.h +0 -0
drivers/net/iavf/base/iavf_type.h renamed from drivers/net/avf/base/avf_type.h +7 -7
@@ -34,13 +34,13 @@ POSSIBILITY OF SUCH DAMAGE.#ifndef _AVF_TYPE_H_#define _AVF_TYPE_H_ -#include "avf_status.h" -#include "avf_osdep.h" -#include "avf_register.h" -#include "avf_adminq.h" -#include "avf_hmc.h" -#include "avf_lan_hmc.h" -#include "avf_devids.h" +#include "iavf_status.h" +#include "iavf_osdep.h" +#include "iavf_register.h" +#include "iavf_adminq.h" +#include "iavf_hmc.h" +#include "iavf_lan_hmc.h" +#include "iavf_devids.h" #define UNREFERENCED_XPARAMETER #define UNREFERENCED_1PARAMETER (_p) (_p);
drivers/net/iavf/base/meson.build renamed from drivers/net/avf/base/meson.build +3 -3
@@ -2,8 +2,8 @@ # Copyright(c) 2018 Luca Boccassi <[email protected]> sources = [ - 'avf_adminq.c', - 'avf_common.c', + 'iavf_adminq.c', + 'iavf_common.c', ] error_cflags = ['-Wno-pointer-to-int-cast']
@@ -17,7 +17,7 @@ foreach flag: error_cflags endif endforeach -base_lib = static_library('avf_base', sources, +base_lib = static_library('iavf_base', sources, dependencies: static_rte_eal, c_args: c_args) base_objs = base_lib.extract_all_objects()
drivers/net/iavf/base/virtchnl.h renamed from drivers/net/avf/base/virtchnl.h +0 -0
drivers/net/iavf/iavf.h renamed from drivers/net/avf/avf.h +0 -0
drivers/net/iavf/iavf_ethdev.c renamed from drivers/net/avf/avf_ethdev.c +6 -6
@@ -25,13 +25,13 @@#include <rte_memzone.h> #include <rte_dev.h> -#include "avf_log.h" -#include "base/avf_prototype.h" -#include "base/avf_adminq_cmd.h" -#include "base/avf_type.h" +#include "iavf_log.h" +#include "base/iavf_prototype.h" +#include "base/iavf_adminq_cmd.h" +#include "base/iavf_type.h" -#include "avf.h" -#include "avf_rxtx.h" +#include "iavf.h" +#include "iavf_rxtx.h" static int avf_dev_configure (struct rte_eth_dev *dev);static int avf_dev_start (struct rte_eth_dev *dev);
drivers/net/iavf/iavf_log.h renamed from drivers/net/avf/avf_log.h +0 -0
drivers/net/iavf/iavf_rxtx.c renamed from drivers/net/avf/avf_rxtx.c +5 -5
@@ -24,11 +24,11 @@#include <rte_ip.h> #include <rte_net.h> -#include "avf_log.h" -#include "base/avf_prototype.h" -#include "base/avf_type.h" -#include "avf.h" -#include "avf_rxtx.h" +#include "iavf_log.h" +#include "base/iavf_prototype.h" +#include "base/iavf_type.h" +#include "iavf.h" +#include "iavf_rxtx.h" static inline int check_rx_thresh (uint16_t nb_desc,uint16_t thresh)
drivers/net/iavf/iavf_rxtx.h renamed from drivers/net/avf/avf_rxtx.h +0 -0
drivers/net/iavf/iavf_rxtx_vec_common.h renamed from drivers/net/avf/avf_rxtx_vec_common.h +2 -2
@@ -8,8 +8,8 @@#include <rte_ethdev_driver.h> #include <rte_malloc.h> -#include "avf.h" -#include "avf_rxtx.h" +#include "iavf.h" +#include "iavf_rxtx.h" static inline uint16_t reassemble_packets(struct avf_rx_queue *rxq, struct rte_mbuf **rx_bufs,
drivers/net/iavf/iavf_rxtx_vec_sse.c renamed from drivers/net/avf/avf_rxtx_vec_sse.c +5 -5
@@ -6,11 +6,11 @@#include <rte_ethdev_driver.h> #include <rte_malloc.h> -#include "base/avf_prototype.h" -#include "base/avf_type.h" -#include "avf.h" -#include "avf_rxtx.h" -#include "avf_rxtx_vec_common.h" +#include "base/iavf_prototype.h" +#include "base/iavf_type.h" +#include "iavf.h" +#include "iavf_rxtx.h" +#include "iavf_rxtx_vec_common.h" #include <tmmintrin.h>
drivers/net/iavf/iavf_vchnl.c renamed from drivers/net/avf/avf_vchnl.c +6 -6
@@ -19,13 +19,13 @@#include <rte_ethdev_driver.h> #include <rte_dev.h> -#include "avf_log.h" -#include "base/avf_prototype.h" -#include "base/avf_adminq_cmd.h" -#include "base/avf_type.h" +#include "iavf_log.h" +#include "base/iavf_prototype.h" +#include "base/iavf_adminq_cmd.h" +#include "base/iavf_type.h" -#include "avf.h" -#include "avf_rxtx.h" +#include "iavf.h" +#include "iavf_rxtx.h" #define MAX_TRY_TIMES 200#define ASQ_DELAY_MS 10
drivers/net/iavf/meson.build renamed from drivers/net/avf/meson.build +4 -4
@@ -9,12 +9,12 @@ subdir('base') objs = [base_objs] sources = files( - 'avf_ethdev.c', - 'avf_rxtx.c', - 'avf_vchnl.c', + 'iavf_ethdev.c', + 'iavf_rxtx.c', + 'iavf_vchnl.c', ) if arch_subdir == 'x86' dpdk_conf.set('RTE_LIBRTE_AVF_INC_VECTOR', 1) - sources += files('avf_rxtx_vec_sse.c') + sources += files('iavf_rxtx_vec_sse.c') endif
drivers/net/iavf/rte_pmd_iavf_version.map renamed from drivers/net/avf/rte_pmd_avf_version.map +0 -0
drivers/net/meson.build +1 -1
@@ -4,7 +4,6 @@ drivers = ['af_packet', 'ark', 'atlantic', - 'avf', 'avp', 'axgbe', 'bonding', 'bnx2x',
@@ -17,6 +16,7 @@ drivers = ['af_packet', 'enic', 'failsafe', 'fm10k', 'i40e', + 'iavf', 'ice', 'ifc', 'ixgbe',
mk/rte.app.mk +1 -1
@@ -145,7 +145,6 @@ endif _LDLIBS-$(CONFIG_RTE_LIBRTE_PMD_AF_PACKET) += -lrte_pmd_af_packet _LDLIBS-$(CONFIG_RTE_LIBRTE_ARK_PMD) += -lrte_pmd_ark _LDLIBS-$(CONFIG_RTE_LIBRTE_ATLANTIC_PMD) += -lrte_pmd_atlantic -_LDLIBS-$(CONFIG_RTE_LIBRTE_AVF_PMD) += -lrte_pmd_avf _LDLIBS-$(CONFIG_RTE_LIBRTE_AVP_PMD) += -lrte_pmd_avp _LDLIBS-$(CONFIG_RTE_LIBRTE_AXGBE_PMD) += -lrte_pmd_axgbe _LDLIBS-$(CONFIG_RTE_LIBRTE_BNX2X_PMD) += -lrte_pmd_bnx2x -lz
@@ -165,6 +164,7 @@ _LDLIBS-$(CONFIG_RTE_LIBRTE_ENIC_PMD) += -lrte_pmd_enic _LDLIBS-$(CONFIG_RTE_LIBRTE_FM10K_PMD) += -lrte_pmd_fm10k _LDLIBS-$(CONFIG_RTE_LIBRTE_PMD_FAILSAFE) += -lrte_pmd_failsafe _LDLIBS-$(CONFIG_RTE_LIBRTE_I40E_PMD) += -lrte_pmd_i40e +_LDLIBS-$(CONFIG_RTE_LIBRTE_AVF_PMD) += -lrte_pmd_iavf _LDLIBS-$(CONFIG_RTE_LIBRTE_ICE_PMD) += -lrte_pmd_ice _LDLIBS-$(CONFIG_RTE_LIBRTE_IXGBE_PMD) += -lrte_pmd_ixgbe ifeq ($(CONFIG_RTE_LIBRTE_KNI),y)
Signature · 1 line
2.17.1
PATCH v2 2/3 net/iavf: rename remaining avf strings
In reply to Leyi RongThis is the main patch which renames the macros, functions, structs and any remaining strings in the iavf code.
--- config/common_base | 16 +- drivers/net/Makefile | 2 +- drivers/net/iavf/Makefile | 12 +- drivers/net/iavf/base/README | 8 +- drivers/net/iavf/base/iavf_adminq.c | 572 +++--- drivers/net/iavf/base/iavf_adminq.h | 110 +- drivers/net/iavf/base/iavf_adminq_cmd.h | 2512 +++++++++++------------ drivers/net/iavf/base/iavf_alloc.h | 46 +- drivers/net/iavf/base/iavf_common.c | 1694 +++++++-------- drivers/net/iavf/base/iavf_devids.h | 10 +- drivers/net/iavf/base/iavf_hmc.h | 186 +- drivers/net/iavf/base/iavf_lan_hmc.h | 132 +- drivers/net/iavf/base/iavf_osdep.h | 80 +- drivers/net/iavf/base/iavf_prototype.h | 210 +- drivers/net/iavf/base/iavf_register.h | 618 +++--- drivers/net/iavf/base/iavf_status.h | 142 +- drivers/net/iavf/base/iavf_type.h | 2266 ++++++++++---------- drivers/net/iavf/base/virtchnl.h | 10 +- drivers/net/iavf/iavf.h | 174 +- drivers/net/iavf/iavf_ethdev.c | 714 +++---- drivers/net/iavf/iavf_log.h | 20 +- drivers/net/iavf/iavf_rxtx.c | 582 +++--- drivers/net/iavf/iavf_rxtx.h | 162 +- drivers/net/iavf/iavf_rxtx_vec_common.h | 26 +- drivers/net/iavf/iavf_rxtx_vec_sse.c | 110 +- drivers/net/iavf/iavf_vchnl.c | 244 +-- drivers/net/iavf/meson.build | 2 +- mk/rte.app.mk | 2 +- 28 files changed, 5331 insertions(+), 5331 deletions(-)
config/common_base +8 -8
@@ -306,14 +306,14 @@ CONFIG_RTE_LIBRTE_ICE_DEBUG_TX_FREE=n CONFIG_RTE_LIBRTE_ICE_RX_ALLOW_BULK_ALLOC=y CONFIG_RTE_LIBRTE_ICE_16BYTE_RX_DESC=n -# Compile burst-oriented AVF PMD driver -# -CONFIG_RTE_LIBRTE_AVF_PMD=y -CONFIG_RTE_LIBRTE_AVF_INC_VECTOR=y -CONFIG_RTE_LIBRTE_AVF_DEBUG_TX=n -CONFIG_RTE_LIBRTE_AVF_DEBUG_TX_FREE=n -CONFIG_RTE_LIBRTE_AVF_DEBUG_RX=n -CONFIG_RTE_LIBRTE_AVF_16BYTE_RX_DESC=n +# Compile burst-oriented IAVF PMD driver +# +CONFIG_RTE_LIBRTE_IAVF_PMD=y +CONFIG_RTE_LIBRTE_IAVF_INC_VECTOR=y +CONFIG_RTE_LIBRTE_IAVF_DEBUG_TX=n +CONFIG_RTE_LIBRTE_IAVF_DEBUG_TX_FREE=n +CONFIG_RTE_LIBRTE_IAVF_DEBUG_RX=n +CONFIG_RTE_LIBRTE_IAVF_16BYTE_RX_DESC=n # # Compile burst-oriented Mellanox ConnectX-3 (MLX4) PMD
drivers/net/Makefile +1 -1
@@ -29,7 +29,7 @@ DIRS-$(CONFIG_RTE_LIBRTE_ENIC_PMD) += enic DIRS-$(CONFIG_RTE_LIBRTE_PMD_FAILSAFE) += failsafe DIRS-$(CONFIG_RTE_LIBRTE_FM10K_PMD) += fm10k DIRS-$(CONFIG_RTE_LIBRTE_I40E_PMD) += i40e -DIRS-$(CONFIG_RTE_LIBRTE_AVF_PMD) += iavf +DIRS-$(CONFIG_RTE_LIBRTE_IAVF_PMD) += iavf DIRS-$(CONFIG_RTE_LIBRTE_ICE_PMD) += ice DIRS-$(CONFIG_RTE_LIBRTE_IXGBE_PMD) += ixgbe DIRS-$(CONFIG_RTE_LIBRTE_LIO_PMD) += liquidio
drivers/net/iavf/Makefile +6 -6
@@ -41,14 +41,14 @@ VPATH += $(SRCDIR)/base # # all source are stored in SRCS-y # -SRCS-$(CONFIG_RTE_LIBRTE_AVF_PMD) += iavf_adminq.c -SRCS-$(CONFIG_RTE_LIBRTE_AVF_PMD) += iavf_common.c +SRCS-$(CONFIG_RTE_LIBRTE_IAVF_PMD) += iavf_adminq.c +SRCS-$(CONFIG_RTE_LIBRTE_IAVF_PMD) += iavf_common.c -SRCS-$(CONFIG_RTE_LIBRTE_AVF_PMD) += iavf_ethdev.c -SRCS-$(CONFIG_RTE_LIBRTE_AVF_PMD) += iavf_vchnl.c -SRCS-$(CONFIG_RTE_LIBRTE_AVF_PMD) += iavf_rxtx.c +SRCS-$(CONFIG_RTE_LIBRTE_IAVF_PMD) += iavf_ethdev.c +SRCS-$(CONFIG_RTE_LIBRTE_IAVF_PMD) += iavf_vchnl.c +SRCS-$(CONFIG_RTE_LIBRTE_IAVF_PMD) += iavf_rxtx.c ifeq ($(CONFIG_RTE_ARCH_X86), y) -SRCS-$(CONFIG_RTE_LIBRTE_AVF_INC_VECTOR) += iavf_rxtx_vec_sse.c +SRCS-$(CONFIG_RTE_LIBRTE_IAVF_INC_VECTOR) += iavf_rxtx_vec_sse.c endif include $(RTE_SDK)/mk/rte.lib.mk
drivers/net/iavf/base/README +4 -4
@@ -2,12 +2,12 @@ * Copyright(c) 2017 Intel Corporation */ -Intel® AVF driver +Intel® IAVF driver ================= -This directory contains source code of FreeBSD AVF driver of version +This directory contains source code of FreeBSD IAVF driver of version cid-avf.2018.01.02.tar.gz released by the team which develops -basic drivers for any AVF NIC. The directory of base/ contains the +basic drivers for any IAVF NIC. The directory of base/ contains the original source package. Updating the driver
@@ -16,4 +16,4 @@ Updating the driver NOTE: The source code in this directory should not be modified apart from the following file(s): - avf_osdep.h + iavf_osdep.h
drivers/net/iavf/base/iavf_adminq.c +286 -286
1,173 lines not on this page · raw message
drivers/net/iavf/base/iavf_adminq.h +55 -55
171 lines not on this page · raw message
drivers/net/iavf/base/iavf_adminq_cmd.h +1256 -1256
1,586 lines not on this page · raw message
drivers/net/iavf/base/iavf_alloc.h +23 -23
46 lines not on this page · raw message
drivers/net/iavf/base/iavf_common.c +847 -847
1,694 lines not on this page · raw message
drivers/net/iavf/base/iavf_hmc.h +93 -93
186 lines not on this page · raw message
drivers/net/iavf/base/iavf_lan_hmc.h +66 -66
132 lines not on this page · raw message
drivers/net/iavf/base/iavf_osdep.h +40 -40
80 lines not on this page · raw message
drivers/net/iavf/base/iavf_prototype.h +105 -105
210 lines not on this page · raw message
drivers/net/iavf/base/iavf_register.h +309 -309
618 lines not on this page · raw message
drivers/net/iavf/base/iavf_status.h +71 -71
142 lines not on this page · raw message
drivers/net/iavf/base/iavf_type.h +1133 -1133
2,266 lines not on this page · raw message
drivers/net/iavf/iavf.h +87 -87
174 lines not on this page · raw message
drivers/net/iavf/iavf_ethdev.c +357 -357
714 lines not on this page · raw message
drivers/net/iavf/iavf_rxtx.c +291 -291
582 lines not on this page · raw message
drivers/net/iavf/iavf_rxtx.h +81 -81
162 lines not on this page · raw message
drivers/net/iavf/iavf_rxtx_vec_common.h +13 -13
Lines of this file are not shown. View the raw message.
drivers/net/iavf/iavf_rxtx_vec_sse.c +55 -55
110 lines not on this page · raw message
drivers/net/iavf/iavf_vchnl.c +122 -122
244 lines not on this page · raw message
The rest of this diff is not shown. View the raw message.
Signature · 1 line
2.17.1
Part of the diff is not shown here. View the raw message.
PATCH v2 3/3 doc: rename avf to iavf
In reply to Leyi RongThis patch renames avf to iavf only for the doc files.
---
MAINTAINERS | 6 +++---
doc/guides/nics/features/{avf.ini => iavf.ini} | 2 +-
.../nics/features/{avf_vec.ini => iavf_vec.ini} | 2 +-
doc/guides/nics/intel_vf.rst | 14 +++++++-------
4 files changed, 12 insertions(+), 12 deletions(-)
rename doc/guides/nics/features/{avf.ini => iavf.ini} (93%)
rename doc/guides/nics/features/{avf_vec.ini => iavf_vec.ini} (92%)MAINTAINERS +3 -3
@@ -577,12 +577,12 @@ F: drivers/net/fm10k/ F: doc/guides/nics/fm10k.rst F: doc/guides/nics/features/fm10k*.ini -Intel avf +Intel iavf M: Jingjing Wu <[email protected]> M: Wenzhuo Lu <[email protected]> T: git://dpdk.org/next/dpdk-next-net-intel -F: drivers/net/avf/ -F: doc/guides/nics/features/avf*.ini +F: drivers/net/iavf/ +F: doc/guides/nics/features/iavf*.ini Intel ifc M: Xiao Wang <[email protected]>
doc/guides/nics/features/iavf.ini renamed from doc/guides/nics/features/avf.ini +1 -1
@@ -1,5 +1,5 @@ ; -; Supported features of the 'avf' network poll mode driver. +; Supported features of the 'iavf' network poll mode driver. ; ; Refer to default.ini for the full list of available PMD features. ;
doc/guides/nics/features/iavf_vec.ini renamed from doc/guides/nics/features/avf_vec.ini +1 -1
@@ -1,5 +1,5 @@ ; -; Supported features of the 'avf_vec' network poll mode driver. +; Supported features of the 'iavf_vec' network poll mode driver. ; ; Refer to default.ini for the full list of available PMD features. ;
doc/guides/nics/intel_vf.rst +7 -7
@@ -68,11 +68,11 @@ which is called a "Mailbox". Intel® Ethernet Adaptive Virtual Function ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -Adaptive Virtual Function (AVF) is a SR-IOV Virtual Function with the same device id (8086:1889) on different Intel Ethernet Controller. -AVF Driver is VF driver which supports for all future Intel devices without requiring a VM update. And since this happens to be an adaptive VF driver, +Adaptive Virtual Function (IAVF) is a SR-IOV Virtual Function with the same device id (8086:1889) on different Intel Ethernet Controller. +IAVF Driver is VF driver which supports for all future Intel devices without requiring a VM update. And since this happens to be an adaptive VF driver, every new drop of the VF driver would add more and more advanced features that can be turned on in the VM if the underlying HW device supports those -advanced features based on a device agnostic way without ever compromising on the base functionality. AVF provides generic hardware interface and -interface between AVF driver and a compliant PF driver is specified. +advanced features based on a device agnostic way without ever compromising on the base functionality. IAVF provides generic hardware interface and +interface between IAVF driver and a compliant PF driver is specified. Intel products starting Ethernet Controller 700 Series to support Adaptive Virtual Function.
@@ -80,12 +80,12 @@ The way to generate Virtual Function is like normal, and the resource of VF assi For more detail on SR-IOV, please refer to the following documents: -* `Intel® AVF HAS <https://www.intel.com/content/dam/www/public/us/en/documents/product-specifications/ethernet-adaptive-virtual-function-hardware-spec.pdf>`_ +* `Intel® IAVF HAS <https://www.intel.com/content/dam/www/public/us/en/documents/product-specifications/ethernet-adaptive-virtual-function-hardware-spec.pdf>`_ .. note:: - To use DPDK AVF PMD on Intel® 700 Series Ethernet Controller, the device id (0x1889) need to specified during device - assignment in hypervisor. Take qemu for example, the device assignment should carry the AVF device id (0x1889) like + To use DPDK IAVF PMD on Intel® 700 Series Ethernet Controller, the device id (0x1889) need to specified during device + 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``. The PCIE host-interface of Intel Ethernet Switch FM10000 Series VF infrastructure
Signature · 1 line
2.17.1
Re: [PATCH v2 3/3] doc: rename avf to iavf
Quoted 11 lines · Leyi Rong
This patch renames avf to iavf only for the doc files.
Signed-off-by Leyi Rong <[email protected]>--- MAINTAINERS | 6 +++--- doc/guides/nics/features/{avf.ini => iavf.ini} | 2 +- .../nics/features/{avf_vec.ini => iavf_vec.ini} | 2 +- doc/guides/nics/intel_vf.rst | 14 +++++++------- 4 files changed, 12 insertions(+), 12 deletions(-) rename doc/guides/nics/features/{avf.ini => iavf.ini} (93%) rename doc/guides/nics/features/{avf_vec.ini => iavf_vec.ini} (92%)
Hi Leyi,
Can you please update release notes for this change, it can be separate patch, I can squash it to this one.
Thanks,
ferruh
Re: [PATCH v2 0/3] rename avf to iavf
In reply to Leyi RongQuoted 4 lines · Leyi Rong
Leyi Rong (3):
net/iavf: rename avf to iavf
net/iavf: rename remaining avf strings
doc: rename avf to iavf
For series,
Series applied to dpdk-next-net/master, thanks.
(Third patch, doc one, squashed into other two.)
Quoted 74 lines · Leyi Rong
Rename Intel Ethernet Adaptive Virtual Function driver avf to iavf.
This patch renames the directory name, filenames, lib name, macros, functions, structs and any other strings in the iavf src code.
Signed-off-by Leyi Rong <[email protected]>--- config/common_base | 16 +- drivers/net/Makefile | 2 +- drivers/net/avf/avf.h | 216 -- drivers/net/avf/base/avf_adminq_cmd.h | 2841 ----------------- drivers/net/avf/base/avf_common.c | 1845 ----------- drivers/net/avf/base/avf_hmc.h | 245 -- drivers/net/avf/base/avf_prototype.h | 206 -- drivers/net/avf/base/avf_register.h | 346 -- drivers/net/avf/base/avf_status.h | 108 - drivers/net/avf/base/avf_type.h | 2024 ------------ drivers/net/{avf => iavf}/Makefile | 16 +- drivers/net/{avf => iavf}/base/README | 8 +- .../avf_adminq.c => iavf/base/iavf_adminq.c} | 582 ++-- .../avf_adminq.h => iavf/base/iavf_adminq.h} | 116 +- drivers/net/iavf/base/iavf_adminq_cmd.h | 2841 +++++++++++++++++ .../avf_alloc.h => iavf/base/iavf_alloc.h} | 46 +- drivers/net/iavf/base/iavf_common.c | 1845 +++++++++++ .../avf_devids.h => iavf/base/iavf_devids.h} | 10 +- drivers/net/iavf/base/iavf_hmc.h | 245 ++ .../base/iavf_lan_hmc.h} | 132 +- .../avf_osdep.h => iavf/base/iavf_osdep.h} | 82 +- drivers/net/iavf/base/iavf_prototype.h | 206 ++ drivers/net/iavf/base/iavf_register.h | 346 ++ drivers/net/iavf/base/iavf_status.h | 108 + drivers/net/iavf/base/iavf_type.h | 2024 ++++++++++++ drivers/net/{avf => iavf}/base/meson.build | 6 +- drivers/net/{avf => iavf}/base/virtchnl.h | 10 +- drivers/net/iavf/iavf.h | 216 ++ .../{avf/avf_ethdev.c => iavf/iavf_ethdev.c} | 730 ++--- .../net/{avf/avf_log.h => iavf/iavf_log.h} | 20 +- .../net/{avf/avf_rxtx.c => iavf/iavf_rxtx.c} | 592 ++-- .../net/{avf/avf_rxtx.h => iavf/iavf_rxtx.h} | 162 +- .../iavf_rxtx_vec_common.h} | 30 +- .../iavf_rxtx_vec_sse.c} | 120 +- .../{avf/avf_vchnl.c => iavf/iavf_vchnl.c} | 256 +- drivers/net/{avf => iavf}/meson.build | 10 +- .../rte_pmd_iavf_version.map} | 0 drivers/net/meson.build | 2 +- mk/rte.app.mk | 2 +- 39 files changed, 9306 insertions(+), 9306 deletions(-) delete mode 100644 drivers/net/avf/avf.h delete mode 100644 drivers/net/avf/base/avf_adminq_cmd.h delete mode 100644 drivers/net/avf/base/avf_common.c delete mode 100644 drivers/net/avf/base/avf_hmc.h delete mode 100644 drivers/net/avf/base/avf_prototype.h delete mode 100644 drivers/net/avf/base/avf_register.h delete mode 100644 drivers/net/avf/base/avf_status.h delete mode 100644 drivers/net/avf/base/avf_type.h rename drivers/net/{avf => iavf}/Makefile (73%) rename drivers/net/{avf => iavf}/base/README (65%) rename drivers/net/{avf/base/avf_adminq.c => iavf/base/iavf_adminq.c} (56%) rename drivers/net/{avf/base/avf_adminq.h => iavf/base/iavf_adminq.h} (57%) create mode 100644 drivers/net/iavf/base/iavf_adminq_cmd.h rename drivers/net/{avf/base/avf_alloc.h => iavf/base/iavf_alloc.h} (66%) create mode 100644 drivers/net/iavf/base/iavf_common.c rename drivers/net/{avf/base/avf_devids.h => iavf/base/iavf_devids.h} (91%) create mode 100644 drivers/net/iavf/base/iavf_hmc.h rename drivers/net/{avf/base/avf_lan_hmc.h => iavf/base/iavf_lan_hmc.h} (59%) rename drivers/net/{avf/base/avf_osdep.h => iavf/base/iavf_osdep.h} (60%) create mode 100644 drivers/net/iavf/base/iavf_prototype.h create mode 100644 drivers/net/iavf/base/iavf_register.h create mode 100644 drivers/net/iavf/base/iavf_status.h create mode 100644 drivers/net/iavf/base/iavf_type.h rename drivers/net/{avf => iavf}/base/meson.build (83%) rename drivers/net/{avf => iavf}/base/virtchnl.h (98%) create mode 100644 drivers/net/iavf/iavf.h rename drivers/net/{avf/avf_ethdev.c => iavf/iavf_ethdev.c} (57%)
Quoted 9 lines
rename drivers/net/{avf/avf_log.h => iavf/iavf_log.h} (72%)
rename drivers/net/{avf/avf_rxtx.c => iavf/iavf_rxtx.c} (73%)
rename drivers/net/{avf/avf_rxtx.h => iavf/iavf_rxtx.h} (58%)
rename drivers/net/{avf/avf_rxtx_vec_common.h => iavf/iavf_rxtx_vec_common.h} (87%)
rename drivers/net/{avf/avf_rxtx_vec_sse.c => iavf/iavf_rxtx_vec_sse.c} (85%)
rename drivers/net/{avf/avf_vchnl.c => iavf/iavf_vchnl.c} (74%)
rename drivers/net/{avf => iavf}/meson.build (63%)
rename drivers/net/{avf/rte_pmd_avf_version.map => iavf/rte_pmd_iavf_version.map} (100%)Hi Leyi,
Some of the files above look like removed and added new file, instead of renamed, like 'avf_type.h'.
This makes this patch too big, and prevents the tractability. When you git log 'iavf_type.h' it shows a single commit that adds this file, if something is broken/forgotten while renaming 'avf' to 'iavf', no way to find it.
Do you think how below works:
1- in first patch rename folders and files only, this will force you to update some includes in .c files and makefile/meson files, but I assume git can take this as renaming.
2- second patch update the context of the files, and search/replace each 'avf' with 'iavf'. This can let us to see the if and check easily if there is something wrong.
Thanks,
ferruh
Quoted 103 lines
-----Original Message-----
From: Yigit, Ferruh
Sent: Saturday, February 23, 2019 12:43 AM
To: Rong, Leyi <[email protected]>; Wu, Jingjing <[email protected]>; Lu, Wenzhuo <[email protected]>; Zhang, Qi Z <[email protected]>
Cc: [email protected]
Subject: Re: [dpdk-dev] [PATCH 1/2] net/iavf: rename avf to iavfQuoted 70 lines · Leyi Rong
Rename Intel Ethernet Adaptive Virtual Function driver avf to iavf.
This patch renames the directory name, filenames, lib name, macros, functions, structs and any other strings in the iavf src code.
Signed-off-by Leyi Rong <[email protected]>--- config/common_base | 16 +- drivers/net/Makefile | 2 +- drivers/net/avf/avf.h | 216 -- drivers/net/avf/base/avf_adminq_cmd.h | 2841 ----------------- drivers/net/avf/base/avf_common.c | 1845 ----------- drivers/net/avf/base/avf_hmc.h | 245 -- drivers/net/avf/base/avf_prototype.h | 206 -- drivers/net/avf/base/avf_register.h | 346 -- drivers/net/avf/base/avf_status.h | 108 - drivers/net/avf/base/avf_type.h | 2024 ------------ drivers/net/{avf => iavf}/Makefile | 16 +- drivers/net/{avf => iavf}/base/README | 8 +- .../avf_adminq.c => iavf/base/iavf_adminq.c} | 582 ++-- .../avf_adminq.h => iavf/base/iavf_adminq.h} | 116 +- drivers/net/iavf/base/iavf_adminq_cmd.h | 2841 +++++++++++++++++ .../avf_alloc.h => iavf/base/iavf_alloc.h} | 46 +- drivers/net/iavf/base/iavf_common.c | 1845 +++++++++++ .../avf_devids.h => iavf/base/iavf_devids.h} | 10 +- drivers/net/iavf/base/iavf_hmc.h | 245 ++ .../base/iavf_lan_hmc.h} | 132 +- .../avf_osdep.h => iavf/base/iavf_osdep.h} | 82 +- drivers/net/iavf/base/iavf_prototype.h | 206 ++ drivers/net/iavf/base/iavf_register.h | 346 ++ drivers/net/iavf/base/iavf_status.h | 108 + drivers/net/iavf/base/iavf_type.h | 2024 ++++++++++++ drivers/net/{avf => iavf}/base/meson.build | 6 +- drivers/net/{avf => iavf}/base/virtchnl.h | 10 +- drivers/net/iavf/iavf.h | 216 ++ .../{avf/avf_ethdev.c => iavf/iavf_ethdev.c} | 730 ++--- .../net/{avf/avf_log.h => iavf/iavf_log.h} | 20 +- .../net/{avf/avf_rxtx.c => iavf/iavf_rxtx.c} | 592 ++-- .../net/{avf/avf_rxtx.h => iavf/iavf_rxtx.h} | 162 +- .../iavf_rxtx_vec_common.h} | 30 +- .../iavf_rxtx_vec_sse.c} | 120 +- .../{avf/avf_vchnl.c => iavf/iavf_vchnl.c} | 256 +- drivers/net/{avf => iavf}/meson.build | 10 +- .../rte_pmd_iavf_version.map} | 0 drivers/net/meson.build | 2 +- mk/rte.app.mk | 2 +- 39 files changed, 9306 insertions(+), 9306 deletions(-) delete mode 100644 drivers/net/avf/avf.h delete mode 100644 drivers/net/avf/base/avf_adminq_cmd.h delete mode 100644 drivers/net/avf/base/avf_common.c delete mode 100644 drivers/net/avf/base/avf_hmc.h delete mode 100644 drivers/net/avf/base/avf_prototype.h delete mode 100644 drivers/net/avf/base/avf_register.h delete mode 100644 drivers/net/avf/base/avf_status.h delete mode100644
drivers/net/avf/base/avf_type.hrenamedrivers/net/{avf=> iavf}/Makefile (73%) renamedrivers/net/{avf=> iavf}/base/README (65%) renamedrivers/net/{avf/base/avf_adminq.c=>iavf/base/iavf_adminq.c} (56%) renamedrivers/net/{avf/base/avf_adminq.h=>iavf/base/iavf_adminq.h} (57%) create mode 100644drivers/net/iavf/base/iavf_adminq_cmd.hrename drivers/net/{avf/base/avf_alloc.h => iavf/base/iavf_alloc.h} (66%) create mode 100644 drivers/net/iavf/base/iavf_common.c rename drivers/net/{avf/base/avf_devids.h => iavf/base/iavf_devids.h}(91%) create mode 100644
drivers/net/iavf/base/iavf_hmc.hrenamedrivers/net/{avf/base/avf_lan_hmc.h=>iavf/base/iavf_lan_hmc.h} (59%) renamedrivers/net/{avf/base/avf_osdep.h=>iavf/base/iavf_osdep.h} (60%) create mode 100644drivers/net/iavf/base/iavf_prototype.hcreate mode 100644 drivers/net/iavf/base/iavf_register.h create mode 100644 drivers/net/iavf/base/iavf_status.h create mode 100644 drivers/net/iavf/base/iavf_type.h renameQuoted 14 lines
drivers/net/{avf=> iavf}/base/meson.build (83%) renamedrivers/net/{avf=>iavf}/base/virtchnl.h(98%) create mode 100644drivers/net/iavf/iavf.hrenamedrivers/net/{avf/avf_ethdev.c=>iavf/iavf_ethdev.c} (57%) renamedrivers/net/{avf/avf_log.h=>iavf/iavf_log.h} (72%) renamedrivers/net/{avf/avf_rxtx.c=>iavf/iavf_rxtx.c} (73%) renamedrivers/net/{avf/avf_rxtx.h=>iavf/iavf_rxtx.h} (58%) renamedrivers/net/{avf/avf_rxtx_vec_common.h=>iavf/iavf_rxtx_vec_common.h} (87%) renamedrivers/net/{avf/avf_rxtx_vec_sse.c=>iavf/iavf_rxtx_vec_sse.c} (85%) renamedrivers/net/{avf/avf_vchnl.c=>iavf/iavf_vchnl.c} (74%) renamedrivers/net/{avf=> iavf}/meson.build (63%) renamedrivers/net/{avf/rte_pmd_avf_version.map=> iavf/rte_pmd_iavf_version.map} (100%)Hi Leyi,
Some of the files above look like removed and added new file, instead of renamed, like '
avf_type.h'.This makes this patch too big, and prevents the tractability. When you git log '
iavf_type.h' it shows a single commit that adds this file, if something is broken/forgotten while renaming 'avf' to 'iavf', no way to find it.
Quoted 8 lines
Do you think how below works:
1- in first patch rename folders and files only, this will force you to update some includes in .c files and makefile/meson files, but I assume git can take this as renaming.
2- second patch update the context of the files, and search/replace each 'avf'
with 'iavf'. This can let us to see the if and check easily if there is something wrong.Thanks,
ferruh
Hi Ferruh,
Thanks for your comments, due to git will not regards as a renamed file which has less than 50% similarity than the older one, I will split this patch into two as your suggestion.
Thanks,
Leyi
Quoted 96 lines
-----Original Message-----
From: Yigit, Ferruh
Sent: Saturday, February 23, 2019 12:43 AM
To: Rong, Leyi <[email protected]>; Wu, Jingjing <[email protected]>; Lu, Wenzhuo <[email protected]>; Zhang, Qi Z <[email protected]>
Cc: [email protected]
Subject: Re: [dpdk-dev] [PATCH 1/2] net/iavf: rename avf to iavfQuoted 70 lines · Leyi Rong
Rename Intel Ethernet Adaptive Virtual Function driver avf to iavf.
This patch renames the directory name, filenames, lib name, macros, functions, structs and any other strings in the iavf src code.
Signed-off-by Leyi Rong <[email protected]>--- config/common_base | 16 +- drivers/net/Makefile | 2 +- drivers/net/avf/avf.h | 216 -- drivers/net/avf/base/avf_adminq_cmd.h | 2841 ----------------- drivers/net/avf/base/avf_common.c | 1845 ----------- drivers/net/avf/base/avf_hmc.h | 245 -- drivers/net/avf/base/avf_prototype.h | 206 -- drivers/net/avf/base/avf_register.h | 346 -- drivers/net/avf/base/avf_status.h | 108 - drivers/net/avf/base/avf_type.h | 2024 ------------ drivers/net/{avf => iavf}/Makefile | 16 +- drivers/net/{avf => iavf}/base/README | 8 +- .../avf_adminq.c => iavf/base/iavf_adminq.c} | 582 ++-- .../avf_adminq.h => iavf/base/iavf_adminq.h} | 116 +- drivers/net/iavf/base/iavf_adminq_cmd.h | 2841 +++++++++++++++++ .../avf_alloc.h => iavf/base/iavf_alloc.h} | 46 +- drivers/net/iavf/base/iavf_common.c | 1845 +++++++++++ .../avf_devids.h => iavf/base/iavf_devids.h} | 10 +- drivers/net/iavf/base/iavf_hmc.h | 245 ++ .../base/iavf_lan_hmc.h} | 132 +- .../avf_osdep.h => iavf/base/iavf_osdep.h} | 82 +- drivers/net/iavf/base/iavf_prototype.h | 206 ++ drivers/net/iavf/base/iavf_register.h | 346 ++ drivers/net/iavf/base/iavf_status.h | 108 + drivers/net/iavf/base/iavf_type.h | 2024 ++++++++++++ drivers/net/{avf => iavf}/base/meson.build | 6 +- drivers/net/{avf => iavf}/base/virtchnl.h | 10 +- drivers/net/iavf/iavf.h | 216 ++ .../{avf/avf_ethdev.c => iavf/iavf_ethdev.c} | 730 ++--- .../net/{avf/avf_log.h => iavf/iavf_log.h} | 20 +- .../net/{avf/avf_rxtx.c => iavf/iavf_rxtx.c} | 592 ++-- .../net/{avf/avf_rxtx.h => iavf/iavf_rxtx.h} | 162 +- .../iavf_rxtx_vec_common.h} | 30 +- .../iavf_rxtx_vec_sse.c} | 120 +- .../{avf/avf_vchnl.c => iavf/iavf_vchnl.c} | 256 +- drivers/net/{avf => iavf}/meson.build | 10 +- .../rte_pmd_iavf_version.map} | 0 drivers/net/meson.build | 2 +- mk/rte.app.mk | 2 +- 39 files changed, 9306 insertions(+), 9306 deletions(-) delete mode 100644 drivers/net/avf/avf.h delete mode 100644 drivers/net/avf/base/avf_adminq_cmd.h delete mode 100644 drivers/net/avf/base/avf_common.c delete mode 100644 drivers/net/avf/base/avf_hmc.h delete mode 100644 drivers/net/avf/base/avf_prototype.h delete mode 100644 drivers/net/avf/base/avf_register.h delete mode 100644 drivers/net/avf/base/avf_status.h delete mode100644
drivers/net/avf/base/avf_type.hrenamedrivers/net/{avf=> iavf}/Makefile (73%) renamedrivers/net/{avf=> iavf}/base/README (65%) renamedrivers/net/{avf/base/avf_adminq.c=>iavf/base/iavf_adminq.c} (56%) renamedrivers/net/{avf/base/avf_adminq.h=>iavf/base/iavf_adminq.h} (57%) create mode 100644drivers/net/iavf/base/iavf_adminq_cmd.hrename drivers/net/{avf/base/avf_alloc.h => iavf/base/iavf_alloc.h} (66%) create mode 100644 drivers/net/iavf/base/iavf_common.c rename drivers/net/{avf/base/avf_devids.h => iavf/base/iavf_devids.h}(91%) create mode 100644
drivers/net/iavf/base/iavf_hmc.hrenamedrivers/net/{avf/base/avf_lan_hmc.h=>iavf/base/iavf_lan_hmc.h} (59%) renamedrivers/net/{avf/base/avf_osdep.h=>iavf/base/iavf_osdep.h} (60%) create mode 100644drivers/net/iavf/base/iavf_prototype.hcreate mode 100644 drivers/net/iavf/base/iavf_register.h create mode 100644 drivers/net/iavf/base/iavf_status.h create mode 100644 drivers/net/iavf/base/iavf_type.h renameQuoted 14 lines
drivers/net/{avf=> iavf}/base/meson.build (83%) renamedrivers/net/{avf=>iavf}/base/virtchnl.h(98%) create mode 100644drivers/net/iavf/iavf.hrenamedrivers/net/{avf/avf_ethdev.c=>iavf/iavf_ethdev.c} (57%) renamedrivers/net/{avf/avf_log.h=>iavf/iavf_log.h} (72%) renamedrivers/net/{avf/avf_rxtx.c=>iavf/iavf_rxtx.c} (73%) renamedrivers/net/{avf/avf_rxtx.h=>iavf/iavf_rxtx.h} (58%) renamedrivers/net/{avf/avf_rxtx_vec_common.h=>iavf/iavf_rxtx_vec_common.h} (87%) renamedrivers/net/{avf/avf_rxtx_vec_sse.c=>iavf/iavf_rxtx_vec_sse.c} (85%) renamedrivers/net/{avf/avf_vchnl.c=>iavf/iavf_vchnl.c} (74%) renamedrivers/net/{avf=> iavf}/meson.build (63%) renamedrivers/net/{avf/rte_pmd_avf_version.map=> iavf/rte_pmd_iavf_version.map} (100%)
Quoted 7 lines
Hi Leyi,
Some of the files above look like removed and added new file, instead of renamed, like '
avf_type.h'.This makes this patch too big, and prevents the tractability. When you git log '
iavf_type.h' it shows a single commit that adds this file, if something is broken/forgotten while renaming 'avf' to 'iavf', no way to find it.
Hi Ferruh,
The --follow option with git log will help to list the history before renamed. Same situations with other renamed files in repo.
Thanks,
Leyi
Quoted 40 lines · Leyi Rong
drivers/net/iavf/rte_pmd_iavf_version.map renamed from drivers/net/avf/rte_pmd_avf_version.map +0
-0drivers/net/meson.build +2
-2--- a/drivers/net/meson.build +++ b/drivers/net/meson.build@@ -4,7 +4,7 @@ drivers = ['af_packet', 'ark', 'atlantic', - 'avf', + 'iavf', 'avp', 'axgbe', 'bonding','bnx2x',
=======================================
mk/rte.app.mk +1
-1--- a/mk/rte.app.mk +++ b/mk/rte.app.mk@@ -145,7 +145,7 @@ endif_LDLIBS-$(CONFIG_RTE_LIBRTE_PMD_AF_PACKET) += -lrte_pmd_af_packet _LDLIBS-$(CONFIG_RTE_LIBRTE_ARK_PMD) += -lrte_pmd_ark _LDLIBS-$(CONFIG_RTE_LIBRTE_ATLANTIC_PMD) += -lrte_pmd_atlantic
mk/rte.app.mk +1
-1-_LDLIBS-$(CONFIG_RTE_LIBRTE_AVF_PMD) += -lrte_pmd_avf +_LDLIBS-$(CONFIG_RTE_LIBRTE_IAVF_PMD) += -lrte_pmd_iavf
Quoted 3 lines
_LDLIBS-$(CONFIG_RTE_LIBRTE_AVP_PMD) += -lrte_pmd_avp _LDLIBS-$(CONFIG_RTE_LIBRTE_AXGBE_PMD) += -lrte_pmd_axgbe _LDLIBS-$(CONFIG_RTE_LIBRTE_BNX2X_PMD) += -lrte_pmd_bnx2x -lz
These are alphabetically sorted, you need to rearrange the lines when name changed.