Skip to content

Commit

Permalink
lib: remove librte_ prefix from directory names
Browse files Browse the repository at this point in the history
There is no reason for the DPDK libraries to all have 'librte_' prefix on
the directory names. This prefix makes the directory names longer and also
makes it awkward to add features referring to individual libraries in the
build - should the lib names be specified with or without the prefix.
Therefore, we can just remove the library prefix and use the library's
unique name as the directory name, i.e. 'eal' rather than 'librte_eal'

Signed-off-by: Bruce Richardson <bruce.richardson@intel.com>
  • Loading branch information
bruce-richardson authored and tmonjalo committed Apr 21, 2021
1 parent f2cdd95 commit 99a2dd9
Show file tree
Hide file tree
Showing 878 changed files with 206 additions and 204 deletions.
210 changes: 105 additions & 105 deletions MAINTAINERS

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion app/test/test_eal_fs.c
Expand Up @@ -9,7 +9,7 @@
#include <errno.h>

/* eal_filesystem.h is not a public header file, so use relative path */
#include "../../lib/librte_eal/common/eal_filesystem.h"
#include "../../lib/eal/common/eal_filesystem.h"

static int
test_parse_sysfs_value(void)
Expand Down
2 changes: 1 addition & 1 deletion app/test/test_memzone.c
Expand Up @@ -18,7 +18,7 @@
#include <rte_string_fns.h>
#include <rte_errno.h>
#include <rte_malloc.h>
#include "../../lib/librte_eal/common/malloc_elem.h"
#include "../../lib/eal/common/malloc_elem.h"

#include "test.h"

Expand Down
2 changes: 1 addition & 1 deletion app/test/test_telemetry_json.c
Expand Up @@ -4,7 +4,7 @@

#include <string.h>

#include "../../lib/librte_telemetry/telemetry_json.h"
#include "../../lib/telemetry/telemetry_json.h"
#include "test.h"

static int
Expand Down
2 changes: 1 addition & 1 deletion config/arm/meson.build
Expand Up @@ -7,7 +7,7 @@
flags_common = [
# Accelerate rte_memcpy. Be sure to run unit test (memcpy_perf_autotest)
# to determine the best threshold in code. Refer to notes in source file
# (lib/librte_eal/arm/include/rte_memcpy_64.h) for more info.
# (lib/eal/arm/include/rte_memcpy_64.h) for more info.
['RTE_ARCH_ARM64_MEMCPY', false],
# ['RTE_ARM64_MEMCPY_ALIGNED_THRESHOLD', 2048],
# ['RTE_ARM64_MEMCPY_UNALIGNED_THRESHOLD', 512],
Expand Down
14 changes: 7 additions & 7 deletions devtools/build-tags.sh
Expand Up @@ -67,13 +67,13 @@ common_sources()

linux_sources()
{
find_sources "lib/librte_eal/linux" '*.[chS]'
find_sources "lib/eal/linux" '*.[chS]'
find_sources "kernel/linux" '*.[chS]'
}

bsd_sources()
{
find_sources "lib/librte_eal/freebsd" '*.[chS]'
find_sources "lib/eal/freebsd" '*.[chS]'
find_sources "kernel/freebsd" '*.[chS]'
}

Expand All @@ -85,14 +85,14 @@ arm_common()
arm_32_sources()
{
arm_common
find_sources "lib/librte_eal/arm" '*.[chS]' \
find_sources "lib/eal/arm" '*.[chS]' \
"$skip_64b_files"
}

arm_64_sources()
{
arm_common
find_sources "lib/librte_eal/arm" '*.[chS]' \
find_sources "lib/eal/arm" '*.[chS]' \
"$skip_32b_files"
find_sources "$source_dirs" '*arm64.[chS]'
}
Expand All @@ -108,20 +108,20 @@ x86_common()
x86_32_sources()
{
x86_common
find_sources "lib/librte_eal/x86" '*.[chS]' \
find_sources "lib/eal/x86" '*.[chS]' \
"$skip_64b_files"
}

x86_64_sources()
{
x86_common
find_sources "lib/librte_eal/x86" '*.[chS]' \
find_sources "lib/eal/x86" '*.[chS]' \
"$skip_32b_files"
}

ppc_64_sources()
{
find_sources "lib/librte_eal/ppc" '*.[chS]'
find_sources "lib/eal/ppc" '*.[chS]'
find_sources "$source_dirs" '*altivec*.[chS]'
}

Expand Down
104 changes: 52 additions & 52 deletions doc/api/doxy-api.conf.in
Expand Up @@ -24,58 +24,58 @@ INPUT = @TOPDIR@/doc/api/doxy-api-index.md \
@TOPDIR@/drivers/raw/dpaa2_qdma \
@TOPDIR@/drivers/raw/ifpga \
@TOPDIR@/drivers/raw/ioat \
@TOPDIR@/lib/librte_eal/include \
@TOPDIR@/lib/librte_eal/include/generic \
@TOPDIR@/lib/librte_acl \
@TOPDIR@/lib/librte_bbdev \
@TOPDIR@/lib/librte_bitratestats \
@TOPDIR@/lib/librte_bpf \
@TOPDIR@/lib/librte_cfgfile \
@TOPDIR@/lib/librte_cmdline \
@TOPDIR@/lib/librte_compressdev \
@TOPDIR@/lib/librte_cryptodev \
@TOPDIR@/lib/librte_distributor \
@TOPDIR@/lib/librte_efd \
@TOPDIR@/lib/librte_ethdev \
@TOPDIR@/lib/librte_eventdev \
@TOPDIR@/lib/librte_fib \
@TOPDIR@/lib/librte_flow_classify \
@TOPDIR@/lib/librte_graph \
@TOPDIR@/lib/librte_gro \
@TOPDIR@/lib/librte_gso \
@TOPDIR@/lib/librte_hash \
@TOPDIR@/lib/librte_ip_frag \
@TOPDIR@/lib/librte_ipsec \
@TOPDIR@/lib/librte_jobstats \
@TOPDIR@/lib/librte_kni \
@TOPDIR@/lib/librte_kvargs \
@TOPDIR@/lib/librte_latencystats \
@TOPDIR@/lib/librte_lpm \
@TOPDIR@/lib/librte_mbuf \
@TOPDIR@/lib/librte_member \
@TOPDIR@/lib/librte_mempool \
@TOPDIR@/lib/librte_meter \
@TOPDIR@/lib/librte_metrics \
@TOPDIR@/lib/librte_node \
@TOPDIR@/lib/librte_net \
@TOPDIR@/lib/librte_pci \
@TOPDIR@/lib/librte_pdump \
@TOPDIR@/lib/librte_pipeline \
@TOPDIR@/lib/librte_port \
@TOPDIR@/lib/librte_power \
@TOPDIR@/lib/librte_rawdev \
@TOPDIR@/lib/librte_rcu \
@TOPDIR@/lib/librte_regexdev \
@TOPDIR@/lib/librte_reorder \
@TOPDIR@/lib/librte_rib \
@TOPDIR@/lib/librte_ring \
@TOPDIR@/lib/librte_sched \
@TOPDIR@/lib/librte_security \
@TOPDIR@/lib/librte_stack \
@TOPDIR@/lib/librte_table \
@TOPDIR@/lib/librte_telemetry \
@TOPDIR@/lib/librte_timer \
@TOPDIR@/lib/librte_vhost
@TOPDIR@/lib/eal/include \
@TOPDIR@/lib/eal/include/generic \
@TOPDIR@/lib/acl \
@TOPDIR@/lib/bbdev \
@TOPDIR@/lib/bitratestats \
@TOPDIR@/lib/bpf \
@TOPDIR@/lib/cfgfile \
@TOPDIR@/lib/cmdline \
@TOPDIR@/lib/compressdev \
@TOPDIR@/lib/cryptodev \
@TOPDIR@/lib/distributor \
@TOPDIR@/lib/efd \
@TOPDIR@/lib/ethdev \
@TOPDIR@/lib/eventdev \
@TOPDIR@/lib/fib \
@TOPDIR@/lib/flow_classify \
@TOPDIR@/lib/graph \
@TOPDIR@/lib/gro \
@TOPDIR@/lib/gso \
@TOPDIR@/lib/hash \
@TOPDIR@/lib/ip_frag \
@TOPDIR@/lib/ipsec \
@TOPDIR@/lib/jobstats \
@TOPDIR@/lib/kni \
@TOPDIR@/lib/kvargs \
@TOPDIR@/lib/latencystats \
@TOPDIR@/lib/lpm \
@TOPDIR@/lib/mbuf \
@TOPDIR@/lib/member \
@TOPDIR@/lib/mempool \
@TOPDIR@/lib/meter \
@TOPDIR@/lib/metrics \
@TOPDIR@/lib/node \
@TOPDIR@/lib/net \
@TOPDIR@/lib/pci \
@TOPDIR@/lib/pdump \
@TOPDIR@/lib/pipeline \
@TOPDIR@/lib/port \
@TOPDIR@/lib/power \
@TOPDIR@/lib/rawdev \
@TOPDIR@/lib/rcu \
@TOPDIR@/lib/regexdev \
@TOPDIR@/lib/reorder \
@TOPDIR@/lib/rib \
@TOPDIR@/lib/ring \
@TOPDIR@/lib/sched \
@TOPDIR@/lib/security \
@TOPDIR@/lib/stack \
@TOPDIR@/lib/table \
@TOPDIR@/lib/telemetry \
@TOPDIR@/lib/timer \
@TOPDIR@/lib/vhost
INPUT += @API_EXAMPLES@
FILE_PATTERNS = rte_*.h \
cmdline.h
Expand Down
12 changes: 6 additions & 6 deletions doc/guides/contributing/abi_versioning.rst
Expand Up @@ -58,12 +58,12 @@ persists over multiple releases.

.. code-block:: none
$ head ./lib/librte_acl/version.map
$ head ./lib/acl/version.map
DPDK_21 {
global:
...
$ head ./lib/librte_eal/version.map
$ head ./lib/eal/version.map
DPDK_21 {
global:
...
Expand All @@ -77,7 +77,7 @@ that library.

.. code-block:: none
$ head ./lib/librte_acl/version.map
$ head ./lib/acl/version.map
DPDK_21 {
global:
...
Expand All @@ -88,7 +88,7 @@ that library.
} DPDK_21;
...
$ head ./lib/librte_eal/version.map
$ head ./lib/eal/version.map
DPDK_21 {
global:
...
Expand All @@ -100,12 +100,12 @@ how this may be done.

.. code-block:: none
$ head ./lib/librte_acl/version.map
$ head ./lib/acl/version.map
DPDK_22 {
global:
...
$ head ./lib/librte_eal/version.map
$ head ./lib/eal/version.map
DPDK_22 {
global:
...
Expand Down
4 changes: 2 additions & 2 deletions doc/guides/contributing/coding_style.rst
Expand Up @@ -759,7 +759,7 @@ Examples:
* The virtio network PMD in ``drivers/net/virtio`` uses ``pmd.net.virtio``
* The eventdev software poll mode driver in ``drivers/event/sw`` uses ``pmd.event.sw``
* The octeontx mempool driver in ``drivers/mempool/octeontx`` uses ``pmd.mempool.octeontx``
* The DPDK hash library in ``lib/librte_hash`` uses ``lib.hash``
* The DPDK hash library in ``lib/hash`` uses ``lib.hash``

Specializations
~~~~~~~~~~~~~~~
Expand Down Expand Up @@ -926,7 +926,7 @@ name
If a library's .so or .a file differs from that given in the directory
name, the name should be specified using this variable. In practice,
since the convention is that for a library called ``librte_xyz.so``, the
sources are stored in a directory ``lib/librte_xyz``, this value should
sources are stored in a directory ``lib/xyz``, this value should
never be needed for new libraries.

.. note::
Expand Down
10 changes: 5 additions & 5 deletions doc/guides/contributing/documentation.rst
Expand Up @@ -19,10 +19,10 @@ The DPDK source code repository contains input files to build the API documentat
The main directories that contain files related to documentation are shown below::

lib
|-- librte_acl
|-- librte_cfgfile
|-- librte_cmdline
|-- librte_eal
|-- acl
|-- cfgfile
|-- cmdline
|-- eal
| |-- ...
...
doc
Expand All @@ -40,7 +40,7 @@ The main directories that contain files related to documentation are shown below


The API documentation is built from `Doxygen <http://www.doxygen.nl>`_ comments in the header files.
These files are mainly in the ``lib/librte_*`` directories although some of the Poll Mode Drivers in ``drivers/net``
These files are mainly in the ``lib/*`` directories although some of the Poll Mode Drivers in ``drivers/net``
are also documented with Doxygen.

The configuration files that are used to control the Doxygen output are in the ``doc/api`` directory.
Expand Down
2 changes: 1 addition & 1 deletion doc/guides/prog_guide/event_timer_adapter.rst
Expand Up @@ -35,7 +35,7 @@ device upon timer expiration.

The Event Timer Adapter API represents each event timer with a generic struct,
which contains an event and user metadata. The ``rte_event_timer`` struct is
defined in ``lib/librte_event/librte_event_timer_adapter.h``.
defined in ``lib/event/librte_event_timer_adapter.h``.

.. _timer_expiry_event:

Expand Down
4 changes: 2 additions & 2 deletions doc/guides/prog_guide/qos_framework.rst
Expand Up @@ -1517,9 +1517,9 @@ Source Files Location

The source files for the DPDK dropper are located at:

* DPDK/lib/librte_sched/rte_red.h
* DPDK/lib/sched/rte_red.h

* DPDK/lib/librte_sched/rte_red.c
* DPDK/lib/sched/rte_red.c

Integration with the DPDK QoS Scheduler
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Expand Down
2 changes: 1 addition & 1 deletion doc/guides/prog_guide/rawdev.rst
Expand Up @@ -13,7 +13,7 @@ In terms of device flavor (type) support, DPDK currently has ethernet

For a new type of device, for example an accelerator, there are not many
options except:
1. create another lib/librte_MySpecialDev, driver/MySpecialDrv and use it
1. create another lib/MySpecialDev, driver/MySpecialDrv and use it
through Bus/PMD model.
2. Or, create a vdev and implement necessary custom APIs which are directly
exposed from driver layer. However this may still require changes in bus code
Expand Down
2 changes: 1 addition & 1 deletion doc/guides/rel_notes/known_issues.rst
Expand Up @@ -127,7 +127,7 @@ HPET timers do not work on the Osage customer reference platform
work correctly, provided the BIOS supports HPET.

**Driver/Module**:
``lib/librte_eal/include/rte_cycles.h``
``lib/eal/include/rte_cycles.h``


Not all variants of supported NIC types have been used in testing
Expand Down
2 changes: 1 addition & 1 deletion drivers/common/mlx5/linux/meson.build
Expand Up @@ -206,7 +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/eal/include/generic')
shared_lib = shared_library(
dlopen_lib_name,
dlopen_sources,
Expand Down
2 changes: 1 addition & 1 deletion drivers/crypto/virtio/meson.build
@@ -1,7 +1,7 @@
# SPDX-License-Identifier: BSD-3-Clause
# Copyright(c) 2018 HUAWEI TECHNOLOGIES CO., LTD.

includes += include_directories('../../../lib/librte_vhost')
includes += include_directories('../../../lib/vhost')
deps += 'bus_pci'
sources = files(
'virtio_cryptodev.c',
Expand Down
4 changes: 2 additions & 2 deletions kernel/linux/kni/meson.build
Expand Up @@ -18,8 +18,8 @@ custom_target('rte_kni',
'M=' + meson.current_build_dir(),
'src=' + meson.current_source_dir(),
'MODULE_CFLAGS=-include ' + meson.source_root() + '/config/rte_config.h' +
' -I' + meson.source_root() + '/lib/librte_eal/include' +
' -I' + meson.source_root() + '/lib/librte_kni' +
' -I' + meson.source_root() + '/lib/eal/include' +
' -I' + meson.source_root() + '/lib/kni' +
' -I' + meson.build_root() +
' -I' + meson.current_source_dir(),
'modules'] + cross_args,
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit 99a2dd9

Please sign in to comment.