drivers: change indentation in build files

Switch from using tabs to 4 spaces for meson.build indentation.

Signed-off-by: Bruce Richardson <bruce.richardson@intel.com>
This commit is contained in:
Bruce Richardson 2021-04-20 11:22:25 +01:00 committed by Thomas Monjalon
parent cf995efc53
commit 4ad4b20a79
134 changed files with 1974 additions and 1872 deletions

View File

@ -7,7 +7,8 @@ if not is_linux
endif
deps += ['common_dpaax', 'eventdev']
sources = files('base/fman/fman.c',
sources = files(
'base/fman/fman.c',
'base/fman/fman_hw.c',
'base/fman/netcfg_layer.c',
'base/qbman/bman.c',
@ -17,7 +18,8 @@ sources = files('base/fman/fman.c',
'base/qbman/process.c',
'base/qbman/qman.c',
'base/qbman/qman_driver.c',
'dpaa_bus.c')
'dpaa_bus.c',
)
if cc.has_argument('-Wno-cast-qual')
cflags += '-Wno-cast-qual'

View File

@ -7,7 +7,8 @@ if not is_linux
endif
deps += ['common_dpaax', 'eventdev', 'kvargs']
sources = files('fslmc_bus.c',
sources = files(
'fslmc_bus.c',
'fslmc_vfio.c',
'mc/dpbp.c',
'mc/dpci.c',
@ -20,6 +21,7 @@ sources = files('fslmc_bus.c',
'portal/dpaa2_hw_dpci.c',
'portal/dpaa2_hw_dpio.c',
'qbman/qbman_portal.c',
'qbman/qbman_debug.c')
'qbman/qbman_debug.c'
)
includes += include_directories('mc', 'qbman/include', 'portal')

View File

@ -6,20 +6,26 @@ headers = files('rte_bus_pci.h')
sources = files('pci_common.c',
'pci_params.c')
if is_linux
sources += files('pci_common_uio.c',
sources += files(
'pci_common_uio.c',
'linux/pci.c',
'linux/pci_uio.c',
'linux/pci_vfio.c')
'linux/pci_vfio.c',
)
includes += include_directories('linux')
endif
if is_freebsd
sources += files('pci_common_uio.c',
'bsd/pci.c')
sources += files(
'pci_common_uio.c',
'bsd/pci.c',
)
includes += include_directories('bsd')
endif
if is_windows
sources += files('windows/pci.c',
'windows/pci_netuio.c')
sources += files(
'windows/pci.c',
'windows/pci_netuio.c',
)
includes += include_directories('windows')
endif

View File

@ -1,8 +1,10 @@
# SPDX-License-Identifier: BSD-3-Clause
# Copyright(c) 2017 Intel Corporation
sources = files('vdev.c',
'vdev_params.c')
sources = files(
'vdev.c',
'vdev_params.c',
)
headers = files('rte_bus_vdev.h')
deps += ['kvargs']

View File

@ -9,10 +9,12 @@ endif
headers = files('rte_bus_vmbus.h','rte_vmbus_reg.h')
sources = files('vmbus_common.c',
'vmbus_channel.c',
sources = files(
'vmbus_bufring.c',
'vmbus_common_uio.c')
'vmbus_channel.c',
'vmbus_common.c',
'vmbus_common_uio.c',
)
if is_linux
sources += files('linux/vmbus_bus.c',

View File

@ -10,7 +10,8 @@ endif
config_flag_fmt = 'RTE_LIBRTE_@0@_COMMON'
deps = ['eal', 'pci', 'bus_pci', 'mbuf']
sources = files('roc_dev.c',
sources = files(
'roc_dev.c',
'roc_idev.c',
'roc_irq.c',
'roc_mbox.c',
@ -44,5 +45,6 @@ sources = files('roc_dev.c',
'roc_sso_irq.c',
'roc_tim.c',
'roc_tim_irq.c',
'roc_utils.c')
'roc_utils.c',
)
includes += include_directories('../../bus/pci')

View File

@ -7,8 +7,7 @@ if is_windows
subdir_done()
endif
sources = files('cpt_fpm_tables.c',
'cpt_pmd_ops_helper.c')
sources = files('cpt_fpm_tables.c', 'cpt_pmd_ops_helper.c')
deps = ['kvargs', 'pci', 'cryptodev']
includes += include_directories('../../crypto/octeontx')

View File

@ -19,8 +19,7 @@ endif
libnames = [ 'mlx5', 'ibverbs' ]
libs = []
foreach libname:libnames
lib = dependency('lib' + libname, static:static_ibverbs,
required:false, method: 'pkg-config')
lib = dependency('lib' + libname, static:static_ibverbs, required:false, method: 'pkg-config')
if not lib.found() and not static_ibverbs
lib = cc.find_library(libname, required:false)
endif
@ -191,13 +190,11 @@ has_sym_args = [
]
config = configuration_data()
foreach arg:has_sym_args
config.set(arg[0], cc.has_header_symbol(arg[1], arg[2],
dependencies: libs))
config.set(arg[0], cc.has_header_symbol(arg[1], arg[2], dependencies: libs))
endforeach
foreach arg:has_member_args
file_prefix = '#include <' + arg[1] + '>'
config.set(arg[0], cc.has_member(arg[2], arg[3],
prefix : file_prefix, dependencies: libs))
config.set(arg[0], cc.has_member(arg[2], arg[3], prefix : file_prefix, dependencies: libs))
endforeach
configure_file(output : 'mlx5_autoconf.h', configuration : config)
@ -209,9 +206,7 @@ if dlopen_ibverbs
dlopen_sources = files('mlx5_glue.c')
dlopen_install_dir = [ eal_pmd_path + '-glue' ]
dlopen_includes = [global_inc]
dlopen_includes += include_directories(
'../../../../lib/librte_eal/include/generic',
)
dlopen_includes += include_directories('../../../../lib/librte_eal/include/generic')
shared_lib = shared_library(
dlopen_lib_name,
dlopen_sources,

View File

@ -27,7 +27,7 @@ cflags_options = [
'-Wno-strict-prototypes',
'-D_BSD_SOURCE',
'-D_DEFAULT_SOURCE',
'-D_XOPEN_SOURCE=600'
'-D_XOPEN_SOURCE=600',
]
foreach option:cflags_options
if cc.has_argument(option)

View File

@ -14,13 +14,17 @@ if not dpdk_conf.get('RTE_ARCH_64')
subdir_done()
endif
sources= files('otx2_dev.c',
sources= files(
'otx2_common.c',
'otx2_dev.c',
'otx2_irq.c',
'otx2_mbox.c',
'otx2_common.c',
'otx2_sec_idev.c',
)
)
deps = ['eal', 'pci', 'ethdev', 'kvargs']
includes += include_directories('../../common/octeontx2',
'../../mempool/octeontx2', '../../bus/pci')
includes += include_directories(
'../../common/octeontx2',
'../../mempool/octeontx2',
'../../bus/pci',
)

View File

@ -44,13 +44,17 @@ if not qat_compress # and not qat_crypto
endif
deps += ['bus_pci', 'cryptodev', 'net', 'compressdev']
sources += files('qat_common.c',
sources += files(
'qat_common.c',
'qat_qp.c',
'qat_device.c',
'qat_logs.c')
includes += include_directories('qat_adf',
'qat_logs.c',
)
includes += include_directories(
'qat_adf',
qat_crypto_relpath,
qat_compress_relpath)
qat_compress_relpath,
)
if qat_compress
foreach f: ['qat_comp_pmd.c', 'qat_comp.c']

View File

@ -17,4 +17,4 @@ sources = files(
'bcmfs_sym_session.c',
'bcmfs_sym.c',
'bcmfs_sym_engine.c'
)
)

View File

@ -7,10 +7,12 @@ if not is_linux
endif
deps += ['bus_vdev', 'bus_dpaa', 'security']
sources = files('caam_jr_capabilities.c',
sources = files(
'caam_jr_capabilities.c',
'caam_jr_hw.c',
'caam_jr_uio.c',
'caam_jr.c')
'caam_jr.c',
)
includes += include_directories('../../bus/dpaa/include/')
includes += include_directories('../../common/dpaax/')

View File

@ -13,10 +13,12 @@ endif
deps += 'bus_vdev'
deps += 'bus_pci'
sources = files('rte_ccp_pmd.c',
sources = files(
'rte_ccp_pmd.c',
'ccp_crypto.c',
'ccp_dev.c',
'ccp_pci.c',
'ccp_pmd_ops.c')
'ccp_pmd_ops.c',
)
ext_deps += dep

View File

@ -7,7 +7,9 @@ if not is_linux
endif
deps += ['security', 'mempool_dpaa2']
sources = files('dpaa2_sec_dpseci.c',
'mc/dpseci.c')
sources = files(
'dpaa2_sec_dpseci.c',
'mc/dpseci.c',
)
includes += include_directories('mc', '../../common/dpaax', '../../common/dpaax/caamflib')

View File

@ -15,4 +15,4 @@ sources = files(
'nitrox_sym_capabilities.c',
'nitrox_sym_reqmgr.c',
'nitrox_qp.c'
)
)

View File

@ -8,10 +8,12 @@ endif
deps += ['bus_pci']
deps += ['common_cpt']
sources = files('otx_cryptodev.c',
sources = files(
'otx_cryptodev.c',
'otx_cryptodev_capabilities.c',
'otx_cryptodev_hw_access.c',
'otx_cryptodev_mbox.c',
'otx_cryptodev_ops.c')
'otx_cryptodev_ops.c',
)
includes += include_directories('../../common/cpt')

View File

@ -14,12 +14,14 @@ deps += ['ethdev']
deps += ['eventdev']
deps += ['security']
sources = files('otx2_cryptodev.c',
sources = files(
'otx2_cryptodev.c',
'otx2_cryptodev_capabilities.c',
'otx2_cryptodev_hw_access.c',
'otx2_cryptodev_mbox.c',
'otx2_cryptodev_ops.c',
'otx2_cryptodev_sec.c')
'otx2_cryptodev_sec.c',
)
includes += include_directories('../../common/cpt')
includes += include_directories('../../common/octeontx2')

View File

@ -12,12 +12,14 @@ qat_deps += 'net'
qat_deps += 'security'
if dep.found()
# Add our sources files to the list
qat_sources += files('qat_sym_pmd.c',
'qat_sym.c',
'qat_sym_session.c',
'qat_sym_hw_dp.c',
qat_sources += files(
'qat_asym.c',
'qat_asym_pmd.c',
'qat_asym.c')
'qat_sym.c',
'qat_sym_hw_dp.c',
'qat_sym_pmd.c',
'qat_sym_session.c',
)
qat_ext_deps += dep
qat_cflags += '-DBUILD_QAT_SYM'
qat_cflags += '-DBUILD_QAT_ASYM'

View File

@ -3,5 +3,9 @@
includes += include_directories('../../../lib/librte_vhost')
deps += 'bus_pci'
sources = files('virtio_cryptodev.c', 'virtio_pci.c',
'virtio_rxtx.c', 'virtqueue.c')
sources = files(
'virtio_cryptodev.c',
'virtio_pci.c',
'virtio_rxtx.c',
'virtqueue.c',
)

View File

@ -8,14 +8,15 @@ if not is_linux or not dpdk_conf.has('RTE_ARCH_X86_64')
subdir_done()
endif
sources = files('dlb2.c',
sources = files(
'dlb2.c',
'dlb2_iface.c',
'dlb2_xstats.c',
'pf/dlb2_main.c',
'pf/dlb2_pf.c',
'pf/base/dlb2_resource.c',
'rte_pmd_dlb2.c',
'dlb2_selftest.c'
'dlb2_selftest.c',
)
headers = files('rte_pmd_dlb2.h')

View File

@ -6,8 +6,10 @@ if not is_linux
reason = 'only supported on Linux'
endif
deps += ['bus_vdev', 'net_dpaa2', 'crypto_dpaa2_sec']
sources = files('dpaa2_hw_dpcon.c',
sources = files(
'dpaa2_hw_dpcon.c',
'dpaa2_eventdev.c',
'dpaa2_eventdev_selftest.c')
'dpaa2_eventdev_selftest.c',
)
includes += include_directories('../../crypto/dpaa2_sec/')

View File

@ -1,13 +1,14 @@
# SPDX-License-Identifier: BSD-3-Clause
# Copyright(c) 2017 Cavium, Inc
sources = files('ssovf_worker.c',
sources = files(
'ssovf_worker.c',
'ssovf_evdev.c',
'ssovf_evdev_selftest.c',
'ssovf_probe.c',
'timvf_worker.c',
'timvf_evdev.c',
'timvf_probe.c'
'timvf_probe.c',
)
deps += ['common_octeontx', 'mempool_octeontx', 'bus_vdev', 'net_octeontx']

View File

@ -8,7 +8,8 @@ if not dpdk_conf.get('RTE_ARCH_64')
subdir_done()
endif
sources = files('otx2_worker.c',
sources = files(
'otx2_worker.c',
'otx2_worker_dual.c',
'otx2_evdev.c',
'otx2_evdev_adptr.c',
@ -16,8 +17,8 @@ sources = files('otx2_worker.c',
'otx2_evdev_irq.c',
'otx2_evdev_selftest.c',
'otx2_tim_evdev.c',
'otx2_tim_worker.c'
)
'otx2_tim_worker.c',
)
deps += ['bus_pci', 'common_octeontx2', 'crypto_octeontx2', 'mempool_octeontx2', 'net_octeontx2']

View File

@ -1,10 +1,11 @@
# SPDX-License-Identifier: BSD-3-Clause
# Copyright(c) 2017 Intel Corporation
sources = files('sw_evdev_scheduler.c',
sources = files(
'sw_evdev_scheduler.c',
'sw_evdev_selftest.c',
'sw_evdev_worker.c',
'sw_evdev_xstats.c',
'sw_evdev.c'
'sw_evdev.c',
)
deps += ['hash', 'bus_vdev']

View File

@ -8,9 +8,11 @@ if not is_linux or not dpdk_conf.get('RTE_ARCH_64')
subdir_done()
endif
sources = files('cnxk_mempool.c',
sources = files(
'cnxk_mempool.c',
'cnxk_mempool_ops.c',
'cn9k_mempool_ops.c',
'cn10k_mempool_ops.c')
'cn10k_mempool_ops.c',
)
deps += ['eal', 'mbuf', 'kvargs', 'bus_pci', 'common_cnxk', 'mempool']

View File

@ -6,8 +6,9 @@ if is_windows
reason = 'not supported on Windows'
endif
sources = files('octeontx_fpavf.c',
'rte_mempool_octeontx.c'
sources = files(
'octeontx_fpavf.c',
'rte_mempool_octeontx.c',
)
deps += ['mbuf', 'bus_pci', 'common_octeontx']

View File

@ -13,10 +13,11 @@ if not dpdk_conf.get('RTE_ARCH_64')
subdir_done()
endif
sources = files('otx2_mempool_ops.c',
sources = files(
'otx2_mempool.c',
'otx2_mempool_debug.c',
'otx2_mempool_irq.c',
'otx2_mempool_debug.c'
)
'otx2_mempool_ops.c',
)
deps += ['eal', 'mbuf', 'kvargs', 'bus_pci', 'common_octeontx2', 'mempool']

View File

@ -7,7 +7,8 @@ if is_windows
subdir_done()
endif
sources = files('ark_ddm.c',
sources = files(
'ark_ddm.c',
'ark_ethdev.c',
'ark_ethdev_rx.c',
'ark_ethdev_tx.c',
@ -16,4 +17,5 @@ sources = files('ark_ddm.c',
'ark_pktdir.c',
'ark_pktgen.c',
'ark_rqp.c',
'ark_udm.c')
'ark_udm.c',
)

View File

@ -6,12 +6,14 @@ if not is_linux
reason = 'only supported on Linux'
endif
sources = files('axgbe_ethdev.c',
sources = files(
'axgbe_ethdev.c',
'axgbe_dev.c',
'axgbe_mdio.c',
'axgbe_phy_impl.c',
'axgbe_i2c.c',
'axgbe_rxtx.c')
'axgbe_rxtx.c',
)
cflags += '-Wno-cast-qual'

View File

@ -12,10 +12,12 @@ build = dep.found()
reason = 'missing dependency, "zlib"'
ext_deps += dep
cflags += '-DZLIB_CONST'
sources = files('bnx2x.c',
sources = files(
'bnx2x.c',
'bnx2x_ethdev.c',
'bnx2x_rxtx.c',
'bnx2x_stats.c',
'bnx2x_vfpf.c',
'ecore_sp.c',
'elink.c')
'elink.c',
)

View File

@ -13,7 +13,8 @@ headers = files('rte_pmd_bnxt.h')
includes += include_directories('tf_ulp')
includes += include_directories('tf_core')
sources = files('bnxt_cpr.c',
sources = files(
'bnxt_cpr.c',
'bnxt_ethdev.c',
'bnxt_filter.c',
'bnxt_flow.c',
@ -76,7 +77,8 @@ sources = files('bnxt_cpr.c',
'tf_ulp/ulp_template_db_stingray_act.c',
'tf_ulp/ulp_template_db_stingray_class.c',
'rte_pmd_bnxt.c')
'rte_pmd_bnxt.c',
)
if arch_subdir == 'x86'
sources += files('bnxt_rxtx_vec_sse.c')

View File

@ -8,8 +8,14 @@ if is_windows
endif
name = 'bond' #, james bond :-)
sources = files('rte_eth_bond_api.c', 'rte_eth_bond_pmd.c', 'rte_eth_bond_flow.c',
'rte_eth_bond_args.c', 'rte_eth_bond_8023ad.c', 'rte_eth_bond_alb.c')
sources = files(
'rte_eth_bond_8023ad.c',
'rte_eth_bond_alb.c',
'rte_eth_bond_api.c',
'rte_eth_bond_args.c',
'rte_eth_bond_flow.c',
'rte_eth_bond_pmd.c',
)
deps += 'sched' # needed for rte_bitmap.h
deps += ['ip_frag']

View File

@ -7,7 +7,8 @@ if is_windows
subdir_done()
endif
sources = files('cxgbe_ethdev.c',
sources = files(
'cxgbe_ethdev.c',
'cxgbe_main.c',
'cxgbevf_ethdev.c',
'cxgbevf_main.c',
@ -19,5 +20,6 @@ sources = files('cxgbe_ethdev.c',
'l2t.c',
'smt.c',
'base/t4_hw.c',
'base/t4vf_hw.c')
'base/t4vf_hw.c',
)
includes += include_directories('base')

View File

@ -7,12 +7,14 @@ if not is_linux
endif
deps += ['mempool_dpaa']
sources = files('dpaa_ethdev.c',
sources = files(
'dpaa_ethdev.c',
'fmlib/fm_lib.c',
'fmlib/fm_vsp.c',
'dpaa_flow.c',
'dpaa_rxtx.c',
'dpaa_fmc.c')
'dpaa_fmc.c',
)
if cc.has_argument('-Wno-pointer-arith')
cflags += '-Wno-pointer-arith'

View File

@ -7,7 +7,8 @@ if not is_linux
endif
deps += ['mempool_dpaa2']
sources = files('base/dpaa2_hw_dpni.c',
sources = files(
'base/dpaa2_hw_dpni.c',
'dpaa2_tm.c',
'dpaa2_mux.c',
'dpaa2_ethdev.c',
@ -18,7 +19,8 @@ sources = files('base/dpaa2_hw_dpni.c',
'mc/dprtc.c',
'mc/dpkg.c',
'mc/dpdmux.c',
'mc/dpni.c')
'mc/dpni.c',
)
includes += include_directories('base', 'mc')

View File

@ -17,7 +17,7 @@ sources = files(
'igb_ethdev.c',
'igb_flow.c',
'igb_pf.c',
'igb_rxtx.c'
'igb_rxtx.c',
)
includes += include_directories('base')

View File

@ -7,9 +7,11 @@ if is_windows
subdir_done()
endif
sources = files('ena_ethdev.c',
sources = files(
'ena_ethdev.c',
'base/ena_com.c',
'base/ena_eth_com.c')
'base/ena_eth_com.c',
)
deps += ['timer']

View File

@ -7,7 +7,9 @@ if not is_linux
endif
deps += ['common_dpaax']
sources = files('enetc_ethdev.c',
'enetc_rxtx.c')
sources = files(
'enetc_ethdev.c',
'enetc_rxtx.c',
)
includes += include_directories('base')

View File

@ -20,7 +20,7 @@ sources = files(
'enic_res.c',
'enic_rxtx.c',
'enic_vf_representor.c',
)
)
deps += ['hash']
includes += include_directories('base')

View File

@ -17,11 +17,13 @@ else
cflags += '-DBSD'
endif
sources = files('failsafe_args.c',
sources = files(
'failsafe.c',
'failsafe_args.c',
'failsafe_eal.c',
'failsafe_ether.c',
'failsafe_flow.c',
'failsafe_intr.c',
'failsafe_ops.c',
'failsafe_rxtx.c')
'failsafe_rxtx.c',
)

View File

@ -15,6 +15,6 @@ sources = files(
'hinic_pmd_rx.c',
'hinic_pmd_tx.c',
'hinic_pmd_flow.c',
)
)
includes += include_directories('base')

View File

@ -13,7 +13,8 @@ if arch_subdir != 'x86' and arch_subdir != 'arm' or not dpdk_conf.get('RTE_ARCH_
subdir_done()
endif
sources = files('hns3_cmd.c',
sources = files(
'hns3_cmd.c',
'hns3_dcb.c',
'hns3_intr.c',
'hns3_ethdev.c',
@ -27,7 +28,8 @@ sources = files('hns3_cmd.c',
'hns3_stats.c',
'hns3_mp.c',
'hns3_tm.c',
'hns3_ptp.c')
'hns3_ptp.c',
)
deps += ['hash']

View File

@ -19,8 +19,8 @@ sources = files(
'i40e_tm.c',
'i40e_hash.c',
'i40e_vf_representor.c',
'rte_pmd_i40e.c'
)
'rte_pmd_i40e.c',
)
deps += ['hash']
includes += include_directories('base')

View File

@ -16,7 +16,8 @@ sources = [
'ice_vlan_mode.c',
]
error_cflags = ['-Wno-unused-value',
error_cflags = [
'-Wno-unused-value',
'-Wno-unused-but-set-variable',
'-Wno-unused-variable',
'-Wno-unused-parameter',

View File

@ -5,14 +5,14 @@ subdir('base')
objs = [base_objs]
sources = files(
'ice_acl_filter.c',
'ice_ethdev.c',
'ice_fdir_filter.c',
'ice_generic_flow.c',
'ice_hash.c',
'ice_rxtx.c',
'ice_switch_filter.c',
'ice_generic_flow.c',
'ice_fdir_filter.c',
'ice_hash.c',
'ice_acl_filter.c'
)
)
deps += ['hash', 'net', 'common_iavf']
includes += include_directories('base', '../../common/iavf')
@ -34,8 +34,7 @@ if arch_subdir == 'x86'
cflags += ['-DCC_AVX2_SUPPORT']
ice_avx2_lib = static_library('ice_avx2_lib',
'ice_rxtx_vec_avx2.c',
dependencies: [static_rte_ethdev,
static_rte_kvargs, static_rte_hash],
dependencies: [static_rte_ethdev, static_rte_kvargs, static_rte_hash],
include_directories: includes,
c_args: [cflags, '-mavx2'])
objs += ice_avx2_lib.extract_objects('ice_rxtx_vec_avx2.c')
@ -43,12 +42,14 @@ if arch_subdir == 'x86'
ice_avx512_cpu_support = (
cc.get_define('__AVX512F__', args: machine_args) != '' and
cc.get_define('__AVX512BW__', args: machine_args) != '')
cc.get_define('__AVX512BW__', args: machine_args) != ''
)
ice_avx512_cc_support = (
not machine_args.contains('-mno-avx512f') and
cc.has_argument('-mavx512f') and
cc.has_argument('-mavx512bw'))
cc.has_argument('-mavx512bw')
)
if ice_avx512_cpu_support == true or ice_avx512_cc_support == true
cflags += ['-DCC_AVX512_SUPPORT']

View File

@ -11,11 +11,11 @@ subdir('base')
objs = [base_objs]
sources = files(
'igc_logs.c',
'igc_ethdev.c',
'igc_txrx.c',
'igc_logs.c',
'igc_filter.c',
'igc_flow.c'
'igc_flow.c',
'igc_txrx.c',
)
includes += include_directories('base')

View File

@ -8,11 +8,11 @@ if is_windows
endif
sources = files(
'ionic_mac_api.c',
'ionic_rx_filter.c',
'ionic_rxtx.c',
'ionic_dev.c',
'ionic_ethdev.c',
'ionic_lif.c',
'ionic_main.c'
'ionic_mac_api.c',
'ionic_main.c',
'ionic_rx_filter.c',
'ionic_rxtx.c',
)

View File

@ -23,8 +23,10 @@ endif
includes += include_directories('../../raw/ifpga')
sources += files('ipn3ke_ethdev.c',
sources += files(
'ipn3ke_ethdev.c',
'ipn3ke_flow.c',
'ipn3ke_representor.c',
'ipn3ke_tm.c',
'ipn3ke_flow.c')
)
deps += ['bus_ifpga', 'ethdev', 'sched']

View File

@ -23,7 +23,7 @@ sources = files(
'ixgbe_rxtx.c',
'ixgbe_tm.c',
'ixgbe_vf_representor.c',
'rte_pmd_ixgbe.c'
'rte_pmd_ixgbe.c',
)
deps += ['hash', 'security']

View File

@ -7,8 +7,10 @@ if is_windows
subdir_done()
endif
sources = files('base/lio_23xx_vf.c',
sources = files(
'base/lio_23xx_vf.c',
'base/lio_mbox.c',
'lio_ethdev.c',
'lio_rxtx.c')
'lio_rxtx.c',
)
includes += include_directories('base')

View File

@ -6,7 +6,9 @@ if not is_linux
reason = 'only supported on Linux'
endif
sources = files('rte_eth_memif.c',
'memif_socket.c')
sources = files(
'memif_socket.c',
'rte_eth_memif.c',
)
deps += ['hash']

View File

@ -71,7 +71,7 @@ cflags_options = [
'-Wno-strict-prototypes',
'-D_BSD_SOURCE',
'-D_DEFAULT_SOURCE',
'-D_XOPEN_SOURCE=600'
'-D_XOPEN_SOURCE=600',
]
foreach option:cflags_options
if cc.has_argument(option)

View File

@ -53,7 +53,7 @@ cflags_options = [
'-Wno-strict-prototypes',
'-D_BSD_SOURCE',
'-D_DEFAULT_SOURCE',
'-D_XOPEN_SOURCE=600'
'-D_XOPEN_SOURCE=600',
]
foreach option:cflags_options
if cc.has_argument(option)

View File

@ -20,7 +20,7 @@ ext_deps += dep
sources = files(
'mvneta_ethdev.c',
'mvneta_rxtx.c'
'mvneta_rxtx.c',
)
deps += ['cfgfile', 'common_mvep']

View File

@ -23,7 +23,7 @@ sources = files(
'mrvl_flow.c',
'mrvl_qos.c',
'mrvl_mtr.c',
'mrvl_tm.c'
'mrvl_tm.c',
)
deps += ['cfgfile', 'common_mvep']

View File

@ -9,6 +9,12 @@ endif
build = dpdk_conf.has('RTE_BUS_VMBUS')
reason = 'missing dependency, DPDK VMBus driver'
sources = files('hn_ethdev.c', 'hn_rxtx.c', 'hn_rndis.c', 'hn_nvs.c', 'hn_vf.c')
sources = files(
'hn_ethdev.c',
'hn_nvs.c',
'hn_rndis.c',
'hn_rxtx.c',
'hn_vf.c',
)
deps += ['bus_vmbus' ]

View File

@ -14,4 +14,10 @@ reason = 'missing dependency, "libnfb"'
build = dep.found()
ext_deps += dep
sources = files('nfb_rx.c', 'nfb_tx.c', 'nfb_stats.c', 'nfb_ethdev.c', 'nfb_rxmode.c')
sources = files(
'nfb_ethdev.c',
'nfb_rx.c',
'nfb_rxmode.c',
'nfb_stats.c',
'nfb_tx.c',
)

View File

@ -5,7 +5,8 @@ if not is_linux or not dpdk_conf.get('RTE_ARCH_64')
build = false
reason = 'only supported on 64-bit Linux'
endif
sources = files('nfpcore/nfp_cpp_pcie_ops.c',
sources = files(
'nfpcore/nfp_cpp_pcie_ops.c',
'nfpcore/nfp_nsp.c',
'nfpcore/nfp_cppcore.c',
'nfpcore/nfp_resource.c',
@ -17,4 +18,5 @@ sources = files('nfpcore/nfp_cpp_pcie_ops.c',
'nfpcore/nfp_mutex.c',
'nfpcore/nfp_nsp_eth.c',
'nfpcore/nfp_hwinfo.c',
'nfp_net.c')
'nfp_net.c',
)

View File

@ -10,10 +10,11 @@ endif
subdir('base')
objs = [base_objs]
sources = files('octeontx_rxtx.c',
sources = files(
'octeontx_ethdev.c',
'octeontx_ethdev_ops.c'
)
'octeontx_ethdev_ops.c',
'octeontx_rxtx.c',
)
deps += ['mempool_octeontx', 'eventdev']

View File

@ -14,7 +14,8 @@ if not dpdk_conf.get('RTE_ARCH_64')
subdir_done()
endif
sources = files('otx2_rx.c',
sources = files(
'otx2_rx.c',
'otx2_tx.c',
'otx2_tm.c',
'otx2_rss.c',
@ -35,8 +36,8 @@ sources = files('otx2_rx.c',
'otx2_ethdev_ops.c',
'otx2_ethdev_sec.c',
'otx2_ethdev_debug.c',
'otx2_ethdev_devargs.c'
)
'otx2_ethdev_devargs.c',
)
deps += ['bus_pci', 'cryptodev', 'eventdev', 'security']
deps += ['common_octeontx2', 'mempool_octeontx2']

View File

@ -5,9 +5,9 @@
deps += ['common_octeontx2']
sources = files(
'otx_ep_ethdev.c',
'otx_ep_rxtx.c',
'otx_ep_vf.c',
'otx2_ep_vf.c',
'otx_ep_rxtx.c',
)
)
includes += include_directories('../../common/octeontx2')

View File

@ -7,10 +7,12 @@ if not is_linux
endif
deps += ['common_dpaax']
sources = files('pfe_ethdev.c',
sources = files(
'pfe_ethdev.c',
'pfe_hal.c',
'pfe_hif_lib.c',
'pfe_hif.c')
'pfe_hif.c',
)
if cc.has_argument('-Wno-pointer-arith')
cflags += '-Wno-pointer-arith'

View File

@ -11,12 +11,12 @@ subdir('base')
objs = [base_objs]
sources = files(
'qede_debug.c',
'qede_ethdev.c',
'qede_filter.c',
'qede_main.c',
'qede_rxtx.c',
'qede_debug.c',
'qede_regs.c',
'qede_rxtx.c',
'qede_sriov.c',
)

View File

@ -6,19 +6,21 @@ if not is_linux
reason = 'only supported on Linux'
endif
headers = files('rte_eth_softnic.h')
sources = files('rte_eth_softnic_tm.c',
'rte_eth_softnic.c',
'rte_eth_softnic_mempool.c',
'rte_eth_softnic_swq.c',
'rte_eth_softnic_link.c',
'rte_eth_softnic_tap.c',
'rte_eth_softnic_action.c',
'rte_eth_softnic_pipeline.c',
'rte_eth_softnic_thread.c',
'rte_eth_softnic_cli.c',
'rte_eth_softnic_flow.c',
'rte_eth_softnic_meter.c',
'rte_eth_softnic_cryptodev.c',
sources = files(
'conn.c',
'parser.c',
'conn.c')
'rte_eth_softnic.c',
'rte_eth_softnic_action.c',
'rte_eth_softnic_cli.c',
'rte_eth_softnic_cryptodev.c',
'rte_eth_softnic_flow.c',
'rte_eth_softnic_link.c',
'rte_eth_softnic_mempool.c',
'rte_eth_softnic_meter.c',
'rte_eth_softnic_pipeline.c',
'rte_eth_softnic_swq.c',
'rte_eth_softnic_tap.c',
'rte_eth_softnic_thread.c',
'rte_eth_softnic_tm.c',
)
deps += ['pipeline', 'port', 'table', 'sched', 'cryptodev']

View File

@ -25,18 +25,12 @@ cflags += '-DTAP_MAX_QUEUES=16'
# "enum/define", "symbol to search" ]
#
args = [
[ 'HAVE_TC_FLOWER', 'linux/pkt_cls.h',
'TCA_FLOWER_UNSPEC' ],
[ 'HAVE_TC_VLAN_ID', 'linux/pkt_cls.h',
'TCA_FLOWER_KEY_VLAN_PRIO' ],
[ 'HAVE_TC_BPF', 'linux/pkt_cls.h',
'TCA_BPF_UNSPEC' ],
[ 'HAVE_TC_BPF_FD', 'linux/pkt_cls.h',
'TCA_BPF_FD' ],
[ 'HAVE_TC_ACT_BPF', 'linux/tc_act/tc_bpf.h',
'TCA_ACT_BPF_UNSPEC' ],
[ 'HAVE_TC_ACT_BPF_FD', 'linux/tc_act/tc_bpf.h',
'TCA_ACT_BPF_FD' ],
[ 'HAVE_TC_FLOWER', 'linux/pkt_cls.h', 'TCA_FLOWER_UNSPEC' ],
[ 'HAVE_TC_VLAN_ID', 'linux/pkt_cls.h', 'TCA_FLOWER_KEY_VLAN_PRIO' ],
[ 'HAVE_TC_BPF', 'linux/pkt_cls.h', 'TCA_BPF_UNSPEC' ],
[ 'HAVE_TC_BPF_FD', 'linux/pkt_cls.h', 'TCA_BPF_FD' ],
[ 'HAVE_TC_ACT_BPF', 'linux/tc_act/tc_bpf.h', 'TCA_ACT_BPF_UNSPEC' ],
[ 'HAVE_TC_ACT_BPF_FD', 'linux/tc_act/tc_bpf.h', 'TCA_ACT_BPF_FD' ],
]
config = configuration_data()
foreach arg:args

View File

@ -10,9 +10,10 @@ endif
subdir('base')
objs = [base_objs]
sources = files('nicvf_rxtx.c',
sources = files(
'nicvf_ethdev.c',
'nicvf_svf.c'
'nicvf_rxtx.c',
'nicvf_svf.c',
)
if cc.has_argument('-fno-prefetch-loop-arrays')

View File

@ -10,7 +10,7 @@ sources = files('vdev_netvsc.c')
cflags_options = [
'-D_BSD_SOURCE',
'-D_DEFAULT_SOURCE',
'-D_XOPEN_SOURCE=600'
'-D_XOPEN_SOURCE=600',
]
foreach option:cflags_options
if cc.has_argument(option)

View File

@ -7,13 +7,15 @@ if is_windows
subdir_done()
endif
sources += files('virtio.c',
sources += files(
'virtio.c',
'virtio_ethdev.c',
'virtio_pci_ethdev.c',
'virtio_pci.c',
'virtio_rxtx.c',
'virtio_rxtx_simple.c',
'virtqueue.c')
'virtqueue.c',
)
deps += ['kvargs', 'bus_pci']
if arch_subdir == 'x86'

View File

@ -7,8 +7,10 @@ sources += files(
)
error_cflags = [
'-Wno-unused-parameter', '-Wno-unused-value',
'-Wno-strict-aliasing', '-Wno-format-extra-args',
'-Wno-unused-parameter',
'-Wno-unused-value',
'-Wno-strict-aliasing',
'-Wno-format-extra-args',
]
foreach flag: error_cflags
if cc.has_argument(flag)

View File

@ -8,11 +8,10 @@ sources = files(
'idxd_vdev.c',
'ioat_common.c',
'ioat_rawdev.c',
'ioat_rawdev_test.c')
deps += ['bus_pci',
'bus_vdev',
'mbuf',
'rawdev']
headers = files('rte_ioat_rawdev.h',
'rte_ioat_rawdev_fns.h')
'ioat_rawdev_test.c',
)
deps += ['bus_pci', 'bus_vdev', 'mbuf', 'rawdev']
headers = files(
'rte_ioat_rawdev.h',
'rte_ioat_rawdev_fns.h',
)

View File

@ -1,8 +1,7 @@
# SPDX-License-Identifier: BSD-3-Clause
# Copyright(c) 2019 Intel Corporation.
deps += ['rawdev', 'mbuf', 'mempool',
'pci', 'bus_pci']
deps += ['rawdev', 'mbuf', 'mempool', 'pci', 'bus_pci']
sources = files('ntb.c',
'ntb_hw_intel.c')
headers = files('rte_pmd_ntb.h')

View File

@ -3,7 +3,9 @@
#
deps += ['bus_pci', 'common_octeontx2', 'rawdev']
sources = files('otx2_ep_rawdev.c',
sources = files(
'otx2_ep_enqdeq.c',
'otx2_ep_rawdev.c',
'otx2_ep_test.c',
'otx2_ep_vf.c')
'otx2_ep_vf.c',
)

View File

@ -2,5 +2,7 @@
# Copyright 2018 NXP
deps += ['rawdev', 'kvargs', 'mbuf', 'bus_vdev']
sources = files('skeleton_rawdev.c',
'skeleton_rawdev_test.c')
sources = files(
'skeleton_rawdev.c',
'skeleton_rawdev_test.c',
)

View File

@ -20,7 +20,7 @@ cflags_options = [
'-Wno-strict-prototypes',
'-D_BSD_SOURCE',
'-D_DEFAULT_SOURCE',
'-D_XOPEN_SOURCE=600'
'-D_XOPEN_SOURCE=600',
]
foreach option:cflags_options
if cc.has_argument(option)

View File

@ -16,11 +16,12 @@ if lib.found()
cflags += ['-DREE_COMPILER_SDK']
endif
sources = files('otx2_regexdev.c',
sources = files(
'otx2_regexdev.c',
'otx2_regexdev_compiler.c',
'otx2_regexdev_hw_access.c',
'otx2_regexdev_mbox.c',
'otx2_regexdev_compiler.c'
)
)
deps += ['bus_pci', 'common_octeontx2', 'regexdev']

View File

@ -21,7 +21,7 @@ cflags_options = [
'-Wno-strict-prototypes',
'-D_BSD_SOURCE',
'-D_DEFAULT_SOURCE',
'-D_XOPEN_SOURCE=600'
'-D_XOPEN_SOURCE=600',
]
foreach option:cflags_options
if cc.has_argument(option)