Skip to contentSkip to conversation

net/iavf: rename avf to iavf

PATCH Superseded Leyi Rong 2 participants 14 messages Feb 22, 2019 – Feb 25, 2019

Subsystems (2)
lore
Share & tools
lore

Leyi Rong

author
#0 lore raw

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
index 7c6da5165..0b09a9348 100644
@@ -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
index 670d7f75a..defff4dfe 100644
@@ -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
similarity index 73%
rename from drivers/net/avf/Makefile
rename to drivers/net/iavf/Makefile
index aec6e4cba..3a0eb79ca 100644

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
similarity index 65%
rename from drivers/net/avf/base/README
rename to drivers/net/iavf/base/README
index 4710ae271..f57e1048f 100644

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
similarity index 91%
rename from drivers/net/avf/base/avf_devids.h
rename to drivers/net/iavf/base/iavf_devids.h
index 7d9fed25b..efb39cc34 100644

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
similarity index 83%
rename from drivers/net/avf/base/meson.build
rename to drivers/net/iavf/base/meson.build
index 6f3d7192e..bcb24b739 100644

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
similarity index 98%
rename from drivers/net/avf/base/virtchnl.h
rename to drivers/net/iavf/base/virtchnl.h
index 167518f0d..13bfdb86b 100644

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
similarity index 72%
rename from drivers/net/avf/avf_log.h
rename to drivers/net/iavf/iavf_log.h
index 8d574d3f3..f66c37041 100644

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
similarity index 87%
rename from drivers/net/avf/avf_rxtx_vec_common.h
rename to drivers/net/iavf/iavf_rxtx_vec_common.h
index 8057b9682..db509d71f 100644

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
similarity index 63%
rename from drivers/net/avf/meson.build
rename to drivers/net/iavf/meson.build
index 2dfda9d4e..e5a2f5553 100644

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
similarity index 100%
rename from drivers/net/avf/rte_pmd_avf_version.map
rename to drivers/net/iavf/rte_pmd_iavf_version.map
drivers/net/meson.build +1 -1
index 45da3bb1e..c4a349637 100644

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

mk/rte.app.mk +1 -1
index 8a4f0f4e5..7f9f0bacb 100644

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

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

Signature · 1 line
2.17.1

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

author
#1 lore raw

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
index eef480ab5..d0d7bb21a 100644
@@ -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
similarity index 93%
rename from doc/guides/nics/features/avf.ini
rename to doc/guides/nics/features/iavf.ini
index 35ceada24..80143059e 100644
@@ -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
similarity index 92%
rename from doc/guides/nics/features/avf_vec.ini
rename to doc/guides/nics/features/iavf_vec.ini
index 3050bc4a6..167f5fdf3 100644
@@ -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
index 49a7085a9..e8d5118a0 100644
@@ -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
#2 lore raw

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.

---
 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.

author
#3 lore raw

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 iavf

Quoted 11 lines · Leyi Rong

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%)

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

author
#4 lore raw

v2 cover rename avf to iavf

In reply to Leyi Rong

