# set the install path for the drivers
dpdk_conf.set_quoted('RTE_EAL_PMD_PATH', eal_pmd_path)
-install_headers(['rte_config.h', 'rte_compatibility_defines.h'],
+install_headers(['rte_config.h'],
subdir: get_option('include_subdir_arch'))
# enable VFIO only if it is linux OS
+++ /dev/null
-/* SPDX-License-Identifier: BSD-3-Clause
- * Copyright(c) 2017 Intel Corporation
- */
-
-#ifndef _RTE_CONFIG_H_
-#error "This file should only be included via rte_config.h"
-#endif
-
-/*
- * NOTE: these defines are for compatibility only and will be removed in a
- * future DPDK release.
- */
-
-#ifdef RTE_LIBRTE_BITRATESTATS
-#define RTE_LIBRTE_BITRATE
-#endif
-
-#ifdef RTE_LIBRTE_LATENCYSTATS
-#define RTE_LIBRTE_LATENCY_STATS
-#endif
-
-#ifdef RTE_LIBRTE_DPAAX_COMMON
-#define RTE_LIBRTE_COMMON_DPAAX
-#endif
-
-#ifdef RTE_LIBRTE_VMBUS_BUS
-#define RTE_LIBRTE_VMBUS
-#endif
-
-#ifdef RTE_LIBRTE_BUCKET_MEMPOOL
-#define RTE_DRIVER_MEMPOOL_BUCKET
-#endif
-
-#ifdef RTE_LIBRTE_RING_MEMPOOL
-#define RTE_DRIVER_MEMPOOL_RING
-#endif
-
-#ifdef RTE_LIBRTE_STACK_MEMPOOL
-#define RTE_DRIVER_MEMPOOL_STACK
-#endif
-
-#ifdef RTE_LIBRTE_AF_PACKET_PMD
-#define RTE_LIBRTE_PMD_AF_PACKET
-#endif
-
-#ifdef RTE_LIBRTE_AF_XDP_PMD
-#define RTE_LIBRTE_PMD_AF_XDP
-#endif
-
-#ifdef RTE_LIBRTE_BOND_PMD
-#define RTE_LIBRTE_PMD_BOND
-#endif
-
-#ifdef RTE_LIBRTE_E1000_PMD
-#define RTE_LIBRTE_EM_PMD
-#endif
-
-#ifdef RTE_LIBRTE_E1000_PMD
-#define RTE_LIBRTE_IGB_PMD
-#endif
-
-#ifdef RTE_LIBRTE_FAILSAFE_PMD
-#define RTE_LIBRTE_PMD_FAILSAFE
-#endif
-
-#ifdef RTE_LIBRTE_KNI_PMD
-#define RTE_LIBRTE_PMD_KNI
-#endif
-
-#ifdef RTE_LIBRTE_LIQUIDIO_PMD
-#define RTE_LIBRTE_LIO_PMD
-#endif
-
-#ifdef RTE_LIBRTE_MEMIF_PMD
-#define RTE_LIBRTE_PMD_MEMIF
-#endif
-
-#ifdef RTE_LIBRTE_NULL_PMD
-#define RTE_LIBRTE_PMD_NULL
-#endif
-
-#ifdef RTE_LIBRTE_PCAP_PMD
-#define RTE_LIBRTE_PMD_PCAP
-#endif
-
-#ifdef RTE_LIBRTE_RING_PMD
-#define RTE_LIBRTE_PMD_RING
-#endif
-
-#ifdef RTE_LIBRTE_SFC_PMD
-#define RTE_LIBRTE_SFC_EFX_PMD
-#endif
-
-#ifdef RTE_LIBRTE_SOFTNIC_PMD
-#define RTE_LIBRTE_PMD_SOFTNIC
-#endif
-
-#ifdef RTE_LIBRTE_SZEDATA2_PMD
-#define RTE_LIBRTE_PMD_SZEDATA2
-#endif
-
-#ifdef RTE_LIBRTE_TAP_PMD
-#define RTE_LIBRTE_PMD_TAP
-#endif
-
-#ifdef RTE_LIBRTE_THUNDERX_PMD
-#define RTE_LIBRTE_THUNDERX_NICVF_PMD
-#endif
-
-#ifdef RTE_LIBRTE_VHOST_PMD
-#define RTE_LIBRTE_PMD_VHOST
-#endif
-
-#ifdef RTE_LIBRTE_PMD_ARMV8
-#define RTE_LIBRTE_PMD_ARMV8_CRYPTO
-#endif
-
-#ifdef RTE_LIBRTE_PMD_MVSAM
-#define RTE_LIBRTE_PMD_MVSAM_CRYPTO
-#endif
-
-#ifdef RTE_LIBRTE_PMD_OCTEONTX_COMPRESS
-#define RTE_LIBRTE_PMD_OCTEONTX_ZIPVF
-#endif
-
-#ifdef RTE_LIBRTE_PMD_OCTEONTX_EVENTDEV
-#define RTE_LIBRTE_PMD_OCTEONTX_SSOVF
-#endif
-
#define _RTE_CONFIG_H_
#include <rte_build_config.h>
-#include "rte_compatibility_defines.h"
/* legacy defines */
#ifdef RTE_EXEC_ENV_LINUX
Deprecation Notices
-------------------
-* build: The macros defined to indicate which DPDK libraries and drivers
- are included in the meson build are changing to a standardized format of
- ``RTE_LIB_<NAME>`` and ``RTE_<CLASS>_<NAME>``, where ``NAME`` is the
- upper-case component name, e.g. EAL, ETHDEV, IXGBE, and ``CLASS`` is the
- upper-case name of the device class to which a driver belongs e.g.
- ``NET``, ``CRYPTO``, ``VDPA``. The old macros are deprecated and will be
- removed in a future release.
-
* kvargs: The function ``rte_kvargs_process`` will get a new parameter
for returning key match count. It will ease handling of no-match case.
Also, make sure to start the actual text at the margin.
=======================================================
+* config: Removed the old macros, included in ``rte_config.h``,
+ to indicate which DPDK libraries and drivers are built.
+ The new macros are generated by meson in a standardized format:
+ ``RTE_LIB_<NAME>`` and ``RTE_<CLASS>_<NAME>``, where ``NAME`` is
+ the upper-case component name, e.g. ``EAL``, ``ETHDEV``, ``VIRTIO``,
+ and ``CLASS`` is the upper-case driver class, e.g. ``NET``, ``CRYPTO``.
+
* cryptodev: The structure ``rte_cryptodev`` has been updated with pointers
for adding enqueue and dequeue callbacks.
endif
drivers = ['null', 'turbo_sw', 'fpga_lte_fec', 'fpga_5gnr_fec', 'acc100']
-
-config_flag_fmt = 'RTE_LIBRTE_PMD_BBDEV_@0@'
drivers = ['dpaa', 'fslmc', 'ifpga', 'pci', 'vdev', 'vmbus']
std_deps = ['eal']
-config_flag_fmt = 'RTE_LIBRTE_@0@_BUS'
std_deps = ['eal']
drivers = ['cpt', 'dpaax', 'iavf', 'mvep', 'octeontx', 'octeontx2', 'sfc_efx']
-config_flag_fmt = 'RTE_LIBRTE_@0@_COMMON'
subdir_done()
endif
-config_flag_fmt = 'RTE_LIBRTE_@0@_COMMON'
deps += ['hash', 'pci', 'bus_pci', 'net', 'eal', 'kvargs']
sources += files(
'mlx5_devx_cmds.c',
# SPDX-License-Identifier: BSD-3-Clause
# Copyright(c) 2017-2018 Intel Corporation
-config_flag_fmt = 'RTE_LIBRTE_@0@_COMMON'
-
qat_crypto = true
qat_crypto_path = 'crypto/qat'
qat_crypto_relpath = '../../' + qat_crypto_path
drivers = ['isal', 'octeontx', 'zlib']
std_deps = ['compressdev'] # compressdev pulls in all other needed deps
-config_flag_fmt = 'RTE_LIBRTE_PMD_@0@'
# SPDX-License-Identifier: BSD-3-Clause
# Copyright(c) 2018 Cavium, Inc
-fmt_name = 'octeontx_compress'
sources = files('otx_zip.c', 'otx_zip_pmd.c')
includes += include_directories('include')
deps += ['mempool_octeontx', 'bus_pci']
'zuc']
std_deps = ['cryptodev'] # cryptodev pulls in all other needed deps
-config_flag_fmt = 'RTE_LIBRTE_PMD_@0@'
# Copyright(c) 2017 Intel Corporation
deps += 'bus_vdev'
-fmt_name = 'null_crypto'
sources = files('null_crypto_pmd.c', 'null_crypto_pmd_ops.c')
deps += ['bus_pci']
deps += ['common_cpt']
-fmt_name = 'octeontx_crypto'
sources = files('otx_cryptodev.c',
'otx_cryptodev_capabilities.c',
deps += ['ethdev']
deps += ['eventdev']
deps += ['security']
-fmt_name = 'octeontx2_crypto'
sources = files('otx2_cryptodev.c',
'otx2_cryptodev_capabilities.c',
# Copyright(c) 2018 Luca Boccassi <bluca@debian.org>
deps += ['bus_vdev', 'reorder']
-fmt_name = 'crypto_scheduler'
sources = files(
'rte_cryptodev_scheduler.c',
'scheduler_failover.c',
includes += include_directories('../../../lib/librte_vhost')
deps += 'bus_pci'
-fmt_name = 'virtio_crypto'
sources = files('virtio_cryptodev.c', 'virtio_pci.c',
'virtio_rxtx.c', 'virtqueue.c')
drivers += 'octeontx'
endif
std_deps = ['eventdev', 'kvargs']
-config_flag_fmt = 'RTE_LIBRTE_PMD_@0@_EVENTDEV'
drivers = ['bucket', 'dpaa', 'dpaa2', 'octeontx', 'octeontx2', 'ring', 'stack']
std_deps = ['mempool']
-config_flag_fmt = 'RTE_LIBRTE_@0@_MEMPOOL'
foreach subpath:subdirs
drivers = []
std_deps = []
- config_flag_fmt = '' # format string used to set the value in dpdk_conf
# subpath can be either "class" or "class/driver"
if subpath.contains('/')
build = true # set to false to disable, e.g. missing deps
reason = '<unknown reason>' # set if build == false to explain
name = drv
- fmt_name = ''
sources = []
headers = []
objs = []
lib_name = '_'.join(['rte', class, name])
dpdk_conf.set(lib_name.to_upper(), 1)
- if fmt_name == ''
- fmt_name = name
- endif
-
- dpdk_conf.set(config_flag_fmt.format(fmt_name.to_upper()),1) #old-style macro
- # for driver compatibility, since we changed the
- # default to match that of make. Remove in future release
- # after following deprecation process
- if config_flag_fmt.contains('_PMD_@0@') and (class == 'crypto'
- or class == 'compress'
- or class == 'event')
- alt_flag_fmt = '_@0@_PMD'.join(
- config_flag_fmt.split('_PMD_@0@'))
- if config_flag_fmt.contains('EVENTDEV')
- alt_flag_fmt = '_@0@_EVENTDEV_PMD'.join(
- config_flag_fmt.split('_PMD_@0@_EVENTDEV'))
- endif
- dpdk_conf.set(alt_flag_fmt.format(
- fmt_name.to_upper()), 1)
- endif
-
dpdk_extra_ldflags += pkgconfig_extra_libs
install_headers(headers)
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
-config_flag_fmt = 'RTE_LIBRTE_@0@_PMD'
'octeontx2_ep',
'skeleton']
std_deps = ['rawdev']
-config_flag_fmt = 'RTE_LIBRTE_PMD_@0@_RAWDEV'
drivers = ['mlx5', 'octeontx2']
std_deps = ['ethdev', 'kvargs'] # 'ethdev' also pulls in mbuf, net, eal etc
-config_flag_fmt = 'RTE_LIBRTE_@0@_PMD'
subdir_done()
endif
-fmt_name = 'mlx5_regex'
deps += ['common_mlx5', 'eal', 'regexdev']
sources = files(
'mlx5_regex.c',
'otx2_regexdev_compiler.c'
)
-fmt_name = 'octeontx2_regex'
deps += ['bus_pci', 'common_octeontx2', 'regexdev']
includes += include_directories('../../common/octeontx2')
'mlx5',]
std_deps = ['bus_pci', 'kvargs']
std_deps += ['vhost']
-config_flag_fmt = 'RTE_LIBRTE_@0@_PMD'
subdir_done()
endif
-fmt_name = 'mlx5_vdpa'
deps += ['hash', 'common_mlx5', 'vhost', 'pci', 'eal', 'sched']
sources = files(
'mlx5_vdpa.c',
set_variable(name.underscorify() + '_disable_reason', reason)
else
enabled_libs += name
- dpdk_conf.set('RTE_LIBRTE_' + name.to_upper(), 1) #old macro
- dpdk_conf.set('RTE_LIB_' + name.to_upper(), 1) # new macro
+ dpdk_conf.set('RTE_LIB_' + name.to_upper(), 1)
install_headers(headers)
libname = 'rte_' + name