Skip to contentSkip to conversation

add meson support for more net drivers

PATCH Superseded Bruce Richardson 5 participants 43 messages May 17, 2018 – Jun 14, 2018

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

cover add meson support for more net drivers

A number of net drivers require pretty minimal meson.build files to build successfully with meson. This set adds support for 14 net drivers to the build.

Bruce Richardson (15):
net/ark: add to meson build
net/avp: add to meson build
net/bnx2x: add to meson build
net/bnxt: add to meson build
net/cxgbe: add to meson build
net/ena: add to meson build
net/failsafe: add to meson build
net/ifc: rename to ifcvf
net/ifcvf: add to meson build
net/kni: add to meson build
net/liquidio: add to meson build
net/nfp: add to meson build
net/softnic: add to meson build
net/szedata2: add to meson build
net/vhost: add to meson build

 MAINTAINERS                                        |  4 ++--
 app/test-pmd/meson.build                           |  3 +++
 drivers/net/Makefile                               |  2 +-
 drivers/net/ark/meson.build                        | 13 ++++++++++++
 drivers/net/avp/meson.build                        |  5 +++++
 drivers/net/bnx2x/meson.build                      | 14 +++++++++++++
 drivers/net/bnxt/meson.build                       | 18 +++++++++++++++++
 drivers/net/cxgbe/meson.build                      | 11 +++++++++++
 drivers/net/ena/meson.build                        |  8 ++++++++
 drivers/net/failsafe/meson.build                   | 23 ++++++++++++++++++++++
 drivers/net/{ifc => ifcvf}/Makefile                |  2 +-
 drivers/net/{ifc => ifcvf}/base/ifcvf.c            |  0
 drivers/net/{ifc => ifcvf}/base/ifcvf.h            |  0
 drivers/net/{ifc => ifcvf}/base/ifcvf_osdep.h      |  0
 drivers/net/{ifc => ifcvf}/ifcvf_vdpa.c            |  0
 drivers/net/ifcvf/meson.build                      |  7 +++++++
 .../rte_pmd_ifcvf_version.map}                     |  0
 drivers/net/kni/meson.build                        |  6 ++++++
 drivers/net/liquidio/Makefile                      |  2 +-
 drivers/net/liquidio/meson.build                   |  8 ++++++++
 ...io_version.map => rte_pmd_liquidio_version.map} |  0
 drivers/net/meson.build                            | 13 ++++++++----
 drivers/net/nfp/meson.build                        | 16 +++++++++++++++
 drivers/net/softnic/Makefile                       |  2 +-
 drivers/net/softnic/meson.build                    |  7 +++++++
 ...nic_version.map => rte_pmd_softnic_version.map} |  0
 drivers/net/szedata2/meson.build                   |  7 +++++++
 drivers/net/vhost/meson.build                      |  7 +++++++
 28 files changed, 168 insertions(+), 10 deletions(-)
 create mode 100644 drivers/net/ark/meson.build
 create mode 100644 drivers/net/avp/meson.build
 create mode 100644 drivers/net/bnx2x/meson.build
 create mode 100644 drivers/net/bnxt/meson.build
 create mode 100644 drivers/net/cxgbe/meson.build
 create mode 100644 drivers/net/ena/meson.build
 create mode 100644 drivers/net/failsafe/meson.build
 rename drivers/net/{ifc => ifcvf}/Makefile (94%)
 rename drivers/net/{ifc => ifcvf}/base/ifcvf.c (100%)
 rename drivers/net/{ifc => ifcvf}/base/ifcvf.h (100%)
 rename drivers/net/{ifc => ifcvf}/base/ifcvf_osdep.h (100%)
 rename drivers/net/{ifc => ifcvf}/ifcvf_vdpa.c (100%)
 create mode 100644 drivers/net/ifcvf/meson.build
 rename drivers/net/{ifc/rte_ifcvf_version.map => ifcvf/rte_pmd_ifcvf_version.map} (100%)
 create mode 100644 drivers/net/kni/meson.build
 create mode 100644 drivers/net/liquidio/meson.build
 rename drivers/net/liquidio/{rte_pmd_lio_version.map => rte_pmd_liquidio_version.map} (100%)
 create mode 100644 drivers/net/nfp/meson.build
 create mode 100644 drivers/net/softnic/meson.build
 rename drivers/net/softnic/{rte_pmd_eth_softnic_version.map => rte_pmd_softnic_version.map} (100%)
 create mode 100644 drivers/net/szedata2/meson.build
 create mode 100644 drivers/net/vhost/meson.build
Signature · 1 line
2.11.0
#1 lore raw

PATCH 1/15 net/ark: add to meson build

---
CC: Shepard Siegel <[email protected]>
CC: Ed Czeck <[email protected]>
CC: John Miller <[email protected]>

---
 drivers/net/ark/meson.build | 13 +++++++++++++
 drivers/net/meson.build     |  3 ++-
 2 files changed, 15 insertions(+), 1 deletion(-)
 create mode 100644 drivers/net/ark/meson.build
drivers/net/ark/meson.build new file +13 -0
new file mode 100644
index 000000000..99151bba1
@@ -0,0 +1,13 @@
+# SPDX-License-Identifier: BSD-3-Clause
+# Copyright(c) 2018 Intel Corporation
+
+sources = files('ark_ddm.c',
+	'ark_ethdev.c',
+	'ark_ethdev_rx.c',
+	'ark_ethdev_tx.c',
+	'ark_mpu.c',
+	'ark_pktchkr.c',
+	'ark_pktdir.c',
+	'ark_pktgen.c',
+	'ark_rqp.c',
+	'ark_udm.c')
drivers/net/meson.build +2 -1
index b7d00a04c..d0ae7c34b 100644
@@ -1,7 +1,8 @@
 # SPDX-License-Identifier: BSD-3-Clause
 # Copyright(c) 2017 Intel Corporation
 
