#
3c4898ef |
| 20-Nov-2023 |
Juraj Linkeš <juraj.linkes@pantheon.tech> |
doc: increase Python line length maximum to 100
Unify with C recommendations which allow line length of up to 100 characters.
Signed-off-by: Juraj Linkeš <juraj.linkes@pantheon.tech> Acked-by: Bruc
doc: increase Python line length maximum to 100
Unify with C recommendations which allow line length of up to 100 characters.
Signed-off-by: Juraj Linkeš <juraj.linkes@pantheon.tech> Acked-by: Bruce Richardson <bruce.richardson@intel.com>
show more ...
|
#
5c9f84a8 |
| 20-Jul-2023 |
Bruce Richardson <bruce.richardson@intel.com> |
doc: add guidelines for logging, tracing and telemetry
As discussed by DPDK technical board [1], our contributor guide should include some details as to when to use logging vs tracing vs telemetry t
doc: add guidelines for logging, tracing and telemetry
As discussed by DPDK technical board [1], our contributor guide should include some details as to when to use logging vs tracing vs telemetry to provide the end user with information about the running process and the DPDK libraries it uses.
[1] https://mails.dpdk.org/archives/dev/2023-March/265204.html
Signed-off-by: Bruce Richardson <bruce.richardson@intel.com> Acked-by: Morten Brørup <mb@smartsharesystems.com> Acked-by: Jerin Jacob <jerinj@marvell.com> Reviewed-by: David Marchand <david.marchand@redhat.com> Acked-by: Huisong Li <lihuisong@huawei.com> Acked-by: Ferruh Yigit <ferruh.yigit@amd.com>
show more ...
|
#
1f6f9526 |
| 20-Jul-2023 |
Bruce Richardson <bruce.richardson@intel.com> |
doc: provide coding details for dynamic logging
While the section on dynamic logging in the contributors guide covered the details of the logging naming scheme, it failed to cover exactly how the co
doc: provide coding details for dynamic logging
While the section on dynamic logging in the contributors guide covered the details of the logging naming scheme, it failed to cover exactly how the component developer, i.e. the contributor, could actually use dynamic logging in their component.
Fix this by splitting the details of the naming scheme into a separate subsection, and adding to the introduction on logging, a recommendation (and example) to use RTE_LOG_REGISTER_DEFAULT.
Similarly, when discussing specialization, include a reference to the RTE_LOG_REGISTER_SUFFIX macro.
Signed-off-by: Bruce Richardson <bruce.richardson@intel.com> Acked-by: Chengwen Feng <fengchengwen@huawei.com> Reviewed-by: David Marchand <david.marchand@redhat.com> Acked-by: Ferruh Yigit <ferruh.yigit@amd.com>
show more ...
|
#
7122fb67 |
| 03-May-2023 |
Ferruh Yigit <ferruh.yigit@amd.com> |
devtools: allow variable declaration inside for loop
Declaring variable inside for loop is not supported via C89 and it was checked in checkpatch.sh via commit [1]. But as DPDK supported C standard
devtools: allow variable declaration inside for loop
Declaring variable inside for loop is not supported via C89 and it was checked in checkpatch.sh via commit [1]. But as DPDK supported C standard is becoming C99/C11 [2], declaring variable inside loop can be allowed.
[1] Commit 43e73483a4b8 ("devtools: forbid variable declaration inside for")
[2] https://dpdk.org/patch/121912
Signed-off-by: Ferruh Yigit <ferruh.yigit@amd.com> Acked-by: Bruce Richardson <bruce.richardson@intel.com> Acked-by: Morten Brørup <mb@smartsharesystems.com> Acked-by: Tyler Retzlaff <roretzla@linux.microsoft.com>
show more ...
|
#
9599c59b |
| 23-Jun-2023 |
Bruce Richardson <bruce.richardson@intel.com> |
doc: prefer installing using Meson rather than Ninja
After doing a build, to install DPDK system-wide our documentation recommended using the "ninja install" command. However, for anyone building as
doc: prefer installing using Meson rather than Ninja
After doing a build, to install DPDK system-wide our documentation recommended using the "ninja install" command. However, for anyone building as a non-root user and only installing as root, the "meson install" command is a better alternative, as it provides for automatically dropping or elevating privileges as necessary in more recent meson releases [1].
[1] https://mesonbuild.com/Installing.html#installing-as-the-superuser
Signed-off-by: Bruce Richardson <bruce.richardson@intel.com>
show more ...
|
#
cadb255e |
| 16-Dec-2021 |
Bruce Richardson <bruce.richardson@intel.com> |
eal: add OS defines for C conditional checks
Define a set of macros in the build configuration to allow C runtime code to check the current OS environment. This saves the user having to use ifdefs f
eal: add OS defines for C conditional checks
Define a set of macros in the build configuration to allow C runtime code to check the current OS environment. This saves the user having to use ifdefs for e.g. disabling particular tests on Windows. See included documentation changes for usage examples.
Signed-off-by: Bruce Richardson <bruce.richardson@intel.com> Acked-by: Dmitry Kozlyuk <dmitry.kozliuk@gmail.com> Acked-by: Jerin Jacob <jerinj@marvell.com>
show more ...
|
#
6965091e |
| 29-Oct-2021 |
Dariusz Sosnowski <dsosnowski@nvidia.com> |
doc: fix typo in coding style
This patch fixes a typo in DPDK Coding Style, in Return Values section, i.e. replaces "indicated may" with "indicated by".
Fixes: 36032e46be40 ("doc: add coding style"
doc: fix typo in coding style
This patch fixes a typo in DPDK Coding Style, in Return Values section, i.e. replaces "indicated may" with "indicated by".
Fixes: 36032e46be40 ("doc: add coding style") Cc: stable@dpdk.org
Signed-off-by: Dariusz Sosnowski <dsosnowski@nvidia.com> Acked-by: Bruce Richardson <bruce.richardson@intel.com>
show more ...
|
#
8f86ffa6 |
| 20-Oct-2021 |
Bruce Richardson <bruce.richardson@intel.com> |
devtools: clarify that lines up to 100 characters are ok
Since we allow line lengths of up to 100, and the CI checkpatches job only check for that amount, the rest of our tooling and docs should ref
devtools: clarify that lines up to 100 characters are ok
Since we allow line lengths of up to 100, and the CI checkpatches job only check for that amount, the rest of our tooling and docs should reflect this reality. Therefore we can:
* adjust the editorconfig to use that value, to save editors (e.g. vim) from automatically wrapping lines at 80 characters when typing. [Since python checkers all seem to expect 79 character lines max, add for python only a 79-char max line length.]
* change the default line length setting in checkpatches script to 100 so as it matches CI and pre-merge checks.
* update the docs to clarify that while 80 chars is recommended, up to 100 characters is acceptable.
Signed-off-by: Bruce Richardson <bruce.richardson@intel.com> Acked-by: Andrew Rybchenko <andrew.rybchenko@oktetlabs.ru> Acked-by: Jerin Jacob <jerinj@marvell.com> Acked-by: Chenbo Xia <chenbo.xia@intel.com> Acked-by: Chengwen Feng <fengchengwen@huawei.com> Acked-by: Conor Walsh <conor.walsh@intel.com> Acked-by: Thomas Monjalon <thomas@monjalon.net>
show more ...
|
#
dad3fd5f |
| 15-Sep-2021 |
Bruce Richardson <bruce.richardson@intel.com> |
doc: add line continuation note in Meson coding style
Add a note for the preference of using "()" rather than "\" for line continuations in Meson.
Suggested-by: David Marchand <david.marchand@redha
doc: add line continuation note in Meson coding style
Add a note for the preference of using "()" rather than "\" for line continuations in Meson.
Suggested-by: David Marchand <david.marchand@redhat.com> Signed-off-by: Bruce Richardson <bruce.richardson@intel.com> Reviewed-by: David Marchand <david.marchand@redhat.com>
show more ...
|
#
9c30a6f3 |
| 29-Jul-2021 |
Henry Nadeau <hnadeau@iol.unh.edu> |
doc: fix spelling
Spell checked and corrected documentation. If there are any errors, or I have changed something that wasn't an error please reach out to me so I can update the dictionary.
Cc: sta
doc: fix spelling
Spell checked and corrected documentation. If there are any errors, or I have changed something that wasn't an error please reach out to me so I can update the dictionary.
Cc: stable@dpdk.org
Signed-off-by: Henry Nadeau <hnadeau@iol.unh.edu>
show more ...
|
#
99a2dd95 |
| 20-Apr-2021 |
Bruce Richardson <bruce.richardson@intel.com> |
lib: remove librte_ prefix from directory names
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 m
lib: remove librte_ prefix from directory names
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>
show more ...
|
#
f2cdd95f |
| 20-Apr-2021 |
Bruce Richardson <bruce.richardson@intel.com> |
doc: add Meson coding style to contributors guide
To help with consistency across all files, add a section to the contributors guide on meson coding style. Although short, this covers the basics for
doc: add Meson coding style to contributors guide
To help with consistency across all files, add a section to the contributors guide on meson coding style. Although short, this covers the basics for now, and can be extended in future as we see the need.
Meson style guide recommends four-space indents, like for python, so add to editorconfig file.
Signed-off-by: Bruce Richardson <bruce.richardson@intel.com>
show more ...
|
#
bc461743 |
| 25-Feb-2021 |
Bruce Richardson <bruce.richardson@intel.com> |
build: enable a developer mode setting
To allow support for additional build checks and tests only really relevant for developers, we add support for a developer mode option to DPDK. The default, "a
build: enable a developer mode setting
To allow support for additional build checks and tests only really relevant for developers, we add support for a developer mode option to DPDK. The default, "auto", value for this enables developer mode if a ".git" folder is found at the root of the source tree - as was the case with the previous "make" build system. There is also support for explicitly enabling or disabling this option using "meson configure" if so desired.
Signed-off-by: Bruce Richardson <bruce.richardson@intel.com>
show more ...
|
#
05050ac4 |
| 29-Jan-2021 |
Bruce Richardson <bruce.richardson@intel.com> |
build: add header includes check
To verify that all DPDK headers are ok for inclusion directly in a C file, and are not missing any other pre-requisite headers, we can auto-generate for each header
build: add header includes check
To verify that all DPDK headers are ok for inclusion directly in a C file, and are not missing any other pre-requisite headers, we can auto-generate for each header an empty C file that includes that header. Compiling these files will throw errors if any header has unmet dependencies.
For some libraries, there may be some header files which are not for direct inclusion, but rather are to be included via other header files. To allow later checking of these files for missing includes, we separate out the indirect include files from the direct ones.
To ensure ongoing compliance, we enable this build test as part of the default x86 build in "test-meson-builds.sh".
Signed-off-by: Bruce Richardson <bruce.richardson@intel.com>
show more ...
|
#
30105f66 |
| 22-Oct-2020 |
David Marchand <david.marchand@redhat.com> |
drivers: add headers install helper
A lot of drivers export headers, reproduce the same facility than for libraries.
Note: this change fixes an issue with the crypto scheduler headers which were no
drivers: add headers install helper
A lot of drivers export headers, reproduce the same facility than for libraries.
Note: this change fixes an issue with the crypto scheduler headers which were not installed properly. A separate backport will be sent to stable branches.
Suggested-by: Bruce Richardson <bruce.richardson@intel.com> Signed-off-by: David Marchand <david.marchand@redhat.com> Acked-by: Bruce Richardson <bruce.richardson@intel.com>
show more ...
|
#
cb056611 |
| 15-Oct-2020 |
Stephen Hemminger <stephen@networkplumber.org> |
eal: rename lcore master and slave
Replace master lcore with main lcore and replace slave lcore with worker lcore.
Keep the old functions and macros but mark them as deprecated for this release.
T
eal: rename lcore master and slave
Replace master lcore with main lcore and replace slave lcore with worker lcore.
Keep the old functions and macros but mark them as deprecated for this release.
The "--master-lcore" command line option is also deprecated and any usage will print a warning and use "--main-lcore" as replacement.
Signed-off-by: Stephen Hemminger <stephen@networkplumber.org> Acked-by: Anatoly Burakov <anatoly.burakov@intel.com>
show more ...
|
#
57c789fd |
| 15-Oct-2020 |
Stephen Hemminger <stephen@networkplumber.org> |
doc: add policy about master/slave words
Update the coding style document to include a policy against introducing new master/slave usage. This is taken from the similar place in the Linux kernel cod
doc: add policy about master/slave words
Update the coding style document to include a policy against introducing new master/slave usage. This is taken from the similar place in the Linux kernel coding style.
Signed-off-by: Stephen Hemminger <stephen@networkplumber.org> Acked-by: Anatoly Burakov <anatoly.burakov@intel.com>
show more ...
|
#
3f6f8362 |
| 30-Sep-2020 |
Louise Kilheeney <louise.kilheeney@intel.com> |
support python 3 only
Changed scripts to explicitly use Python 3 only, to avoid maintaining Python 2. Removed deprecation notices.
Signed-off-by: Louise Kilheeney <louise.kilheeney@intel.com> Signe
support python 3 only
Changed scripts to explicitly use Python 3 only, to avoid maintaining Python 2. Removed deprecation notices.
Signed-off-by: Louise Kilheeney <louise.kilheeney@intel.com> Signed-off-by: Kevin Laatz <kevin.laatz@intel.com> Acked-by: Bruce Richardson <bruce.richardson@intel.com> Acked-by: Robin Jarry <robin.jarry@6wind.com> Acked-by: Stephen Hemminger <stephen@networkplumber.org> Acked-by: Ray Kinsella <mdr@ashroe.eu>
show more ...
|
#
3cc6ecfd |
| 03-Sep-2020 |
Ciara Power <ciara.power@intel.com> |
build: remove makefiles
A decision was made [1] to no longer support Make in DPDK, this patch removes all Makefiles that do not make use of pkg-config, along with the mk directory previously used by
build: remove makefiles
A decision was made [1] to no longer support Make in DPDK, this patch removes all Makefiles that do not make use of pkg-config, along with the mk directory previously used by make.
[1] https://mails.dpdk.org/archives/dev/2020-April/162839.html
Signed-off-by: Ciara Power <ciara.power@intel.com> Reviewed-by: Ruifeng Wang <ruifeng.wang@arm.com> Signed-off-by: Thomas Monjalon <thomas@monjalon.net>
show more ...
|
#
525d8031 |
| 14-Jul-2020 |
Stephen Hemminger <stephen@networkplumber.org> |
devtools: add new SPDX license compliance checker
Simple script to look for drivers and scripts that are missing requires SPDX header.
Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
|
#
acec04c4 |
| 13-Apr-2020 |
Pavan Nikhilesh <pbhagavatula@marvell.com> |
build: disable experimental API check internally
Remove setting ALLOW_EXPERIMENTAL_API individually for each Makefile and meson.build. Instead, enable ALLOW_EXPERIMENTAL_API flag across app, lib and
build: disable experimental API check internally
Remove setting ALLOW_EXPERIMENTAL_API individually for each Makefile and meson.build. Instead, enable ALLOW_EXPERIMENTAL_API flag across app, lib and drivers. This changes reduces the clutter across the project while still maintaining the functionality of ALLOW_EXPERIMENTAL_API i.e. warning external applications about experimental API usage.
Signed-off-by: Pavan Nikhilesh <pbhagavatula@marvell.com> Acked-by: Hemant Agrawal <hemant.agrawal@nxp.com> Signed-off-by: David Marchand <david.marchand@redhat.com>
show more ...
|
#
cba806e0 |
| 20-Nov-2019 |
Marcin Baran <marcinx.baran@intel.com> |
build: change ABI versioning to global
As per new ABI policy [1], all of the libraries are now versioned using one global ABI version. Stable libraries use the MAJOR.MINOR ABI version for their shar
build: change ABI versioning to global
As per new ABI policy [1], all of the libraries are now versioned using one global ABI version. Stable libraries use the MAJOR.MINOR ABI version for their shared objects, while experimental libraries use the 0.MAJORMINOR convention for their versioning. Experimental library versioning is managed globally. Changes in this patch implement the necessary steps to enable that.
The CONFIG_RTE_MAJOR_ABI option was introduced to permit multiple DPDK versions installed side by side. The problem is now addressed through the new ABI policy, and thus can be removed.
[David] For external libraries relying on Makefile, LIBABIVER is preserved to avoid using DPDK global ABI version.
[1] https://doc.dpdk.org/guides/contributing/abi_policy.html
Signed-off-by: Marcin Baran <marcinx.baran@intel.com> Signed-off-by: Pawel Modrak <pawelx.modrak@intel.com> Signed-off-by: Anatoly Burakov <anatoly.burakov@intel.com> Acked-by: Bruce Richardson <bruce.richardson@intel.com> Signed-off-by: David Marchand <david.marchand@redhat.com> Acked-by: Thomas Monjalon <thomas@monjalon.net>
show more ...
|
#
f43d3dbb |
| 12-Nov-2019 |
David Marchand <david.marchand@redhat.com> |
doc/guides: clean repeated words
Shoot repeated words in all our guides.
Cc: stable@dpdk.org
Signed-off-by: David Marchand <david.marchand@redhat.com> Acked-by: Kevin Traynor <ktraynor@redhat.com>
|
#
a5d4ea59 |
| 07-Oct-2019 |
Bruce Richardson <bruce.richardson@intel.com> |
build: support building ABI versioned files twice
Any file with ABI versioned functions needs different macros for shared and static builds, so we need to accommodate that. Rather than building ever
build: support building ABI versioned files twice
Any file with ABI versioned functions needs different macros for shared and static builds, so we need to accommodate that. Rather than building everything twice, we just flag to the build system which libraries need that handling, by setting use_function_versioning in the meson.build files.
To ensure we don't get silent errors at build time due to this meson flag being missed, we add an explicit error to the function versioning header file if a known C macro is not defined. Since "make" builds always only build one of shared or static libraries, this define can be always set, and so is added to the global CFLAGS. For meson, the build flag - and therefore the C define - is set for the three libraries that need the function versioning: "distributor", "lpm" and "timer".
Signed-off-by: Bruce Richardson <bruce.richardson@intel.com> Acked-by: Stephen Hemminger <stephen@networkplumber.org> Tested-by: Andrzej Ostruszka <amo@semihalf.com> Reviewed-by: Andrzej Ostruszka <amo@semihalf.com>
show more ...
|
#
8baad6f8 |
| 05-Jun-2019 |
Bruce Richardson <bruce.richardson@intel.com> |
build: print list of disabled components
When configuring with meson we print out a list of enabled components, but it is also useful to list out the disabled components and the reasons why.
Signed
build: print list of disabled components
When configuring with meson we print out a list of enabled components, but it is also useful to list out the disabled components and the reasons why.
Signed-off-by: Bruce Richardson <bruce.richardson@intel.com> Acked-by: Luca Boccassi <bluca@debian.org>
show more ...
|