Leyi 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
author
#5 lore raw

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
index 670d7f75a..dea4b0c64 100644
@@ -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
similarity index 73%
rename from drivers/net/avf/Makefile
rename to drivers/net/iavf/Makefile
index aec6e4cba..29ff3c2f3 100644
@@ -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
similarity index 100%
rename from drivers/net/avf/base/README
rename to drivers/net/iavf/base/README
drivers/net/iavf/base/iavf_adminq.c renamed from drivers/net/avf/base/avf_adminq.c +5 -5
similarity index 99%
rename from drivers/net/avf/base/avf_adminq.c
rename to drivers/net/iavf/base/iavf_adminq.c
index 616e2a9cc..9d16f0f61 100644
@@ -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
similarity index 98%
rename from drivers/net/avf/base/avf_adminq.h
rename to drivers/net/iavf/base/iavf_adminq.h
index d7d242a99..ce72fb5a8 100644
@@ -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
similarity index 100%
rename from drivers/net/avf/base/avf_adminq_cmd.h
rename to drivers/net/iavf/base/iavf_adminq_cmd.h
drivers/net/iavf/base/iavf_alloc.h renamed from drivers/net/avf/base/avf_alloc.h +0 -0
similarity index 100%
rename from drivers/net/avf/base/avf_alloc.h
rename to drivers/net/iavf/base/iavf_alloc.h
drivers/net/iavf/base/iavf_common.c renamed from drivers/net/avf/base/avf_common.c +3 -3
similarity index 99%
rename from drivers/net/avf/base/avf_common.c
rename to drivers/net/iavf/base/iavf_common.c
index bbaadada5..5b7f09128 100644
@@ -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
similarity index 100%
rename from drivers/net/avf/base/avf_devids.h
rename to drivers/net/iavf/base/iavf_devids.h
drivers/net/iavf/base/iavf_hmc.h renamed from drivers/net/avf/base/avf_hmc.h +0 -0
similarity index 100%
rename from drivers/net/avf/base/avf_hmc.h
rename to drivers/net/iavf/base/iavf_hmc.h
drivers/net/iavf/base/iavf_lan_hmc.h renamed from drivers/net/avf/base/avf_lan_hmc.h +0 -0
similarity index 100%
rename from drivers/net/avf/base/avf_lan_hmc.h
rename to drivers/net/iavf/base/iavf_lan_hmc.h
drivers/net/iavf/base/iavf_osdep.h renamed from drivers/net/avf/base/avf_osdep.h +1 -1
similarity index 99%
rename from drivers/net/avf/base/avf_osdep.h
rename to drivers/net/iavf/base/iavf_osdep.h
index 442a5acd0..1f1226674 100644
@@ -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
similarity index 99%
rename from drivers/net/avf/base/avf_prototype.h
rename to drivers/net/iavf/base/iavf_prototype.h
index de031dc6a..8230d5cac 100644
@@ -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
similarity index 100%
rename from drivers/net/avf/base/avf_register.h
rename to drivers/net/iavf/base/iavf_register.h
drivers/net/iavf/base/iavf_status.h renamed from drivers/net/avf/base/avf_status.h +0 -0
similarity index 100%
rename from drivers/net/avf/base/avf_status.h
rename to drivers/net/iavf/base/iavf_status.h
drivers/net/iavf/base/iavf_type.h renamed from drivers/net/avf/base/avf_type.h +7 -7
similarity index 99%
rename from drivers/net/avf/base/avf_type.h
rename to drivers/net/iavf/base/iavf_type.h
index 546c6d2ae..7c590737a 100644
@@ -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
similarity index 83%
rename from drivers/net/avf/base/meson.build
rename to drivers/net/iavf/base/meson.build
index 6f3d7192e..bcb24b739 100644
@@ -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
similarity index 100%
rename from drivers/net/avf/base/virtchnl.h
rename to drivers/net/iavf/base/virtchnl.h
drivers/net/iavf/iavf.h renamed from drivers/net/avf/avf.h +0 -0
similarity index 100%
rename from drivers/net/avf/avf.h
rename to drivers/net/iavf/iavf.h
drivers/net/iavf/iavf_ethdev.c renamed from drivers/net/avf/avf_ethdev.c +6 -6
similarity index 99%
rename from drivers/net/avf/avf_ethdev.c
rename to drivers/net/iavf/iavf_ethdev.c
index 797f505a8..efc20e168 100644
@@ -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
similarity index 100%
rename from drivers/net/avf/avf_log.h
rename to drivers/net/iavf/iavf_log.h
drivers/net/iavf/iavf_rxtx.c renamed from drivers/net/avf/avf_rxtx.c +5 -5
similarity index 99%
rename from drivers/net/avf/avf_rxtx.c
rename to drivers/net/iavf/iavf_rxtx.c
index 8c7a96727..988a68ff4 100644
@@ -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
similarity index 100%
rename from drivers/net/avf/avf_rxtx.h
rename to drivers/net/iavf/iavf_rxtx.h
drivers/net/iavf/iavf_rxtx_vec_common.h renamed from drivers/net/avf/avf_rxtx_vec_common.h +2 -2
similarity index 99%
rename from drivers/net/avf/avf_rxtx_vec_common.h
rename to drivers/net/iavf/iavf_rxtx_vec_common.h
index 8057b9682..16433e586 100644
@@ -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
similarity index 99%
rename from drivers/net/avf/avf_rxtx_vec_sse.c
rename to drivers/net/iavf/iavf_rxtx_vec_sse.c
index 343a6aac3..7071ed686 100644
@@ -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
similarity index 99%
rename from drivers/net/avf/avf_vchnl.c
rename to drivers/net/iavf/iavf_vchnl.c
index fd90cc2c3..9b6255368 100644
@@ -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
similarity index 76%
rename from drivers/net/avf/meson.build
rename to drivers/net/iavf/meson.build
index 2dfda9d4e..bc22ad179 100644
@@ -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
similarity index 100%
rename from drivers/net/avf/rte_pmd_avf_version.map
rename to drivers/net/iavf/rte_pmd_iavf_version.map
drivers/net/meson.build +1 -1
index 45da3bb1e..3ecc78cee 100644
@@ -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
index 8a4f0f4e5..f78bd0a22 100644
@@ -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
author
#6 lore raw

PATCH v2 2/3 net/iavf: rename remaining avf strings

In reply to Leyi Rong

This 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
index 7c6da5165..0b09a9348 100644
@@ -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
index dea4b0c64..502869a87 100644
@@ -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
index 29ff3c2f3..3a0eb79ca 100644
@@ -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
index 4710ae271..f57e1048f 100644
@@ -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_devids.h +5 -5
index 7d9fed25b..efb39cc34 100644

Lines of this file are not shown. View the 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/base/virtchnl.h +5 -5
index 167518f0d..13bfdb86b 100644

Lines of this file are not shown. View the 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_log.h +10 -10
index 8d574d3f3..f66c37041 100644

Lines of this file are not shown. View the 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
index 16433e586..db509d71f 100644

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

drivers/net/iavf/meson.build +1 -1
index bc22ad179..e5a2f5553 100644

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

mk/rte.app.mk +1 -1
index f78bd0a22..443c2afab 100644

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

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

Signature · 1 line
2.17.1

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

author
#7 lore raw

PATCH v2 3/3 doc: rename avf to iavf

In reply to Leyi Rong

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
index eef480ab5..d0d7bb21a 100644
@@ -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
similarity index 93%
rename from doc/guides/nics/features/avf.ini
rename to doc/guides/nics/features/iavf.ini
index 35ceada24..80143059e 100644
@@ -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
similarity index 92%
rename from doc/guides/nics/features/avf_vec.ini
rename to doc/guides/nics/features/iavf_vec.ini
index 3050bc4a6..167f5fdf3 100644
@@ -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
index 49a7085a9..e8d5118a0 100644
@@ -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
#8 lore raw

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.

---
 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

Reviewed-by on the v2 series
#9 lore raw

Re: [PATCH v2 0/3] rename avf to iavf

In reply to Leyi Rong
Quoted 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.)

#10 lore raw
In reply to Leyi Rong
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.

---
 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

author
#11 lore raw
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 iavf

Quoted 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.

---
 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
Quoted 14 lines

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%)

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

author
#12 lore raw
In reply to Ferruh Yigit
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 iavf

Quoted 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.

---
 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
Quoted 14 lines

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%)

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

#13 lore raw
In reply to Leyi Rong
Quoted 40 lines · Leyi Rong
drivers/net/iavf/rte_pmd_iavf_version.map renamed from drivers/net/avf/rte_pmd_avf_version.map +0 -0
similarity index 100%
rename from drivers/net/avf/rte_pmd_avf_version.map
rename to drivers/net/iavf/rte_pmd_iavf_version.map
drivers/net/meson.build +2 -2
index 45da3bb1e..c4a349637 100644
 
--- 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
index 8a4f0f4e5..7f9f0bacb 100644
 
--- 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.