-drivers = ['af_packet', 'axgbe', 'bonding', 'dpaa', 'dpaa2',
+drivers = ['ark',
+	'af_packet', 'axgbe', 'bonding', 'dpaa', 'dpaa2',
 	'e1000', 'enic', 'fm10k', 'i40e', 'ixgbe',
 	'mvpp2', 'null', 'octeontx', 'pcap', 'ring',
 	'sfc', 'thunderx', 'virtio']
Signature · 1 line
2.11.0
#2 lore raw

PATCH 2/15 net/avp: add to meson build

In reply to Bruce Richardson

---
CC: Allain Legacy <[email protected]>
CC: Matt Peters <[email protected]>

---
 drivers/net/avp/meson.build | 5 +++++
 drivers/net/meson.build     | 4 ++--
 2 files changed, 7 insertions(+), 2 deletions(-)
 create mode 100644 drivers/net/avp/meson.build
drivers/net/avp/meson.build new file +5 -0
new file mode 100644
index 000000000..6076c31b9
@@ -0,0 +1,5 @@
+# SPDX-License-Identifier: BSD-3-Clause
+# Copyright(c) 2018 Intel Corporation
+
+sources = files('avp_ethdev.c')
+install_headers('rte_avp_common.h', 'rte_avp_fifo.h')
drivers/net/meson.build +2 -2
index d0ae7c34b..76bf48f3e 100644
@@ -1,8 +1,8 @@
 # SPDX-License-Identifier: BSD-3-Clause
 # Copyright(c) 2017 Intel Corporation
 
-drivers = ['ark',
-	'af_packet', 'axgbe', 'bonding', 'dpaa', 'dpaa2',
+drivers = ['af_packet', 'ark', 'avp',
+	'axgbe', 'bonding', 'dpaa', 'dpaa2',
 	'e1000', 'enic', 'fm10k', 'i40e', 'ixgbe',
 	'mvpp2', 'null', 'octeontx', 'pcap', 'ring',
 	'sfc', 'thunderx', 'virtio']
Signature · 1 line
2.11.0
Acked-by on v1 2/15
#3 lore raw

Re: [PATCH-18.08 02/15] net/avp: add to meson build

Quoted 8 lines

-----Original Message-----
From: Bruce Richardson [mailto:[email protected]]
Sent: Thursday, May 17, 2018 4:15 PM
To: [email protected]
Cc: RICHARDSON, BRUCE; Legacy, Allain; Peters, Matt
Subject: [PATCH-18.08 02/15] net/avp: add to meson build

Quoted 9 lines

---
CC: Allain Legacy <[email protected]>
CC: Matt Peters <[email protected]>

---
 drivers/net/avp/meson.build | 5 +++++
 drivers/net/meson.build     | 4 ++--
 2 files changed, 7 insertions(+), 2 deletions(-)  create mode 100644

drivers/net/avp/meson.build

Thanks.

#4 lore raw

PATCH 3/15 net/bnx2x: add to meson build

In reply to Bruce Richardson

---
CC: Harish Patil <[email protected]>
CC: Rasesh Mody <[email protected]>

---
 drivers/net/bnx2x/meson.build | 14 ++++++++++++++
 drivers/net/meson.build       |  3 ++-
 2 files changed, 16 insertions(+), 1 deletion(-)
 create mode 100644 drivers/net/bnx2x/meson.build
drivers/net/bnx2x/meson.build new file +14 -0
new file mode 100644
index 000000000..e3c688869
@@ -0,0 +1,14 @@
+# SPDX-License-Identifier: BSD-3-Clause
+# Copyright(c) 2018 Intel Corporation
+
+dep = cc.find_library('z', required: false)
+build = dep.found()
+ext_deps += dep
+cflags += '-DZLIB_CONST'
+sources = files('bnx2x.c',
+	'bnx2x_ethdev.c',
+	'bnx2x_rxtx.c',
+	'bnx2x_stats.c',
+	'bnx2x_vfpf.c',
+	'ecore_sp.c',
+	'elink.c')
drivers/net/meson.build +2 -1
index 76bf48f3e..143355458 100644
@@ -2,7 +2,8 @@
 # Copyright(c) 2017 Intel Corporation
 
 drivers = ['af_packet', 'ark', 'avp',
-	'axgbe', 'bonding', 'dpaa', 'dpaa2',
+	'axgbe', 'bonding', 'bnx2x',
+	'dpaa', 'dpaa2',
 	'e1000', 'enic', 'fm10k', 'i40e', 'ixgbe',
 	'mvpp2', 'null', 'octeontx', 'pcap', 'ring',
 	'sfc', 'thunderx', 'virtio']
Signature · 1 line
2.11.0
#5 lore raw

PATCH 4/15 net/bnxt: add to meson build

In reply to Bruce Richardson

---
CC: Ajit Khaparde <[email protected]>
CC: Somnath Kotur <[email protected]>

---
 app/test-pmd/meson.build     |  3 +++
 drivers/net/bnxt/meson.build | 18 ++++++++++++++++++
 drivers/net/meson.build      |  2 +-
 3 files changed, 22 insertions(+), 1 deletion(-)
 create mode 100644 drivers/net/bnxt/meson.build
app/test-pmd/meson.build +3 -0
index a51514b03..4c9fbbfda 100644
@@ -25,6 +25,9 @@ deps = ['ethdev', 'gro', 'gso', 'cmdline', 'metrics', 'meter', 'bus_pci']
 if dpdk_conf.has('RTE_LIBRTE_PDUMP')
 	deps += 'pdump'
 endif
+if dpdk_conf.has('RTE_LIBRTE_BNXT_PMD')
+	deps += 'pmd_bnxt'
+endif
 if dpdk_conf.has('RTE_LIBRTE_I40E_PMD')
 	deps += 'pmd_i40e'
 endif
drivers/net/bnxt/meson.build new file +18 -0
new file mode 100644
index 000000000..486bf0fd3
@@ -0,0 +1,18 @@
+# SPDX-License-Identifier: BSD-3-Clause
+# Copyright(c) 2018 Intel Corporation
+
+install_headers('rte_pmd_bnxt.h')
+version = 2
+sources = files('bnxt_cpr.c',
+	'bnxt_ethdev.c',
+	'bnxt_filter.c',
+	'bnxt_hwrm.c',
+	'bnxt_irq.c',
+	'bnxt_ring.c',
+	'bnxt_rxq.c',
+	'bnxt_rxr.c',
+	'bnxt_stats.c',
+	'bnxt_txq.c',
+	'bnxt_txr.c',
+	'bnxt_vnic.c',
+	'rte_pmd_bnxt.c')
drivers/net/meson.build +1 -1
index 143355458..d012c62fe 100644
@@ -3,7 +3,7 @@
 
 drivers = ['af_packet', 'ark', 'avp',
 	'axgbe', 'bonding', 'bnx2x',
-	'dpaa', 'dpaa2',
+	'bnxt', 'dpaa', 'dpaa2',
 	'e1000', 'enic', 'fm10k', 'i40e', 'ixgbe',
 	'mvpp2', 'null', 'octeontx', 'pcap', 'ring',
 	'sfc', 'thunderx', 'virtio']
Signature · 1 line
2.11.0
#6 lore raw

PATCH 5/15 net/cxgbe: add to meson build

In reply to Bruce Richardson

---
CC: Rahul Lakkireddy <[email protected]>

---
 drivers/net/cxgbe/meson.build | 11 +++++++++++
 drivers/net/meson.build       |  2 +-
 2 files changed, 12 insertions(+), 1 deletion(-)
 create mode 100644 drivers/net/cxgbe/meson.build
drivers/net/cxgbe/meson.build new file +11 -0
new file mode 100644
index 000000000..8196e8afb
@@ -0,0 +1,11 @@
+# SPDX-License-Identifier: BSD-3-Clause
+# Copyright(c) 2018 Intel Corporation
+
+sources = files('cxgbe_ethdev.c',
+	'cxgbe_main.c',
+	'cxgbevf_ethdev.c',
+	'cxgbevf_main.c',
+	'sge.c',
+	'base/t4_hw.c',
+	'base/t4vf_hw.c')
+includes += include_directories('base')
drivers/net/meson.build +1 -1
index d012c62fe..c55ca65a5 100644
@@ -3,7 +3,7 @@
 
 drivers = ['af_packet', 'ark', 'avp',
 	'axgbe', 'bonding', 'bnx2x',
-	'bnxt', 'dpaa', 'dpaa2',
+	'bnxt', 'cxgbe', 'dpaa', 'dpaa2',
 	'e1000', 'enic', 'fm10k', 'i40e', 'ixgbe',
 	'mvpp2', 'null', 'octeontx', 'pcap', 'ring',
 	'sfc', 'thunderx', 'virtio']
Signature · 1 line
2.11.0
#7 lore raw

PATCH 6/15 net/ena: add to meson build

In reply to Bruce Richardson

---
CC: Marcin Wojtas <[email protected]>
CC: Michal Krawczyk <[email protected]>
CC: Guy Tzalik <[email protected]>
CC: Evgeny Schemeilin <[email protected]>

---
 drivers/net/ena/meson.build | 8 ++++++++
 drivers/net/meson.build     | 3 ++-
 2 files changed, 10 insertions(+), 1 deletion(-)
 create mode 100644 drivers/net/ena/meson.build
drivers/net/ena/meson.build new file +8 -0
new file mode 100644
index 000000000..542f29567
@@ -0,0 +1,8 @@
+# SPDX-License-Identifier: BSD-3-Clause
+# Copyright(c) 2018 Intel Corporation
+
+allow_experimental_apis = true
+sources = files('ena_ethdev.c',
+	'base/ena_com.c',
+	'base/ena_eth_com.c')
+includes += include_directories('base', 'base/ena_defs')
drivers/net/meson.build +2 -1
index c55ca65a5..d4c7d58ab 100644
@@ -4,7 +4,8 @@
 drivers = ['af_packet', 'ark', 'avp',
 	'axgbe', 'bonding', 'bnx2x',
 	'bnxt', 'cxgbe', 'dpaa', 'dpaa2',
-	'e1000', 'enic', 'fm10k', 'i40e', 'ixgbe',
+	'e1000', 'ena', 'enic',
+	'fm10k', 'i40e', 'ixgbe',
 	'mvpp2', 'null', 'octeontx', 'pcap', 'ring',
 	'sfc', 'thunderx', 'virtio']
 std_deps = ['ethdev', 'kvargs'] # 'ethdev' also pulls in mbuf, net, eal etc
Signature · 1 line
2.11.0
#8 lore raw

PATCH 7/15 net/failsafe: add to meson build

In reply to Bruce Richardson

---
CC: Gaetan Rivet <[email protected]>

---
 drivers/net/failsafe/meson.build | 23 +++++++++++++++++++++++
 drivers/net/meson.build          |  2 +-
 2 files changed, 24 insertions(+), 1 deletion(-)
 create mode 100644 drivers/net/failsafe/meson.build
drivers/net/failsafe/meson.build new file +23 -0
new file mode 100644
index 000000000..a249ff4af
@@ -0,0 +1,23 @@
+# SPDX-License-Identifier: BSD-3-Clause
+# Copyright(c) 2018 Intel Corporation
+
+cflags += '-std=gnu99'
+cflags += '-D_DEFAULT_SOURCE'
+cflags += '-D_XOPEN_SOURCE=700'
+cflags += '-pedantic'
+if host_machine.system() == 'linux'
+	cflags += '-DLINUX'
+else
+	cflags += '-DBSD'
+endif
+
+allow_experimental_apis = true
+
+sources = files('failsafe_args.c',
+	'failsafe.c',
+	'failsafe_eal.c',
+	'failsafe_ether.c',
+	'failsafe_flow.c',
+	'failsafe_intr.c',
+	'failsafe_ops.c',
+	'failsafe_rxtx.c')
drivers/net/meson.build +1 -1
index d4c7d58ab..decb1519a 100644
@@ -4,7 +4,7 @@
 drivers = ['af_packet', 'ark', 'avp',
 	'axgbe', 'bonding', 'bnx2x',
 	'bnxt', 'cxgbe', 'dpaa', 'dpaa2',
-	'e1000', 'ena', 'enic',
+	'e1000', 'ena', 'enic', 'failsafe',
 	'fm10k', 'i40e', 'ixgbe',
 	'mvpp2', 'null', 'octeontx', 'pcap', 'ring',
 	'sfc', 'thunderx', 'virtio']
Signature · 1 line
2.11.0
#9 lore raw

PATCH 8/15 net/ifc: rename to ifcvf

In reply to Bruce Richardson

All files in the directory and the resulting driver have prefix of ifcvf, not just ifc, so rename directory for accuracy. Also rename the map file to standard name for meson build in the process.

---
CC: Xiao Wang <[email protected]>

---
 MAINTAINERS                                                           | 4 ++--
 drivers/net/Makefile                                                  | 2 +-
 drivers/net/{ifc => ifcvf}/Makefile                                   | 2 +-
 drivers/net/{ifc => ifcvf}/base/ifcvf.c                               | 0
 drivers/net/{ifc => ifcvf}/base/ifcvf.h                               | 0
 drivers/net/{ifc => ifcvf}/base/ifcvf_osdep.h                         | 0
 drivers/net/{ifc => ifcvf}/ifcvf_vdpa.c                               | 0
 .../{ifc/rte_ifcvf_version.map => ifcvf/rte_pmd_ifcvf_version.map}    | 0
 8 files changed, 4 insertions(+), 4 deletions(-)
 rename drivers/net/{ifc => ifcvf}/Makefile (94%)
 rename drivers/net/{ifc => ifcvf}/base/ifcvf.c (100%)
 rename drivers/net/{ifc => ifcvf}/base/ifcvf.h (100%)
 rename drivers/net/{ifc => ifcvf}/base/ifcvf_osdep.h (100%)
 rename drivers/net/{ifc => ifcvf}/ifcvf_vdpa.c (100%)
 rename drivers/net/{ifc/rte_ifcvf_version.map => ifcvf/rte_pmd_ifcvf_version.map} (100%)
MAINTAINERS +2 -2
index 2663f1c03..6f587477c 100644
@@ -553,10 +553,10 @@ T: git://dpdk.org/next/dpdk-next-net-intel
 F: drivers/net/avf/
 F: doc/guides/nics/features/avf*.ini
 
-Intel ifc
+Intel ifcvf
 M: Xiao Wang <[email protected]>
 T: git://dpdk.org/next/dpdk-next-net-intel
-F: drivers/net/ifc/
+F: drivers/net/ifcvf/
 F: doc/guides/nics/ifcvf.rst
 F: doc/guides/nics/features/ifcvf.ini
 
drivers/net/Makefile +1 -1
index 9f9da6651..9308f9a7b 100644
@@ -59,7 +59,7 @@ endif # $(CONFIG_RTE_LIBRTE_SCHED)
 ifeq ($(CONFIG_RTE_LIBRTE_VHOST),y)
 DIRS-$(CONFIG_RTE_LIBRTE_PMD_VHOST) += vhost
 ifeq ($(CONFIG_RTE_EAL_VFIO),y)
-DIRS-$(CONFIG_RTE_LIBRTE_IFCVF_VDPA_PMD) += ifc
+DIRS-$(CONFIG_RTE_LIBRTE_IFCVF_VDPA_PMD) += ifcvf
 endif
 endif # $(CONFIG_RTE_LIBRTE_VHOST)
 
drivers/net/ifcvf/Makefile renamed from drivers/net/ifc/Makefile +1 -1
similarity index 94%
rename from drivers/net/ifc/Makefile
rename to drivers/net/ifcvf/Makefile
index 1011995bc..a022faaad 100644
@@ -22,7 +22,7 @@ BASE_DRIVER_OBJS=$(sort $(patsubst %.c,%.o,$(notdir $(wildcard $(SRCDIR)/base/*.
 
 VPATH += $(SRCDIR)/base
 
-EXPORT_MAP := rte_ifcvf_version.map
+EXPORT_MAP := rte_pmd_ifcvf_version.map
 
 LIBABIVER := 1
 
drivers/net/ifcvf/base/ifcvf.c renamed from drivers/net/ifc/base/ifcvf.c +0 -0
similarity index 100%
rename from drivers/net/ifc/base/ifcvf.c
rename to drivers/net/ifcvf/base/ifcvf.c
drivers/net/ifcvf/base/ifcvf.h renamed from drivers/net/ifc/base/ifcvf.h +0 -0
similarity index 100%
rename from drivers/net/ifc/base/ifcvf.h
rename to drivers/net/ifcvf/base/ifcvf.h
drivers/net/ifcvf/base/ifcvf_osdep.h renamed from drivers/net/ifc/base/ifcvf_osdep.h +0 -0
similarity index 100%
rename from drivers/net/ifc/base/ifcvf_osdep.h
rename to drivers/net/ifcvf/base/ifcvf_osdep.h
drivers/net/ifcvf/ifcvf_vdpa.c renamed from drivers/net/ifc/ifcvf_vdpa.c +0 -0
similarity index 100%
rename from drivers/net/ifc/ifcvf_vdpa.c
rename to drivers/net/ifcvf/ifcvf_vdpa.c
drivers/net/ifcvf/rte_pmd_ifcvf_version.map renamed from drivers/net/ifc/rte_ifcvf_version.map +0 -0
similarity index 100%
rename from drivers/net/ifc/rte_ifcvf_version.map
rename to drivers/net/ifcvf/rte_pmd_ifcvf_version.map
Signature · 1 line
2.11.0
#10 lore raw

Re: [PATCH-18.08 08/15] net/ifc: rename to ifcvf

Hi Bruce,

Quoted 11 lines

-----Original Message-----
From: Richardson, Bruce
Sent: Friday, May 18, 2018 4:15 AM
To: [email protected]
Cc: Richardson, Bruce <[email protected]>; Wang, Xiao W <[email protected]>
Subject: [PATCH-18.08 08/15] net/ifc: rename to ifcvf

All files in the directory and the resulting driver have prefix of ifcvf, not just ifc, so rename directory for accuracy. Also rename the map file to standard name for meson build in the process.

Naming the directory as "ifc" allows us to add ifcpf driver into it in the future.

BRs,
Xiao

Quoted 93 lines

---
CC: Xiao Wang <[email protected]>

---
 MAINTAINERS                                                           | 4 ++--
 drivers/net/Makefile                                                  | 2 +-
 drivers/net/{ifc => ifcvf}/Makefile                                   | 2 +-
 drivers/net/{ifc => ifcvf}/base/ifcvf.c                               | 0
 drivers/net/{ifc => ifcvf}/base/ifcvf.h                               | 0
 drivers/net/{ifc => ifcvf}/base/ifcvf_osdep.h                         | 0
 drivers/net/{ifc => ifcvf}/ifcvf_vdpa.c                               | 0
 .../{ifc/rte_ifcvf_version.map => ifcvf/rte_pmd_ifcvf_version.map}    | 0
 8 files changed, 4 insertions(+), 4 deletions(-)
 rename drivers/net/{ifc => ifcvf}/Makefile (94%)
 rename drivers/net/{ifc => ifcvf}/base/ifcvf.c (100%)
 rename drivers/net/{ifc => ifcvf}/base/ifcvf.h (100%)
 rename drivers/net/{ifc => ifcvf}/base/ifcvf_osdep.h (100%)
 rename drivers/net/{ifc => ifcvf}/ifcvf_vdpa.c (100%)
 rename drivers/net/{ifc/rte_ifcvf_version.map =>

ifcvf/rte_pmd_ifcvf_version.map} (100%)

MAINTAINERS +2 -2
index 2663f1c03..6f587477c 100644
@@ -553,10 +553,10 @@ T: git://dpdk.org/next/dpdk-next-net-intel
 F: drivers/net/avf/
 F: doc/guides/nics/features/avf*.ini
 
-Intel ifc
+Intel ifcvf
 M: Xiao Wang <[email protected]>
 T: git://dpdk.org/next/dpdk-next-net-intel
-F: drivers/net/ifc/
+F: drivers/net/ifcvf/
 F: doc/guides/nics/ifcvf.rst
 F: doc/guides/nics/features/ifcvf.ini
 
drivers/net/Makefile +1 -1
index 9f9da6651..9308f9a7b 100644
@@ -59,7 +59,7 @@ endif # $(CONFIG_RTE_LIBRTE_SCHED)
 ifeq ($(CONFIG_RTE_LIBRTE_VHOST),y)
 DIRS-$(CONFIG_RTE_LIBRTE_PMD_VHOST) += vhost
 ifeq ($(CONFIG_RTE_EAL_VFIO),y)
-DIRS-$(CONFIG_RTE_LIBRTE_IFCVF_VDPA_PMD) += ifc
+DIRS-$(CONFIG_RTE_LIBRTE_IFCVF_VDPA_PMD) += ifcvf
 endif
 endif # $(CONFIG_RTE_LIBRTE_VHOST)
 
drivers/net/ifcvf/Makefile renamed from drivers/net/ifc/Makefile +0 -0
similarity index 94%
rename from drivers/net/ifc/Makefile
rename to drivers/net/ifcvf/Makefile
index 1011995bc..a022faaad 100644
@@ -22,7 +22,7 @@ BASE_DRIVER_OBJS=$(sort $(patsubst %.c,%.o,$(notdir

$(wildcard $(SRCDIR)/base/*.

VPATH += $(SRCDIR)/base

drivers/net/ifcvf/Makefile renamed from drivers/net/ifc/Makefile +1 -1
-EXPORT_MAP := rte_ifcvf_version.map
+EXPORT_MAP := rte_pmd_ifcvf_version.map
 
 LIBABIVER := 1
drivers/net/ifcvf/base/ifcvf.c renamed from drivers/net/ifc/base/ifcvf.c +0 -0
similarity index 100%
rename from drivers/net/ifc/base/ifcvf.c
rename to drivers/net/ifcvf/base/ifcvf.c
drivers/net/ifcvf/base/ifcvf.h renamed from drivers/net/ifc/base/ifcvf.h +0 -0
similarity index 100%
rename from drivers/net/ifc/base/ifcvf.h
rename to drivers/net/ifcvf/base/ifcvf.h
drivers/net/ifcvf/base/ifcvf_osdep.h renamed from drivers/net/ifc/base/ifcvf_osdep.h +0 -0
similarity index 100%
rename from drivers/net/ifc/base/ifcvf_osdep.h
rename to drivers/net/ifcvf/base/ifcvf_osdep.h
drivers/net/ifcvf/ifcvf_vdpa.c renamed from drivers/net/ifc/ifcvf_vdpa.c +0 -0
similarity index 100%
rename from drivers/net/ifc/ifcvf_vdpa.c
rename to drivers/net/ifcvf/ifcvf_vdpa.c
drivers/net/ifcvf/rte_pmd_ifcvf_version.map renamed from drivers/net/ifc/rte_ifcvf_version.map +0 -1
similarity index 100%
rename from drivers/net/ifc/rte_ifcvf_version.map
rename to drivers/net/ifcvf/rte_pmd_ifcvf_version.map
--

2.11.0

#11 lore raw

Re: [PATCH-18.08 08/15] net/ifc: rename to ifcvf

Quoted 10 lines · Xiao W

Hi Bruce,

Quoted 8 lines

-----Original Message-----
From: Richardson, Bruce
Sent: Friday, May 18, 2018 4:15 AM
To: [email protected]
Cc: Richardson, Bruce <[email protected]>; Wang, Xiao W <[email protected]>
Subject: [PATCH-18.08 08/15] net/ifc: rename to ifcvf

Quoted 9 lines
Quoted 3 lines

All files in the directory and the resulting driver have prefix of ifcvf, not just ifc, so rename directory for accuracy. Also rename the map file to standard name for meson build in the process.

Naming the directory as "ifc" allows us to add ifcpf driver into it in the future.

BRs,
Xiao

At which point you will have to rename the version file, the rst documentation file, the resulting shared library file etc. Right now, most of the references are to ifcvf, with the only exception being the folder name. This patch makes things consistent by having everything refer to ifcvf.

If you prefer, I can do a v2 of this set renaming everything to ifc, but that would be a lot bigger a job, and would also result in the driver file itself getting a new name too. Unless there are immediate plans to add an ifcpf driver, I think this change makes more sense.

/Bruce

#12 lore raw

Re: [PATCH-18.08 08/15] net/ifc: rename to ifcvf

Hi,

Quoted 28 lines

-----Original Message-----
From: Richardson, Bruce
Sent: Friday, May 18, 2018 4:13 PM
To: Wang, Xiao W <[email protected]>
Cc: [email protected]
Subject: Re: [PATCH-18.08 08/15] net/ifc: rename to ifcvf

Quoted 10 lines · Xiao W

Hi Bruce,

Quoted 8 lines

-----Original Message-----
From: Richardson, Bruce
Sent: Friday, May 18, 2018 4:15 AM
To: [email protected]
Cc: Richardson, Bruce <[email protected]>; Wang, Xiao W <[email protected]>
Subject: [PATCH-18.08 08/15] net/ifc: rename to ifcvf

Quoted 9 lines
Quoted 3 lines

All files in the directory and the resulting driver have prefix of ifcvf, not just ifc, so rename directory for accuracy. Also rename the map file to standard name for meson build in the process.

Naming the directory as "ifc" allows us to add ifcpf driver into it in the future.

BRs,
Xiao

Quoted 5 lines

At which point you will have to rename the version file, the rst documentation file, the resulting shared library file etc. Right now, most of the references are to ifcvf, with the only exception being the folder name. This patch makes things consistent by having everything refer to ifcvf.

OK.

Quoted 5 lines

If you prefer, I can do a v2 of this set renaming everything to ifc, but that would be a lot bigger a job, and would also result in the driver file itself getting a new name too. Unless there are immediate plans to add an ifcpf driver, I think this change makes more sense.

No need for that.

BRs,
Xiao

Quoted 2 lines

/Bruce

#13 lore raw

PATCH 9/15 net/ifcvf: add to meson build

In reply to Bruce Richardson

---
CC: Xiao Wang <[email protected]>

---
 drivers/net/ifcvf/meson.build | 7 +++++++
 drivers/net/meson.build       | 2 +-
 2 files changed, 8 insertions(+), 1 deletion(-)
 create mode 100644 drivers/net/ifcvf/meson.build
drivers/net/ifcvf/meson.build new file +7 -0
new file mode 100644
index 000000000..a30aa09e6
@@ -0,0 +1,7 @@
+# SPDX-License-Identifier: BSD-3-Clause
+# Copyright(c) 2018 Intel Corporation
+
+allow_experimental_apis = true
+sources = files('ifcvf_vdpa.c', 'base/ifcvf.c')
+includes += include_directories('base')
+deps += 'vhost'
drivers/net/meson.build +1 -1
index decb1519a..c983f90b1 100644
@@ -5,7 +5,7 @@ drivers = ['af_packet', 'ark', 'avp',
 	'axgbe', 'bonding', 'bnx2x',
 	'bnxt', 'cxgbe', 'dpaa', 'dpaa2',
 	'e1000', 'ena', 'enic', 'failsafe',
-	'fm10k', 'i40e', 'ixgbe',
+	'fm10k', 'i40e', 'ifcvf', 'ixgbe',
 	'mvpp2', 'null', 'octeontx', 'pcap', 'ring',
 	'sfc', 'thunderx', 'virtio']
 std_deps = ['ethdev', 'kvargs'] # 'ethdev' also pulls in mbuf, net, eal etc
Signature · 1 line
2.11.0
#14 lore raw

PATCH 10/15 net/kni: add to meson build

In reply to Bruce Richardson

---
CC: Ferruh Yigit <[email protected]>

---
 drivers/net/kni/meson.build | 6 ++++++
 drivers/net/meson.build     | 3 ++-
 2 files changed, 8 insertions(+), 1 deletion(-)
 create mode 100644 drivers/net/kni/meson.build
drivers/net/kni/meson.build new file +6 -0
new file mode 100644
index 000000000..2406cc5ea
@@ -0,0 +1,6 @@
+# SPDX-License-Identifier: BSD-3-Clause
+# Copyright(c) 2018 Intel Corporation
+
+allow_experimental_apis = true
+sources = files('rte_eth_kni.c')
+deps += 'kni'
drivers/net/meson.build +2 -1
index c983f90b1..213fe734c 100644
@@ -6,7 +6,8 @@ drivers = ['af_packet', 'ark', 'avp',
 	'bnxt', 'cxgbe', 'dpaa', 'dpaa2',
 	'e1000', 'ena', 'enic', 'failsafe',
 	'fm10k', 'i40e', 'ifcvf', 'ixgbe',
-	'mvpp2', 'null', 'octeontx', 'pcap', 'ring',
+	'kni', 'mvpp2', 'null',
+	'octeontx', 'pcap', 'ring',
 	'sfc', 'thunderx', 'virtio']
 std_deps = ['ethdev', 'kvargs'] # 'ethdev' also pulls in mbuf, net, eal etc
 std_deps += ['bus_pci']         # very many PMDs depend on PCI, so make std
Signature · 1 line
2.11.0
#15 lore raw

PATCH 11/15 net/liquidio: add to meson build

In reply to Bruce Richardson

---
CC: Shijith Thotton <[email protected]>
CC: Srisivasubramanian Srinivasan <[email protected]>

---
 drivers/net/liquidio/Makefile                                     | 2 +-
 drivers/net/liquidio/meson.build                                  | 8 ++++++++
 .../{rte_pmd_lio_version.map => rte_pmd_liquidio_version.map}     | 0
 drivers/net/meson.build                                           | 2 +-
 4 files changed, 10 insertions(+), 2 deletions(-)
 create mode 100644 drivers/net/liquidio/meson.build
 rename drivers/net/liquidio/{rte_pmd_lio_version.map => rte_pmd_liquidio_version.map} (100%)
drivers/net/liquidio/Makefile +1 -1
index fc5f18ad6..f1092851a 100644
@@ -15,7 +15,7 @@ LDLIBS += -lrte_eal -lrte_mbuf -lrte_mempool -lrte_ring
 LDLIBS += -lrte_ethdev -lrte_net -lrte_kvargs
 LDLIBS += -lrte_bus_pci
 
-EXPORT_MAP := rte_pmd_lio_version.map
+EXPORT_MAP := rte_pmd_liquidio_version.map
 
 LIBABIVER := 1
 
drivers/net/liquidio/meson.build new file +8 -0
new file mode 100644
index 000000000..9ae48e213
@@ -0,0 +1,8 @@
+# SPDX-License-Identifier: BSD-3-Clause
+# Copyright(c) 2018 Intel Corporation
+
+sources = files('base/lio_23xx_vf.c',
+	'base/lio_mbox.c',
+	'lio_ethdev.c',
+	'lio_rxtx.c')
+includes += include_directories('base')
drivers/net/liquidio/rte_pmd_liquidio_version.map renamed from drivers/net/liquidio/rte_pmd_lio_version.map +0 -0
similarity index 100%
rename from drivers/net/liquidio/rte_pmd_lio_version.map
rename to drivers/net/liquidio/rte_pmd_liquidio_version.map
drivers/net/meson.build +1 -1
index 213fe734c..9faed7d61 100644
@@ -6,7 +6,7 @@ drivers = ['af_packet', 'ark', 'avp',
 	'bnxt', 'cxgbe', 'dpaa', 'dpaa2',
 	'e1000', 'ena', 'enic', 'failsafe',
 	'fm10k', 'i40e', 'ifcvf', 'ixgbe',
-	'kni', 'mvpp2', 'null',
+	'kni', 'liquidio', 'mvpp2', 'null',
 	'octeontx', 'pcap', 'ring',
 	'sfc', 'thunderx', 'virtio']
 std_deps = ['ethdev', 'kvargs'] # 'ethdev' also pulls in mbuf, net, eal etc
Signature · 1 line
2.11.0
Acked-by on v1 11/15
#16 lore raw

Re: [PATCH-18.08 11/15] net/liquidio: add to meson build

Quoted 61 lines · Bruce Richardson

---
CC: Shijith Thotton <[email protected]>
CC: Srisivasubramanian Srinivasan <[email protected]>

---
 drivers/net/liquidio/Makefile                                     | 2 +-
 drivers/net/liquidio/meson.build                                  | 8 ++++++++
 .../{rte_pmd_lio_version.map => rte_pmd_liquidio_version.map}     | 0
 drivers/net/meson.build                                           | 2 +-
 4 files changed, 10 insertions(+), 2 deletions(-)
 create mode 100644 drivers/net/liquidio/meson.build
 rename drivers/net/liquidio/{rte_pmd_lio_version.map => rte_pmd_liquidio_version.map} (100%)
drivers/net/liquidio/Makefile +1 -1
index fc5f18ad6..f1092851a 100644
@@ -15,7 +15,7 @@ LDLIBS += -lrte_eal -lrte_mbuf -lrte_mempool -lrte_ring
 LDLIBS += -lrte_ethdev -lrte_net -lrte_kvargs
 LDLIBS += -lrte_bus_pci
 
-EXPORT_MAP := rte_pmd_lio_version.map
+EXPORT_MAP := rte_pmd_liquidio_version.map
 
 LIBABIVER := 1
 
drivers/net/liquidio/meson.build new file +8 -0
new file mode 100644
index 000000000..9ae48e213
@@ -0,0 +1,8 @@
+# SPDX-License-Identifier: BSD-3-Clause
+# Copyright(c) 2018 Intel Corporation
+
+sources = files('base/lio_23xx_vf.c',
+	'base/lio_mbox.c',
+	'lio_ethdev.c',
+	'lio_rxtx.c')
+includes += include_directories('base')
drivers/net/liquidio/rte_pmd_liquidio_version.map renamed from drivers/net/liquidio/rte_pmd_lio_version.map +0 -0
similarity index 100%
rename from drivers/net/liquidio/rte_pmd_lio_version.map
rename to drivers/net/liquidio/rte_pmd_liquidio_version.map
drivers/net/meson.build +1 -1
index 213fe734c..9faed7d61 100644
@@ -6,7 +6,7 @@ drivers = ['af_packet', 'ark', 'avp',
 	'bnxt', 'cxgbe', 'dpaa', 'dpaa2',
 	'e1000', 'ena', 'enic', 'failsafe',
 	'fm10k', 'i40e', 'ifcvf', 'ixgbe',
-	'kni', 'mvpp2', 'null',
+	'kni', 'liquidio', 'mvpp2', 'null',
 	'octeontx', 'pcap', 'ring',
 	'sfc', 'thunderx', 'virtio']
 std_deps = ['ethdev', 'kvargs'] # 'ethdev' also pulls in mbuf, net, eal etc
Signature · 1 line
2.11.0

Thanks.

#17 lore raw

PATCH 12/15 net/nfp: add to meson build

In reply to Bruce Richardson

---
CC: Alejandro Lucero <[email protected]>

---
 drivers/net/meson.build     |  2 +-
 drivers/net/nfp/meson.build | 16 ++++++++++++++++
 2 files changed, 17 insertions(+), 1 deletion(-)
 create mode 100644 drivers/net/nfp/meson.build
drivers/net/meson.build +1 -1
index 9faed7d61..9714491d1 100644
@@ -6,7 +6,7 @@ drivers = ['af_packet', 'ark', 'avp',
 	'bnxt', 'cxgbe', 'dpaa', 'dpaa2',
 	'e1000', 'ena', 'enic', 'failsafe',
 	'fm10k', 'i40e', 'ifcvf', 'ixgbe',
-	'kni', 'liquidio', 'mvpp2', 'null',
+	'kni', 'liquidio', 'mvpp2', 'nfp', 'null',
 	'octeontx', 'pcap', 'ring',
 	'sfc', 'thunderx', 'virtio']
 std_deps = ['ethdev', 'kvargs'] # 'ethdev' also pulls in mbuf, net, eal etc
drivers/net/nfp/meson.build new file +16 -0
new file mode 100644
index 000000000..3ba37e279
@@ -0,0 +1,16 @@
+# SPDX-License-Identifier: BSD-3-Clause
+# Copyright(c) 2018 Intel Corporation
+
+sources = files('nfpcore/nfp_cpp_pcie_ops.c',
+	'nfpcore/nfp_nsp.c',
+	'nfpcore/nfp_cppcore.c',
+	'nfpcore/nfp_resource.c',
+	'nfpcore/nfp_mip.c',
+	'nfpcore/nfp_nffw.c',
+	'nfpcore/nfp_rtsym.c',
+	'nfpcore/nfp_nsp_cmds.c',
+	'nfpcore/nfp_crc.c',
+	'nfpcore/nfp_mutex.c',
+	'nfpcore/nfp_nsp_eth.c',
+	'nfpcore/nfp_hwinfo.c',
+	'nfp_net.c')
Signature · 1 line
2.11.0
#18 lore raw

PATCH 13/15 net/softnic: add to meson build

In reply to Bruce Richardson

---
CC: Jasvinder Singh <[email protected]>
CC: Cristian Dumitrescu <[email protected]>

---
 drivers/net/meson.build                                            | 3 ++-
 drivers/net/softnic/Makefile                                       | 2 +-
 drivers/net/softnic/meson.build                                    | 7 +++++++
 ...rte_pmd_eth_softnic_version.map => rte_pmd_softnic_version.map} | 0
 4 files changed, 10 insertions(+), 2 deletions(-)
 create mode 100644 drivers/net/softnic/meson.build
 rename drivers/net/softnic/{rte_pmd_eth_softnic_version.map => rte_pmd_softnic_version.map} (100%)
drivers/net/meson.build +2 -1
index 9714491d1..9cec3f884 100644
@@ -8,7 +8,8 @@ drivers = ['af_packet', 'ark', 'avp',
 	'fm10k', 'i40e', 'ifcvf', 'ixgbe',
 	'kni', 'liquidio', 'mvpp2', 'nfp', 'null',
 	'octeontx', 'pcap', 'ring',
-	'sfc', 'thunderx', 'virtio']
+	'sfc', 'softnic',
+	'thunderx', 'virtio']
 std_deps = ['ethdev', 'kvargs'] # 'ethdev' also pulls in mbuf, net, eal etc
 std_deps += ['bus_pci']         # very many PMDs depend on PCI, so make std
 std_deps += ['bus_vdev']        # same with vdev bus
drivers/net/softnic/Makefile +1 -1
index d56fecd62..97ac88411 100644
@@ -14,7 +14,7 @@ LDLIBS += -lrte_eal -lrte_mbuf -lrte_mempool -lrte_ring
 LDLIBS += -lrte_ethdev -lrte_net -lrte_kvargs -lrte_sched
 LDLIBS += -lrte_bus_vdev
 
-EXPORT_MAP := rte_pmd_eth_softnic_version.map
+EXPORT_MAP := rte_pmd_softnic_version.map
 
 LIBABIVER := 1
 
drivers/net/softnic/meson.build new file +7 -0
new file mode 100644
index 000000000..41059da8b
@@ -0,0 +1,7 @@
+# SPDX-License-Identifier: BSD-3-Clause
+# Copyright(c) 2018 Intel Corporation
+
+install_headers('rte_eth_softnic.h')
+sources = files('rte_eth_softnic_tm.c',
+	'rte_eth_softnic.c')
+deps += 'sched'
drivers/net/softnic/rte_pmd_softnic_version.map renamed from drivers/net/softnic/rte_pmd_eth_softnic_version.map +0 -0
similarity index 100%
rename from drivers/net/softnic/rte_pmd_eth_softnic_version.map
rename to drivers/net/softnic/rte_pmd_softnic_version.map
Signature · 1 line
2.11.0
#19 lore raw

PATCH 14/15 net/szedata2: add to meson build

In reply to Bruce Richardson

---
CC: Matej Vido <[email protected]>

---
 drivers/net/meson.build          | 2 +-
 drivers/net/szedata2/meson.build | 7 +++++++
 2 files changed, 8 insertions(+), 1 deletion(-)
 create mode 100644 drivers/net/szedata2/meson.build
drivers/net/meson.build +1 -1
index 9cec3f884..c7e18a696 100644
@@ -8,7 +8,7 @@ drivers = ['af_packet', 'ark', 'avp',
 	'fm10k', 'i40e', 'ifcvf', 'ixgbe',
 	'kni', 'liquidio', 'mvpp2', 'nfp', 'null',
 	'octeontx', 'pcap', 'ring',
-	'sfc', 'softnic',
+	'sfc', 'softnic', 'szedata2',
 	'thunderx', 'virtio']
 std_deps = ['ethdev', 'kvargs'] # 'ethdev' also pulls in mbuf, net, eal etc
 std_deps += ['bus_pci']         # very many PMDs depend on PCI, so make std
drivers/net/szedata2/meson.build new file +7 -0
new file mode 100644
index 000000000..da3733743
@@ -0,0 +1,7 @@
+# SPDX-License-Identifier: BSD-3-Clause
+# Copyright(c) 2018 Intel Corporation
+
+dep = cc.find_library('sze2', required: false)
+build = dep.found()
+ext_deps += dep
+sources = files('rte_eth_szedata2.c')
Signature · 1 line
2.11.0
#20 lore raw

PATCH 15/15 net/vhost: add to meson build

In reply to Bruce Richardson

---
CC: Tetsuya Mukawa <[email protected]>
CC: Maxime Coquelin <[email protected]>

---
 drivers/net/meson.build       | 2 +-
 drivers/net/vhost/meson.build | 7 +++++++
 2 files changed, 8 insertions(+), 1 deletion(-)
 create mode 100644 drivers/net/vhost/meson.build
drivers/net/meson.build +1 -1
index c7e18a696..aef5ef6c0 100644
@@ -9,7 +9,7 @@ drivers = ['af_packet', 'ark', 'avp',
 	'kni', 'liquidio', 'mvpp2', 'nfp', 'null',
 	'octeontx', 'pcap', 'ring',
 	'sfc', 'softnic', 'szedata2',
-	'thunderx', 'virtio']
+	'thunderx', 'vhost', 'virtio']
 std_deps = ['ethdev', 'kvargs'] # 'ethdev' also pulls in mbuf, net, eal etc
 std_deps += ['bus_pci']         # very many PMDs depend on PCI, so make std
 std_deps += ['bus_vdev']        # same with vdev bus
drivers/net/vhost/meson.build new file +7 -0
new file mode 100644
index 000000000..a8f77e1ab
@@ -0,0 +1,7 @@
+# SPDX-License-Identifier: BSD-3-Clause
+# Copyright(c) 2018 Intel Corporation
+
+version = 2
+sources = files('rte_eth_vhost.c')
+install_headers('rte_eth_vhost.h')
+deps += 'vhost'
Signature · 1 line
2.11.0
#21 lore raw

v2 cover add meson support for more net drivers

In reply to Bruce Richardson

A number of net drivers require pretty minimal meson.build files to build successfully with meson. This set adds support for 14 net drivers to the build.

V2: Small change to net/kni patch to ensure 32-bit builds ok.

Bruce Richardson (15):
net/ark: add to meson build
net/avp: add to meson build
net/bnx2x: add to meson build
net/bnxt: add to meson build
net/cxgbe: add to meson build
net/ena: add to meson build
net/failsafe: add to meson build
net/ifc: rename to ifcvf
net/ifcvf: add to meson build
net/kni: add to meson build
net/liquidio: add to meson build
net/nfp: add to meson build
net/softnic: add to meson build
net/szedata2: add to meson build
net/vhost: add to meson build

 MAINTAINERS                                   |  4 ++--
 app/test-pmd/meson.build                      |  3 +++
 drivers/net/Makefile                          |  2 +-
 drivers/net/ark/meson.build                   | 13 +++++++++++
 drivers/net/avp/meson.build                   |  5 ++++
 drivers/net/bnx2x/meson.build                 | 14 +++++++++++
 drivers/net/bnxt/meson.build                  | 18 +++++++++++++++
 drivers/net/cxgbe/meson.build                 | 11 +++++++++
 drivers/net/ena/meson.build                   |  8 +++++++
 drivers/net/failsafe/meson.build              | 23 +++++++++++++++++++
 drivers/net/{ifc => ifcvf}/Makefile           |  2 +-
 drivers/net/{ifc => ifcvf}/base/ifcvf.c       |  0
 drivers/net/{ifc => ifcvf}/base/ifcvf.h       |  0
 drivers/net/{ifc => ifcvf}/base/ifcvf_osdep.h |  0
 drivers/net/{ifc => ifcvf}/ifcvf_vdpa.c       |  0
 drivers/net/ifcvf/meson.build                 |  7 ++++++
 .../rte_pmd_ifcvf_version.map}                |  0
 drivers/net/kni/meson.build                   |  8 +++++++
 drivers/net/liquidio/Makefile                 |  2 +-
 drivers/net/liquidio/meson.build              |  8 +++++++
 ...rsion.map => rte_pmd_liquidio_version.map} |  0
 drivers/net/meson.build                       | 13 +++++++----
 drivers/net/nfp/meson.build                   | 16 +++++++++++++
 drivers/net/softnic/Makefile                  |  2 +-
 drivers/net/softnic/meson.build               |  7 ++++++
 ...ersion.map => rte_pmd_softnic_version.map} |  0
 drivers/net/szedata2/meson.build              |  7 ++++++
 drivers/net/vhost/meson.build                 |  7 ++++++
 28 files changed, 170 insertions(+), 10 deletions(-)
 create mode 100644 drivers/net/ark/meson.build
 create mode 100644 drivers/net/avp/meson.build
 create mode 100644 drivers/net/bnx2x/meson.build
 create mode 100644 drivers/net/bnxt/meson.build
 create mode 100644 drivers/net/cxgbe/meson.build
 create mode 100644 drivers/net/ena/meson.build
 create mode 100644 drivers/net/failsafe/meson.build
 rename drivers/net/{ifc => ifcvf}/Makefile (94%)
 rename drivers/net/{ifc => ifcvf}/base/ifcvf.c (100%)
 rename drivers/net/{ifc => ifcvf}/base/ifcvf.h (100%)
 rename drivers/net/{ifc => ifcvf}/base/ifcvf_osdep.h (100%)
 rename drivers/net/{ifc => ifcvf}/ifcvf_vdpa.c (100%)
 create mode 100644 drivers/net/ifcvf/meson.build
 rename drivers/net/{ifc/rte_ifcvf_version.map => ifcvf/rte_pmd_ifcvf_version.map} (100%)
 create mode 100644 drivers/net/kni/meson.build
 create mode 100644 drivers/net/liquidio/meson.build
 rename drivers/net/liquidio/{rte_pmd_lio_version.map => rte_pmd_liquidio_version.map} (100%)
 create mode 100644 drivers/net/nfp/meson.build
 create mode 100644 drivers/net/softnic/meson.build
 rename drivers/net/softnic/{rte_pmd_eth_softnic_version.map => rte_pmd_softnic_version.map} (100%)
 create mode 100644 drivers/net/szedata2/meson.build
 create mode 100644 drivers/net/vhost/meson.build
Signature · 1 line
2.17.1
#22 lore raw

PATCH v2 1/15 net/ark: add to meson build

CC Shepard Siegel <[email protected]>
CC Ed Czeck <[email protected]>
CC John Miller <[email protected]>
---
 drivers/net/ark/meson.build | 13 +++++++++++++
 drivers/net/meson.build     |  3 ++-
 2 files changed, 15 insertions(+), 1 deletion(-)
 create mode 100644 drivers/net/ark/meson.build
drivers/net/ark/meson.build new file +13 -0
new file mode 100644
index 000000000..99151bba1
@@ -0,0 +1,13 @@
+# SPDX-License-Identifier: BSD-3-Clause
+# Copyright(c) 2018 Intel Corporation
+
+sources = files('ark_ddm.c',
+	'ark_ethdev.c',
+	'ark_ethdev_rx.c',
+	'ark_ethdev_tx.c',
+	'ark_mpu.c',
+	'ark_pktchkr.c',
+	'ark_pktdir.c',
+	'ark_pktgen.c',
+	'ark_rqp.c',
+	'ark_udm.c')
drivers/net/meson.build +2 -1
index b7d00a04c..d0ae7c34b 100644
@@ -1,7 +1,8 @@
 # SPDX-License-Identifier: BSD-3-Clause
 # Copyright(c) 2017 Intel Corporation
 
-drivers = ['af_packet', 'axgbe', 'bonding', 'dpaa', 'dpaa2',
+drivers = ['ark',
+	'af_packet', 'axgbe', 'bonding', 'dpaa', 'dpaa2',
 	'e1000', 'enic', 'fm10k', 'i40e', 'ixgbe',
 	'mvpp2', 'null', 'octeontx', 'pcap', 'ring',
 	'sfc', 'thunderx', 'virtio']
Signature · 1 line
2.17.1
#23 lore raw

PATCH v2 2/15 net/avp: add to meson build

In reply to Bruce Richardson
---
 drivers/net/avp/meson.build | 5 +++++
 drivers/net/meson.build     | 4 ++--
 2 files changed, 7 insertions(+), 2 deletions(-)
 create mode 100644 drivers/net/avp/meson.build
drivers/net/avp/meson.build new file +5 -0
new file mode 100644
index 000000000..6076c31b9
@@ -0,0 +1,5 @@
+# SPDX-License-Identifier: BSD-3-Clause
+# Copyright(c) 2018 Intel Corporation
+
+sources = files('avp_ethdev.c')
+install_headers('rte_avp_common.h', 'rte_avp_fifo.h')
drivers/net/meson.build +2 -2
index d0ae7c34b..76bf48f3e 100644
@@ -1,8 +1,8 @@
 # SPDX-License-Identifier: BSD-3-Clause
 # Copyright(c) 2017 Intel Corporation
 
-drivers = ['ark',
-	'af_packet', 'axgbe', 'bonding', 'dpaa', 'dpaa2',
+drivers = ['af_packet', 'ark', 'avp',
+	'axgbe', 'bonding', 'dpaa', 'dpaa2',
 	'e1000', 'enic', 'fm10k', 'i40e', 'ixgbe',
 	'mvpp2', 'null', 'octeontx', 'pcap', 'ring',
 	'sfc', 'thunderx', 'virtio']
Signature · 1 line
2.17.1
#24 lore raw

PATCH v2 3/15 net/bnx2x: add to meson build

In reply to Bruce Richardson
CC Harish Patil <[email protected]>
CC Rasesh Mody <[email protected]>
---
 drivers/net/bnx2x/meson.build | 14 ++++++++++++++
 drivers/net/meson.build       |  3 ++-
 2 files changed, 16 insertions(+), 1 deletion(-)
 create mode 100644 drivers/net/bnx2x/meson.build
drivers/net/bnx2x/meson.build new file +14 -0
new file mode 100644
index 000000000..e3c688869
@@ -0,0 +1,14 @@
+# SPDX-License-Identifier: BSD-3-Clause
+# Copyright(c) 2018 Intel Corporation
+
+dep = cc.find_library('z', required: false)
+build = dep.found()
+ext_deps += dep
+cflags += '-DZLIB_CONST'
+sources = files('bnx2x.c',
+	'bnx2x_ethdev.c',
+	'bnx2x_rxtx.c',
+	'bnx2x_stats.c',
+	'bnx2x_vfpf.c',
+	'ecore_sp.c',
+	'elink.c')
drivers/net/meson.build +2 -1
index 76bf48f3e..143355458 100644
@@ -2,7 +2,8 @@
 # Copyright(c) 2017 Intel Corporation
 
 drivers = ['af_packet', 'ark', 'avp',
-	'axgbe', 'bonding', 'dpaa', 'dpaa2',
+	'axgbe', 'bonding', 'bnx2x',
+	'dpaa', 'dpaa2',
 	'e1000', 'enic', 'fm10k', 'i40e', 'ixgbe',
 	'mvpp2', 'null', 'octeontx', 'pcap', 'ring',
 	'sfc', 'thunderx', 'virtio']
Signature · 1 line
2.17.1
#25 lore raw

PATCH v2 4/15 net/bnxt: add to meson build

In reply to Bruce Richardson
CC Ajit Khaparde <[email protected]>
CC Somnath Kotur <[email protected]>
---
 app/test-pmd/meson.build     |  3 +++
 drivers/net/bnxt/meson.build | 18 ++++++++++++++++++
 drivers/net/meson.build      |  2 +-
 3 files changed, 22 insertions(+), 1 deletion(-)
 create mode 100644 drivers/net/bnxt/meson.build
app/test-pmd/meson.build +3 -0
index a51514b03..4c9fbbfda 100644
@@ -25,6 +25,9 @@ deps = ['ethdev', 'gro', 'gso', 'cmdline', 'metrics', 'meter', 'bus_pci']
 if dpdk_conf.has('RTE_LIBRTE_PDUMP')
 	deps += 'pdump'
 endif
+if dpdk_conf.has('RTE_LIBRTE_BNXT_PMD')
+	deps += 'pmd_bnxt'
+endif
 if dpdk_conf.has('RTE_LIBRTE_I40E_PMD')
 	deps += 'pmd_i40e'
 endif
drivers/net/bnxt/meson.build new file +18 -0
new file mode 100644
index 000000000..486bf0fd3
@@ -0,0 +1,18 @@
+# SPDX-License-Identifier: BSD-3-Clause
+# Copyright(c) 2018 Intel Corporation
+
+install_headers('rte_pmd_bnxt.h')
+version = 2
+sources = files('bnxt_cpr.c',
+	'bnxt_ethdev.c',
+	'bnxt_filter.c',
+	'bnxt_hwrm.c',
+	'bnxt_irq.c',
+	'bnxt_ring.c',
+	'bnxt_rxq.c',
+	'bnxt_rxr.c',
+	'bnxt_stats.c',
+	'bnxt_txq.c',
+	'bnxt_txr.c',
+	'bnxt_vnic.c',
+	'rte_pmd_bnxt.c')
drivers/net/meson.build +1 -1
index 143355458..d012c62fe 100644
@@ -3,7 +3,7 @@
 
 drivers = ['af_packet', 'ark', 'avp',
 	'axgbe', 'bonding', 'bnx2x',
-	'dpaa', 'dpaa2',
+	'bnxt', 'dpaa', 'dpaa2',
 	'e1000', 'enic', 'fm10k', 'i40e', 'ixgbe',
 	'mvpp2', 'null', 'octeontx', 'pcap', 'ring',
 	'sfc', 'thunderx', 'virtio']
Signature · 1 line
2.17.1
#26 lore raw

PATCH v2 5/15 net/cxgbe: add to meson build

In reply to Bruce Richardson
---
 drivers/net/cxgbe/meson.build | 11 +++++++++++
 drivers/net/meson.build       |  2 +-
 2 files changed, 12 insertions(+), 1 deletion(-)
 create mode 100644 drivers/net/cxgbe/meson.build
drivers/net/cxgbe/meson.build new file +11 -0
new file mode 100644
index 000000000..8196e8afb
@@ -0,0 +1,11 @@
+# SPDX-License-Identifier: BSD-3-Clause
+# Copyright(c) 2018 Intel Corporation
+
+sources = files('cxgbe_ethdev.c',
+	'cxgbe_main.c',
+	'cxgbevf_ethdev.c',
+	'cxgbevf_main.c',
+	'sge.c',
+	'base/t4_hw.c',
+	'base/t4vf_hw.c')
+includes += include_directories('base')
drivers/net/meson.build +1 -1
index d012c62fe..c55ca65a5 100644
@@ -3,7 +3,7 @@
 
 drivers = ['af_packet', 'ark', 'avp',
 	'axgbe', 'bonding', 'bnx2x',
-	'bnxt', 'dpaa', 'dpaa2',
+	'bnxt', 'cxgbe', 'dpaa', 'dpaa2',
 	'e1000', 'enic', 'fm10k', 'i40e', 'ixgbe',
 	'mvpp2', 'null', 'octeontx', 'pcap', 'ring',
 	'sfc', 'thunderx', 'virtio']
Signature · 1 line
2.17.1
#27 lore raw

Re: [PATCH v2 05/15] net/cxgbe: add to meson build

Quoted 14 lines · Bruce Richardson
---
 drivers/net/cxgbe/meson.build | 11 +++++++++++
 drivers/net/meson.build       |  2 +-
 2 files changed, 12 insertions(+), 1 deletion(-)
 create mode 100644 drivers/net/cxgbe/meson.build
drivers/net/cxgbe/meson.build new file +0 -0
new file mode 100644
index 000000000..8196e8afb

drivers/net/cxgbe/meson.build line 10

Quoted 10 lines
drivers/net/cxgbe/meson.build new file +10 -0
@@ -0,0 +1,11 @@
+# SPDX-License-Identifier: BSD-3-Clause
+# Copyright(c) 2018 Intel Corporation
+
+sources = files('cxgbe_ethdev.c',
+	'cxgbe_main.c',
+	'cxgbevf_ethdev.c',
+	'cxgbevf_main.c',
+	'sge.c',
+	'base/t4_hw.c',
+	'base/t4vf_hw.c')

Recently added files, in next-net commits, added while applying:
cxgbe_filter.c
cxgbe_flow.c

Quoted 15 lines
drivers/net/cxgbe/meson.build new file +1 -0
+includes += include_directories('base')
drivers/net/meson.build +1 -1
index d012c62fe..c55ca65a5 100644
@@ -3,7 +3,7 @@
 
 drivers = ['af_packet', 'ark', 'avp',
 	'axgbe', 'bonding', 'bnx2x',
-	'bnxt', 'dpaa', 'dpaa2',
+	'bnxt', 'cxgbe', 'dpaa', 'dpaa2',
 	'e1000', 'enic', 'fm10k', 'i40e', 'ixgbe',
 	'mvpp2', 'null', 'octeontx', 'pcap', 'ring',
 	'sfc', 'thunderx', 'virtio']
#28 lore raw

PATCH v2 6/15 net/ena: add to meson build

In reply to Bruce Richardson
CC Marcin Wojtas <[email protected]>
CC Michal Krawczyk <[email protected]>
CC Guy Tzalik <[email protected]>
CC Evgeny Schemeilin <[email protected]>
---
 drivers/net/ena/meson.build | 8 ++++++++
 drivers/net/meson.build     | 3 ++-
 2 files changed, 10 insertions(+), 1 deletion(-)
 create mode 100644 drivers/net/ena/meson.build
drivers/net/ena/meson.build new file +8 -0
new file mode 100644
index 000000000..542f29567
@@ -0,0 +1,8 @@
+# SPDX-License-Identifier: BSD-3-Clause
+# Copyright(c) 2018 Intel Corporation
+
+allow_experimental_apis = true
+sources = files('ena_ethdev.c',
+	'base/ena_com.c',
+	'base/ena_eth_com.c')
+includes += include_directories('base', 'base/ena_defs')
drivers/net/meson.build +2 -1
index c55ca65a5..d4c7d58ab 100644
@@ -4,7 +4,8 @@
 drivers = ['af_packet', 'ark', 'avp',
 	'axgbe', 'bonding', 'bnx2x',
 	'bnxt', 'cxgbe', 'dpaa', 'dpaa2',
-	'e1000', 'enic', 'fm10k', 'i40e', 'ixgbe',
+	'e1000', 'ena', 'enic',
+	'fm10k', 'i40e', 'ixgbe',
 	'mvpp2', 'null', 'octeontx', 'pcap', 'ring',
 	'sfc', 'thunderx', 'virtio']
 std_deps = ['ethdev', 'kvargs'] # 'ethdev' also pulls in mbuf, net, eal etc
Signature · 1 line
2.17.1
#29 lore raw

Re: [PATCH v2 06/15] net/ena: add to meson build

Quoted 17 lines · Bruce Richardson
CC Marcin Wojtas <[email protected]>
CC Michal Krawczyk <[email protected]>
CC Guy Tzalik <[email protected]>
CC Evgeny Schemeilin <[email protected]>
---
 drivers/net/ena/meson.build | 8 ++++++++
 drivers/net/meson.build     | 3 ++-
 2 files changed, 10 insertions(+), 1 deletion(-)
 create mode 100644 drivers/net/ena/meson.build
drivers/net/ena/meson.build new file +0 -0
new file mode 100644
index 000000000..542f29567

drivers/net/ena/meson.build line 7

Quoted 7 lines
drivers/net/ena/meson.build new file +7 -0
@@ -0,0 +1,8 @@
+# SPDX-License-Identifier: BSD-3-Clause
+# Copyright(c) 2018 Intel Corporation
+
+allow_experimental_apis = true
+sources = files('ena_ethdev.c',
+	'base/ena_com.c',
+	'base/ena_eth_com.c')

Added missing rte_timer dependency while merging:

deps += ['timer']

Quoted 16 lines
drivers/net/ena/meson.build new file +1 -0
+includes += include_directories('base', 'base/ena_defs')
drivers/net/meson.build +2 -1
index c55ca65a5..d4c7d58ab 100644
@@ -4,7 +4,8 @@
 drivers = ['af_packet', 'ark', 'avp',
 	'axgbe', 'bonding', 'bnx2x',
 	'bnxt', 'cxgbe', 'dpaa', 'dpaa2',
-	'e1000', 'enic', 'fm10k', 'i40e', 'ixgbe',
+	'e1000', 'ena', 'enic',
+	'fm10k', 'i40e', 'ixgbe',
 	'mvpp2', 'null', 'octeontx', 'pcap', 'ring',
 	'sfc', 'thunderx', 'virtio']
 std_deps = ['ethdev', 'kvargs'] # 'ethdev' also pulls in mbuf, net, eal etc
#30 lore raw

PATCH v2 7/15 net/failsafe: add to meson build

In reply to Bruce Richardson
---
 drivers/net/failsafe/meson.build | 23 +++++++++++++++++++++++
 drivers/net/meson.build          |  2 +-
 2 files changed, 24 insertions(+), 1 deletion(-)
 create mode 100644 drivers/net/failsafe/meson.build
drivers/net/failsafe/meson.build new file +23 -0
new file mode 100644
index 000000000..a249ff4af
@@ -0,0 +1,23 @@
+# SPDX-License-Identifier: BSD-3-Clause
+# Copyright(c) 2018 Intel Corporation
+
+cflags += '-std=gnu99'
+cflags += '-D_DEFAULT_SOURCE'
+cflags += '-D_XOPEN_SOURCE=700'
+cflags += '-pedantic'
+if host_machine.system() == 'linux'
+	cflags += '-DLINUX'
+else
+	cflags += '-DBSD'
+endif
+
+allow_experimental_apis = true
+
+sources = files('failsafe_args.c',
+	'failsafe.c',
+	'failsafe_eal.c',
+	'failsafe_ether.c',
+	'failsafe_flow.c',
+	'failsafe_intr.c',
+	'failsafe_ops.c',
+	'failsafe_rxtx.c')
drivers/net/meson.build +1 -1
index d4c7d58ab..decb1519a 100644
@@ -4,7 +4,7 @@
 drivers = ['af_packet', 'ark', 'avp',
 	'axgbe', 'bonding', 'bnx2x',
 	'bnxt', 'cxgbe', 'dpaa', 'dpaa2',
-	'e1000', 'ena', 'enic',
+	'e1000', 'ena', 'enic', 'failsafe',
 	'fm10k', 'i40e', 'ixgbe',
 	'mvpp2', 'null', 'octeontx', 'pcap', 'ring',
 	'sfc', 'thunderx', 'virtio']
Signature · 1 line
2.17.1
#31 lore raw

PATCH v2 8/15 net/ifc: rename to ifcvf

In reply to Bruce Richardson

All files in the directory and the resulting driver have prefix of ifcvf, not just ifc, so rename directory for accuracy. Also rename the map file to standard name for meson build in the process.

---
 MAINTAINERS                                                   | 4 ++--
 drivers/net/Makefile                                          | 2 +-
 drivers/net/{ifc => ifcvf}/Makefile                           | 2 +-
 drivers/net/{ifc => ifcvf}/base/ifcvf.c                       | 0
 drivers/net/{ifc => ifcvf}/base/ifcvf.h                       | 0
 drivers/net/{ifc => ifcvf}/base/ifcvf_osdep.h                 | 0
 drivers/net/{ifc => ifcvf}/ifcvf_vdpa.c                       | 0
 .../rte_ifcvf_version.map => ifcvf/rte_pmd_ifcvf_version.map} | 0
 8 files changed, 4 insertions(+), 4 deletions(-)
 rename drivers/net/{ifc => ifcvf}/Makefile (94%)
 rename drivers/net/{ifc => ifcvf}/base/ifcvf.c (100%)
 rename drivers/net/{ifc => ifcvf}/base/ifcvf.h (100%)
 rename drivers/net/{ifc => ifcvf}/base/ifcvf_osdep.h (100%)
 rename drivers/net/{ifc => ifcvf}/ifcvf_vdpa.c (100%)
 rename drivers/net/{ifc/rte_ifcvf_version.map => ifcvf/rte_pmd_ifcvf_version.map} (100%)
MAINTAINERS +2 -2
index 4667fa7fb..4f6055590 100644
@@ -559,10 +559,10 @@ T: git://dpdk.org/next/dpdk-next-net-intel
 F: drivers/net/avf/
 F: doc/guides/nics/features/avf*.ini
 
-Intel ifc
+Intel ifcvf
 M: Xiao Wang <[email protected]>
 T: git://dpdk.org/next/dpdk-next-net-intel
-F: drivers/net/ifc/
+F: drivers/net/ifcvf/
 F: doc/guides/nics/ifcvf.rst
 F: doc/guides/nics/features/ifcvf.ini
 
drivers/net/Makefile +1 -1
index 9f9da6651..9308f9a7b 100644
@@ -59,7 +59,7 @@ endif # $(CONFIG_RTE_LIBRTE_SCHED)
 ifeq ($(CONFIG_RTE_LIBRTE_VHOST),y)
 DIRS-$(CONFIG_RTE_LIBRTE_PMD_VHOST) += vhost
 ifeq ($(CONFIG_RTE_EAL_VFIO),y)
-DIRS-$(CONFIG_RTE_LIBRTE_IFCVF_VDPA_PMD) += ifc
+DIRS-$(CONFIG_RTE_LIBRTE_IFCVF_VDPA_PMD) += ifcvf
 endif
 endif # $(CONFIG_RTE_LIBRTE_VHOST)
 
drivers/net/ifcvf/Makefile renamed from drivers/net/ifc/Makefile +1 -1
similarity index 94%
rename from drivers/net/ifc/Makefile
rename to drivers/net/ifcvf/Makefile
index 1011995bc..a022faaad 100644
@@ -22,7 +22,7 @@ BASE_DRIVER_OBJS=$(sort $(patsubst %.c,%.o,$(notdir $(wildcard $(SRCDIR)/base/*.
 
 VPATH += $(SRCDIR)/base
 
-EXPORT_MAP := rte_ifcvf_version.map
+EXPORT_MAP := rte_pmd_ifcvf_version.map
 
 LIBABIVER := 1
 
drivers/net/ifcvf/base/ifcvf.c renamed from drivers/net/ifc/base/ifcvf.c +0 -0
similarity index 100%
rename from drivers/net/ifc/base/ifcvf.c
rename to drivers/net/ifcvf/base/ifcvf.c
drivers/net/ifcvf/base/ifcvf.h renamed from drivers/net/ifc/base/ifcvf.h +0 -0
similarity index 100%
rename from drivers/net/ifc/base/ifcvf.h
rename to drivers/net/ifcvf/base/ifcvf.h
drivers/net/ifcvf/base/ifcvf_osdep.h renamed from drivers/net/ifc/base/ifcvf_osdep.h +0 -0
similarity index 100%
rename from drivers/net/ifc/base/ifcvf_osdep.h
rename to drivers/net/ifcvf/base/ifcvf_osdep.h
drivers/net/ifcvf/ifcvf_vdpa.c renamed from drivers/net/ifc/ifcvf_vdpa.c +0 -0
similarity index 100%
rename from drivers/net/ifc/ifcvf_vdpa.c
rename to drivers/net/ifcvf/ifcvf_vdpa.c
drivers/net/ifcvf/rte_pmd_ifcvf_version.map renamed from drivers/net/ifc/rte_ifcvf_version.map +0 -0
similarity index 100%
rename from drivers/net/ifc/rte_ifcvf_version.map
rename to drivers/net/ifcvf/rte_pmd_ifcvf_version.map
Signature · 1 line
2.17.1
#32 lore raw

Re: [PATCH v2 08/15] net/ifc: rename to ifcvf

Hi Bruce,

Quoted 11 lines

-----Original Message-----
From: Richardson, Bruce
Sent: Saturday, June 9, 2018 5:21 AM
To: [email protected]
Cc: Richardson, Bruce <[email protected]>; Wang, Xiao W <[email protected]>
Subject: [PATCH v2 08/15] net/ifc: rename to ifcvf

All files in the directory and the resulting driver have prefix of ifcvf, not just ifc, so rename directory for accuracy. Also rename the map file to standard name for meson build in the process.

Compared with renaming the dir to IFCVF and renaming it back to IFC sometime in future, I think keeping the dir name as IFC is better for us, this avoids the extra effort. We can just rename below files:
doc/guides/nics/ifcvf.rst => doc/guides/nics/ifc.rst drivers/net/ifc/rte_ifcvf_version.map => drivers/net/ifc/rte_pmd_ifc_version.

And yes, we need to update documents which refer to ifc.

Thanks!
Xiao

Quoted 92 lines
---
 MAINTAINERS                                                   | 4 ++--
 drivers/net/Makefile                                          | 2 +-
 drivers/net/{ifc => ifcvf}/Makefile                           | 2 +-
 drivers/net/{ifc => ifcvf}/base/ifcvf.c                       | 0
 drivers/net/{ifc => ifcvf}/base/ifcvf.h                       | 0
 drivers/net/{ifc => ifcvf}/base/ifcvf_osdep.h                 | 0
 drivers/net/{ifc => ifcvf}/ifcvf_vdpa.c                       | 0
 .../rte_ifcvf_version.map => ifcvf/rte_pmd_ifcvf_version.map} | 0
 8 files changed, 4 insertions(+), 4 deletions(-)
 rename drivers/net/{ifc => ifcvf}/Makefile (94%)
 rename drivers/net/{ifc => ifcvf}/base/ifcvf.c (100%)
 rename drivers/net/{ifc => ifcvf}/base/ifcvf.h (100%)
 rename drivers/net/{ifc => ifcvf}/base/ifcvf_osdep.h (100%)
 rename drivers/net/{ifc => ifcvf}/ifcvf_vdpa.c (100%)
 rename drivers/net/{ifc/rte_ifcvf_version.map =>

ifcvf/rte_pmd_ifcvf_version.map} (100%)

MAINTAINERS +2 -2
index 4667fa7fb..4f6055590 100644
@@ -559,10 +559,10 @@ T: git://dpdk.org/next/dpdk-next-net-intel
 F: drivers/net/avf/
 F: doc/guides/nics/features/avf*.ini
 
-Intel ifc
+Intel ifcvf
 M: Xiao Wang <[email protected]>
 T: git://dpdk.org/next/dpdk-next-net-intel
-F: drivers/net/ifc/
+F: drivers/net/ifcvf/
 F: doc/guides/nics/ifcvf.rst
 F: doc/guides/nics/features/ifcvf.ini
 
drivers/net/Makefile +1 -1
index 9f9da6651..9308f9a7b 100644
@@ -59,7 +59,7 @@ endif # $(CONFIG_RTE_LIBRTE_SCHED)
 ifeq ($(CONFIG_RTE_LIBRTE_VHOST),y)
 DIRS-$(CONFIG_RTE_LIBRTE_PMD_VHOST) += vhost
 ifeq ($(CONFIG_RTE_EAL_VFIO),y)
-DIRS-$(CONFIG_RTE_LIBRTE_IFCVF_VDPA_PMD) += ifc
+DIRS-$(CONFIG_RTE_LIBRTE_IFCVF_VDPA_PMD) += ifcvf
 endif
 endif # $(CONFIG_RTE_LIBRTE_VHOST)
 
drivers/net/ifcvf/Makefile renamed from drivers/net/ifc/Makefile +0 -0
similarity index 94%
rename from drivers/net/ifc/Makefile
rename to drivers/net/ifcvf/Makefile
index 1011995bc..a022faaad 100644
@@ -22,7 +22,7 @@ BASE_DRIVER_OBJS=$(sort $(patsubst %.c,%.o,$(notdir

$(wildcard $(SRCDIR)/base/*.

VPATH += $(SRCDIR)/base

drivers/net/ifcvf/Makefile renamed from drivers/net/ifc/Makefile +1 -1
-EXPORT_MAP := rte_ifcvf_version.map
+EXPORT_MAP := rte_pmd_ifcvf_version.map
 
 LIBABIVER := 1
drivers/net/ifcvf/base/ifcvf.c renamed from drivers/net/ifc/base/ifcvf.c +0 -0
similarity index 100%
rename from drivers/net/ifc/base/ifcvf.c
rename to drivers/net/ifcvf/base/ifcvf.c
drivers/net/ifcvf/base/ifcvf.h renamed from drivers/net/ifc/base/ifcvf.h +0 -0
similarity index 100%
rename from drivers/net/ifc/base/ifcvf.h
rename to drivers/net/ifcvf/base/ifcvf.h
drivers/net/ifcvf/base/ifcvf_osdep.h renamed from drivers/net/ifc/base/ifcvf_osdep.h +0 -0
similarity index 100%
rename from drivers/net/ifc/base/ifcvf_osdep.h
rename to drivers/net/ifcvf/base/ifcvf_osdep.h
drivers/net/ifcvf/ifcvf_vdpa.c renamed from drivers/net/ifc/ifcvf_vdpa.c +0 -0
similarity index 100%
rename from drivers/net/ifc/ifcvf_vdpa.c
rename to drivers/net/ifcvf/ifcvf_vdpa.c
drivers/net/ifcvf/rte_pmd_ifcvf_version.map renamed from drivers/net/ifc/rte_ifcvf_version.map +0 -1
similarity index 100%
rename from drivers/net/ifc/rte_ifcvf_version.map
rename to drivers/net/ifcvf/rte_pmd_ifcvf_version.map
--

2.17.1

#33 lore raw

Re: [PATCH v2 08/15] net/ifc: rename to ifcvf

Quoted 20 lines · Xiao W

Hi Bruce,

Quoted 11 lines

-----Original Message-----
From: Richardson, Bruce
Sent: Saturday, June 9, 2018 5:21 AM
To: [email protected]
Cc: Richardson, Bruce <[email protected]>; Wang, Xiao W <[email protected]>
Subject: [PATCH v2 08/15] net/ifc: rename to ifcvf

All files in the directory and the resulting driver have prefix of ifcvf, not just ifc, so rename directory for accuracy. Also rename the map file to standard name for meson build in the process.

Compared with renaming the dir to IFCVF and renaming it back to IFC sometime in future, I think keeping the dir name as IFC is better for us, this avoids the extra effort. We can just rename below files:
doc/guides/nics/ifcvf.rst => doc/guides/nics/ifc.rst drivers/net/ifc/rte_ifcvf_version.map => drivers/net/ifc/rte_pmd_ifc_version.

Quoted 5 lines

And yes, we need to update documents which refer to ifc.

Thanks!
Xiao

Ok, that can work.

#34 lore raw

PATCH v2 9/15 net/ifcvf: add to meson build

In reply to Bruce Richardson
---
 drivers/net/ifcvf/meson.build | 7 +++++++
 drivers/net/meson.build       | 2 +-
 2 files changed, 8 insertions(+), 1 deletion(-)
 create mode 100644 drivers/net/ifcvf/meson.build
drivers/net/ifcvf/meson.build new file +7 -0
new file mode 100644
index 000000000..a30aa09e6
@@ -0,0 +1,7 @@
+# SPDX-License-Identifier: BSD-3-Clause
+# Copyright(c) 2018 Intel Corporation
+
+allow_experimental_apis = true
+sources = files('ifcvf_vdpa.c', 'base/ifcvf.c')
+includes += include_directories('base')
+deps += 'vhost'
drivers/net/meson.build +1 -1
index decb1519a..c983f90b1 100644
@@ -5,7 +5,7 @@ drivers = ['af_packet', 'ark', 'avp',
 	'axgbe', 'bonding', 'bnx2x',
 	'bnxt', 'cxgbe', 'dpaa', 'dpaa2',
 	'e1000', 'ena', 'enic', 'failsafe',
-	'fm10k', 'i40e', 'ixgbe',
+	'fm10k', 'i40e', 'ifcvf', 'ixgbe',
 	'mvpp2', 'null', 'octeontx', 'pcap', 'ring',
 	'sfc', 'thunderx', 'virtio']
 std_deps = ['ethdev', 'kvargs'] # 'ethdev' also pulls in mbuf, net, eal etc
Signature · 1 line
2.17.1
#35 lore raw

PATCH v2 10/15 net/kni: add to meson build

In reply to Bruce Richardson

Since the kni library is an optional library, we need to add a check here to ensure that the kni wrapper PMD is only built when the main kni lib is being built.

---
 drivers/net/kni/meson.build | 8 ++++++++
 drivers/net/meson.build     | 3 ++-
 2 files changed, 10 insertions(+), 1 deletion(-)
 create mode 100644 drivers/net/kni/meson.build
drivers/net/kni/meson.build new file +8 -0
new file mode 100644
index 000000000..77468188b
@@ -0,0 +1,8 @@
+# SPDX-License-Identifier: BSD-3-Clause
+# Copyright(c) 2018 Intel Corporation
+
+# this driver can be built if-and-only-if KNI library is buildable
+build = dpdk_conf.has('LIB_LIBRTE_KNI')
+allow_experimental_apis = true
+sources = files('rte_eth_kni.c')
+deps += 'kni'
drivers/net/meson.build +2 -1
index c983f90b1..213fe734c 100644
@@ -6,7 +6,8 @@ drivers = ['af_packet', 'ark', 'avp',
 	'bnxt', 'cxgbe', 'dpaa', 'dpaa2',
 	'e1000', 'ena', 'enic', 'failsafe',
 	'fm10k', 'i40e', 'ifcvf', 'ixgbe',
-	'mvpp2', 'null', 'octeontx', 'pcap', 'ring',
+	'kni', 'mvpp2', 'null',
+	'octeontx', 'pcap', 'ring',
 	'sfc', 'thunderx', 'virtio']
 std_deps = ['ethdev', 'kvargs'] # 'ethdev' also pulls in mbuf, net, eal etc
 std_deps += ['bus_pci']         # very many PMDs depend on PCI, so make std
Signature · 1 line
2.17.1
#36 lore raw

PATCH v2 11/15 net/liquidio: add to meson build

In reply to Bruce Richardson
---
 drivers/net/liquidio/Makefile                             | 2 +-
 drivers/net/liquidio/meson.build                          | 8 ++++++++
 ...e_pmd_lio_version.map => rte_pmd_liquidio_version.map} | 0
 drivers/net/meson.build                                   | 2 +-
 4 files changed, 10 insertions(+), 2 deletions(-)
 create mode 100644 drivers/net/liquidio/meson.build
 rename drivers/net/liquidio/{rte_pmd_lio_version.map => rte_pmd_liquidio_version.map} (100%)
drivers/net/liquidio/Makefile +1 -1
index fc5f18ad6..f1092851a 100644
@@ -15,7 +15,7 @@ LDLIBS += -lrte_eal -lrte_mbuf -lrte_mempool -lrte_ring
 LDLIBS += -lrte_ethdev -lrte_net -lrte_kvargs
 LDLIBS += -lrte_bus_pci
 
-EXPORT_MAP := rte_pmd_lio_version.map
+EXPORT_MAP := rte_pmd_liquidio_version.map
 
 LIBABIVER := 1
 
drivers/net/liquidio/meson.build new file +8 -0
new file mode 100644
index 000000000..9ae48e213
@@ -0,0 +1,8 @@
+# SPDX-License-Identifier: BSD-3-Clause
+# Copyright(c) 2018 Intel Corporation
+
+sources = files('base/lio_23xx_vf.c',
+	'base/lio_mbox.c',
+	'lio_ethdev.c',
+	'lio_rxtx.c')
+includes += include_directories('base')
drivers/net/liquidio/rte_pmd_liquidio_version.map renamed from drivers/net/liquidio/rte_pmd_lio_version.map +0 -0
similarity index 100%
rename from drivers/net/liquidio/rte_pmd_lio_version.map
rename to drivers/net/liquidio/rte_pmd_liquidio_version.map
drivers/net/meson.build +1 -1
index 213fe734c..9faed7d61 100644
@@ -6,7 +6,7 @@ drivers = ['af_packet', 'ark', 'avp',
 	'bnxt', 'cxgbe', 'dpaa', 'dpaa2',
 	'e1000', 'ena', 'enic', 'failsafe',
 	'fm10k', 'i40e', 'ifcvf', 'ixgbe',
-	'kni', 'mvpp2', 'null',
+	'kni', 'liquidio', 'mvpp2', 'null',
 	'octeontx', 'pcap', 'ring',
 	'sfc', 'thunderx', 'virtio']
 std_deps = ['ethdev', 'kvargs'] # 'ethdev' also pulls in mbuf, net, eal etc
Signature · 1 line
2.17.1
#37 lore raw

PATCH v2 12/15 net/nfp: add to meson build

In reply to Bruce Richardson
---
 drivers/net/meson.build     |  2 +-
 drivers/net/nfp/meson.build | 16 ++++++++++++++++
 2 files changed, 17 insertions(+), 1 deletion(-)
 create mode 100644 drivers/net/nfp/meson.build
drivers/net/meson.build +1 -1
index 9faed7d61..9714491d1 100644
@@ -6,7 +6,7 @@ drivers = ['af_packet', 'ark', 'avp',
 	'bnxt', 'cxgbe', 'dpaa', 'dpaa2',
 	'e1000', 'ena', 'enic', 'failsafe',
 	'fm10k', 'i40e', 'ifcvf', 'ixgbe',
-	'kni', 'liquidio', 'mvpp2', 'null',
+	'kni', 'liquidio', 'mvpp2', 'nfp', 'null',
 	'octeontx', 'pcap', 'ring',
 	'sfc', 'thunderx', 'virtio']
 std_deps = ['ethdev', 'kvargs'] # 'ethdev' also pulls in mbuf, net, eal etc
drivers/net/nfp/meson.build new file +16 -0
new file mode 100644
index 000000000..3ba37e279
@@ -0,0 +1,16 @@
+# SPDX-License-Identifier: BSD-3-Clause
+# Copyright(c) 2018 Intel Corporation
+
+sources = files('nfpcore/nfp_cpp_pcie_ops.c',
+	'nfpcore/nfp_nsp.c',
+	'nfpcore/nfp_cppcore.c',
+	'nfpcore/nfp_resource.c',
+	'nfpcore/nfp_mip.c',
+	'nfpcore/nfp_nffw.c',
+	'nfpcore/nfp_rtsym.c',
+	'nfpcore/nfp_nsp_cmds.c',
+	'nfpcore/nfp_crc.c',
+	'nfpcore/nfp_mutex.c',
+	'nfpcore/nfp_nsp_eth.c',
+	'nfpcore/nfp_hwinfo.c',
+	'nfp_net.c')
Signature · 1 line
2.17.1
#38 lore raw

PATCH v2 13/15 net/softnic: add to meson build

In reply to Bruce Richardson
CC Jasvinder Singh <[email protected]>
CC Cristian Dumitrescu <[email protected]>
---
 drivers/net/meson.build                                    | 3 ++-
 drivers/net/softnic/Makefile                               | 2 +-
 drivers/net/softnic/meson.build                            | 7 +++++++
 ...eth_softnic_version.map => rte_pmd_softnic_version.map} | 0
 4 files changed, 10 insertions(+), 2 deletions(-)
 create mode 100644 drivers/net/softnic/meson.build
 rename drivers/net/softnic/{rte_pmd_eth_softnic_version.map => rte_pmd_softnic_version.map} (100%)
drivers/net/meson.build +2 -1
index 9714491d1..9cec3f884 100644
@@ -8,7 +8,8 @@ drivers = ['af_packet', 'ark', 'avp',
 	'fm10k', 'i40e', 'ifcvf', 'ixgbe',
 	'kni', 'liquidio', 'mvpp2', 'nfp', 'null',
 	'octeontx', 'pcap', 'ring',
-	'sfc', 'thunderx', 'virtio']
+	'sfc', 'softnic',
+	'thunderx', 'virtio']
 std_deps = ['ethdev', 'kvargs'] # 'ethdev' also pulls in mbuf, net, eal etc
 std_deps += ['bus_pci']         # very many PMDs depend on PCI, so make std
 std_deps += ['bus_vdev']        # same with vdev bus
drivers/net/softnic/Makefile +1 -1
index d56fecd62..97ac88411 100644
@@ -14,7 +14,7 @@ LDLIBS += -lrte_eal -lrte_mbuf -lrte_mempool -lrte_ring
 LDLIBS += -lrte_ethdev -lrte_net -lrte_kvargs -lrte_sched
 LDLIBS += -lrte_bus_vdev
 
-EXPORT_MAP := rte_pmd_eth_softnic_version.map
+EXPORT_MAP := rte_pmd_softnic_version.map
 
 LIBABIVER := 1
 
drivers/net/softnic/meson.build new file +7 -0
new file mode 100644
index 000000000..41059da8b
@@ -0,0 +1,7 @@
+# SPDX-License-Identifier: BSD-3-Clause
+# Copyright(c) 2018 Intel Corporation
+
+install_headers('rte_eth_softnic.h')
+sources = files('rte_eth_softnic_tm.c',
+	'rte_eth_softnic.c')
+deps += 'sched'
drivers/net/softnic/rte_pmd_softnic_version.map renamed from drivers/net/softnic/rte_pmd_eth_softnic_version.map +0 -0
similarity index 100%
rename from drivers/net/softnic/rte_pmd_eth_softnic_version.map
rename to drivers/net/softnic/rte_pmd_softnic_version.map
Signature · 1 line
2.17.1
#39 lore raw

PATCH v2 14/15 net/szedata2: add to meson build

In reply to Bruce Richardson
---
 drivers/net/meson.build          | 2 +-
 drivers/net/szedata2/meson.build | 7 +++++++
 2 files changed, 8 insertions(+), 1 deletion(-)
 create mode 100644 drivers/net/szedata2/meson.build
drivers/net/meson.build +1 -1
index 9cec3f884..c7e18a696 100644
@@ -8,7 +8,7 @@ drivers = ['af_packet', 'ark', 'avp',
 	'fm10k', 'i40e', 'ifcvf', 'ixgbe',
 	'kni', 'liquidio', 'mvpp2', 'nfp', 'null',
 	'octeontx', 'pcap', 'ring',
-	'sfc', 'softnic',
+	'sfc', 'softnic', 'szedata2',
 	'thunderx', 'virtio']
 std_deps = ['ethdev', 'kvargs'] # 'ethdev' also pulls in mbuf, net, eal etc
 std_deps += ['bus_pci']         # very many PMDs depend on PCI, so make std
drivers/net/szedata2/meson.build new file +7 -0
new file mode 100644
index 000000000..da3733743
@@ -0,0 +1,7 @@
+# SPDX-License-Identifier: BSD-3-Clause
+# Copyright(c) 2018 Intel Corporation
+
+dep = cc.find_library('sze2', required: false)
+build = dep.found()
+ext_deps += dep
+sources = files('rte_eth_szedata2.c')
Signature · 1 line
2.17.1
#40 lore raw

PATCH v2 15/15 net/vhost: add to meson build

In reply to Bruce Richardson
CC Tetsuya Mukawa <[email protected]>
CC Maxime Coquelin <[email protected]>
---
 drivers/net/meson.build       | 2 +-
 drivers/net/vhost/meson.build | 7 +++++++
 2 files changed, 8 insertions(+), 1 deletion(-)
 create mode 100644 drivers/net/vhost/meson.build
drivers/net/meson.build +1 -1
index c7e18a696..aef5ef6c0 100644
@@ -9,7 +9,7 @@ drivers = ['af_packet', 'ark', 'avp',
 	'kni', 'liquidio', 'mvpp2', 'nfp', 'null',
 	'octeontx', 'pcap', 'ring',
 	'sfc', 'softnic', 'szedata2',
-	'thunderx', 'virtio']
+	'thunderx', 'vhost', 'virtio']
 std_deps = ['ethdev', 'kvargs'] # 'ethdev' also pulls in mbuf, net, eal etc
 std_deps += ['bus_pci']         # very many PMDs depend on PCI, so make std
 std_deps += ['bus_vdev']        # same with vdev bus
drivers/net/vhost/meson.build new file +7 -0
new file mode 100644
index 000000000..a8f77e1ab
@@ -0,0 +1,7 @@
+# SPDX-License-Identifier: BSD-3-Clause
+# Copyright(c) 2018 Intel Corporation
+
+version = 2
+sources = files('rte_eth_vhost.c')
+install_headers('rte_eth_vhost.h')
+deps += 'vhost'
Signature · 1 line
2.17.1
#41 lore raw
In reply to Bruce Richardson
Quoted 6 lines · Bruce Richardson

A number of net drivers require pretty minimal meson.build files to build successfully with meson. This set adds support for 14 net drivers to the build.

V2: Small change to net/kni patch to ensure 32-bit builds ok.

Quoted 16 lines

Bruce Richardson (15):
net/ark: add to meson build
net/avp: add to meson build
net/bnx2x: add to meson build
net/bnxt: add to meson build
net/cxgbe: add to meson build
net/ena: add to meson build
net/failsafe: add to meson build
net/ifc: rename to ifcvf
net/ifcvf: add to meson build
net/kni: add to meson build
net/liquidio: add to meson build
net/nfp: add to meson build
net/softnic: add to meson build
net/szedata2: add to meson build
net/vhost: add to meson build

Series applied to dpdk-next-net/master, thanks.

With exceptions:

- 8/15, 9/16 dropped from set. They replaced with:
https://dpdk.org/dev/patchwork/patch/41030/
https://dpdk.org/dev/patchwork/patch/41029/

- driver list in drivers/net/meson.build serialized while applying

- updates on 5/15 & 6/15 while merging, commented on patches

Reviewed-by on the v2 series
#42 lore raw
In reply to Bruce Richardson
Quoted 6 lines · Bruce Richardson

A number of net drivers require pretty minimal meson.build files to build successfully with meson. This set adds support for 14 net drivers to the build.

V2: Small change to net/kni patch to ensure 32-bit builds ok.

Quoted 16 lines

Bruce Richardson (15):
net/ark: add to meson build
net/avp: add to meson build
net/bnx2x: add to meson build
net/bnxt: add to meson build
net/cxgbe: add to meson build
net/ena: add to meson build
net/failsafe: add to meson build
net/ifc: rename to ifcvf
net/ifcvf: add to meson build
net/kni: add to meson build
net/liquidio: add to meson build
net/nfp: add to meson build
net/softnic: add to meson build
net/szedata2: add to meson build
net/vhost: add to meson build

For series: