examples/multi_process: generate cmdline boilerplateUse the dpdk-cmdline-gen script to autogenerate all the boilerplatestructs and defines for the commandline part of the app.Signed-off-by: Bruc
examples/multi_process: generate cmdline boilerplateUse the dpdk-cmdline-gen script to autogenerate all the boilerplatestructs and defines for the commandline part of the app.Signed-off-by: Bruce Richardson <bruce.richardson@intel.com>Signed-off-by: David Marchand <david.marchand@redhat.com>
show more ...
eal: remove unneeded includes from a public headerDo not include <ctype.h>, <errno.h>, and <stdlib.h> from <rte_common.h>,because they are not used by this file.Include the needed headers directl
eal: remove unneeded includes from a public headerDo not include <ctype.h>, <errno.h>, and <stdlib.h> from <rte_common.h>,because they are not used by this file.Include the needed headers directly from the files that need them.Signed-off-by: Dmitry Kozlyuk <dmitry.kozliuk@gmail.com>Acked-by: Bruce Richardson <bruce.richardson@intel.com>
fix spelling in comments and stringsThe tool comes from https://github.com/jsorefSigned-off-by: Josh Soref <jsoref@gmail.com>Signed-off-by: Thomas Monjalon <thomas@monjalon.net>
examples: remove unneeded atomic header includeRemove the unnecessary header file rte_atomic.hincluded in example module.Signed-off-by: Joyce Kong <joyce.kong@arm.com>Signed-off-by: Dharmik Tha
examples: remove unneeded atomic header includeRemove the unnecessary header file rte_atomic.hincluded in example module.Signed-off-by: Joyce Kong <joyce.kong@arm.com>Signed-off-by: Dharmik Thakkar <dharmik.thakkar@arm.com>Reviewed-by: Ruifeng Wang <ruifeng.wang@arm.com>
doc: use code snippets in sample app guidesCurrently the sample app user guides use hard coded code snippets,this patch changes these to use literalinclude which will dynamicallyupdate the snippe
doc: use code snippets in sample app guidesCurrently the sample app user guides use hard coded code snippets,this patch changes these to use literalinclude which will dynamicallyupdate the snippets as changes are made to the code.This was introduced in commit 413c75c33c40 ("doc: show how to includecode in guides"). Comments within the sample apps were updated toaccommodate this as part of this patch. This will help to ensure thatthe code within the sample app user guides is up to date and not outof sync with the actual code.Signed-off-by: Conor Fogarty <conor.fogarty@intel.com>Signed-off-by: Conor Walsh <conor.walsh@intel.com>Acked-by: John McNamara <john.mcnamara@intel.com>
examples: fix pkg-config overrideMove pkg-config override to beginning in the Makefile to allowuse PKGCONF variable to detect the libdpdk availability.Fixes: fda34680eb9a ("examples: remove lega
examples: fix pkg-config overrideMove pkg-config override to beginning in the Makefile to allowuse PKGCONF variable to detect the libdpdk availability.Fixes: fda34680eb9a ("examples: remove legacy sections of makefiles")Cc: stable@dpdk.orgSigned-off-by: Jerin Jacob <jerinj@marvell.com>Acked-by: Bruce Richardson <bruce.richardson@intel.com>
build: fix formatting of Meson listsRunning "./devtools/check-meson.py --fix" on the DPDK repo fixes anumber of issues with whitespace and formatting of files:* indentation of lists* missing tr
build: fix formatting of Meson listsRunning "./devtools/check-meson.py --fix" on the DPDK repo fixes anumber of issues with whitespace and formatting of files:* indentation of lists* missing trailing commas on final list element* multiple list entries per line when list is not all single-lineSigned-off-by: Bruce Richardson <bruce.richardson@intel.com>
examples: add eal cleanup to examplesAccording to the programming guide, the rte_eal_init should be used pairswith rte_eal_cleanup.This patch add rte_eal_cleanup to examples to encourage new use
examples: add eal cleanup to examplesAccording to the programming guide, the rte_eal_init should be used pairswith rte_eal_cleanup.This patch add rte_eal_cleanup to examples to encourage new users ofDPDK to use it.Fixes: aec9c13c5257 ("eal: add function to release internal resources")Fixes: 3d0fad56b74a ("examples/fips_validation: add crypto FIPS application")Fixes: c8e6ceecebc1 ("examples/ioat: add new sample app for ioat driver")Fixes: 4ff457986f76 ("examples/l2fwd-event: add default poll mode routines")Fixes: 08bd1a174461 ("examples/l3fwd-graph: add graph-based l3fwd skeleton")Fixes: c5eebf85badc ("examples/ntb: add example for NTB")Fixes: b77f66002812 ("examples/pipeline: add new example application")Fixes: edbed86d1cc3 ("examples/vdpa: introduce a new sample for vDPA")Fixes: c19beb3f38cd ("examples/vhost_blk: introduce vhost storage sample")Fixes: f5188211c721 ("examples/vhost_crypto: add sample application")Cc: stable@dpdk.orgSigned-off-by: Chengchang Tang <tangchengchang@huawei.com>
examples: reduce indentation in build filesAs with the lib and drivers directories, we can use "continue" keyword toreduce the indentation level of the majority of the foreach block. At thesame t
examples: reduce indentation in build filesAs with the lib and drivers directories, we can use "continue" keyword toreduce the indentation level of the majority of the foreach block. At thesame time, we can also replace tab indentation with spaces.Signed-off-by: Bruce Richardson <bruce.richardson@intel.com>
examples: warn about broken pkg-configSince the examples are designed to be built by end-users using Make, wecan detect and warn about broken pkg-config on the user's system as partof the build p
examples: warn about broken pkg-configSince the examples are designed to be built by end-users using Make, wecan detect and warn about broken pkg-config on the user's system as partof the build process.Signed-off-by: Bruce Richardson <bruce.richardson@intel.com>
examples: restore trace pointBefore make removal, those examples were built with experimental flagfor tracepoints to be compiled in but the pkg-config part of thosemakefiles were missed.Fixes:
examples: restore trace pointBefore make removal, those examples were built with experimental flagfor tracepoints to be compiled in but the pkg-config part of thosemakefiles were missed.Fixes: 78d44153de8f ("ethdev: add tracepoints")Cc: stable@dpdk.orgSigned-off-by: David Marchand <david.marchand@redhat.com>Acked-by: Bruce Richardson <bruce.richardson@intel.com>
eal: rename lcore master and slaveReplace master lcore with main lcore andreplace slave lcore with worker lcore.Keep the old functions and macros but mark them as deprecatedfor this release.T
eal: rename lcore master and slaveReplace master lcore with main lcore andreplace slave lcore with worker lcore.Keep the old functions and macros but mark them as deprecatedfor this release.The "--master-lcore" command line option is also deprecatedand 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>
examples/multi_process: convert to pkg-config-based buildRemove references to the old make build system and use pkg-config forbuilding these examples.Signed-off-by: Bruce Richardson <bruce.richa
examples/multi_process: convert to pkg-config-based buildRemove references to the old make build system and use pkg-config forbuilding these examples.Signed-off-by: Bruce Richardson <bruce.richardson@intel.com>
ethdev: add tracepointsAdd tracepoints at important and mandatory APIs for tracing support.Signed-off-by: Sunil Kumar Kori <skori@marvell.com>Acked-by: David Marchand <david.marchand@redhat.com>
replace unused attributesThere is a common macro __rte_unused, avoiding warnings,which is now used where appropriate for consistency.Signed-off-by: Thomas Monjalon <thomas@monjalon.net>
examples/multi_process: build with mesonThis enables building the example multiprocess applications inthe subdirectory multi_process.Signed-off-by: Ali Alnubani <alialnu@mellanox.com>Acked-by:
examples/multi_process: build with mesonThis enables building the example multiprocess applications inthe subdirectory multi_process.Signed-off-by: Ali Alnubani <alialnu@mellanox.com>Acked-by: Luca Boccassi <bluca@debian.org>
replace snprintf with strlcpy without adding extra includeFor files that already have rte_string_fns.h included in them, we cando a straight replacement of snprintf(..."%s",...) with strlcpy. The
replace snprintf with strlcpy without adding extra includeFor files that already have rte_string_fns.h included in them, we cando a straight replacement of snprintf(..."%s",...) with strlcpy. Thechanges in this patch were auto-generated via command:spatch --sp-file devtools/cocci/strlcpy-with-header.cocci --dir . --in-placeSigned-off-by: Bruce Richardson <bruce.richardson@intel.com>
examples: detect default build directoryMost examples have in their makefiles a default RTE_TARGET directory to beused in case RTE_TARGET is not set. Rather than just using a hard-codeddefault, w
examples: detect default build directoryMost examples have in their makefiles a default RTE_TARGET directory to beused in case RTE_TARGET is not set. Rather than just using a hard-codeddefault, we can instead detect what the build directory is relative toRTE_SDK directory.This fixes a potential issue for anyone who continues to build using"make install T=x86_64-native-linuxapp-gcc" and skips setting RTE_TARGETexplicitly, instead relying on the fact that they were building in adirectory which corresponded to the example default path - which waschanged to "x86_64-native-linux-gcc" by commit 218c4e68c1d9 ("mk: uselinux and freebsd in config names").Signed-off-by: Bruce Richardson <bruce.richardson@intel.com>Acked-by: Ferruh Yigit <ferruh.yigit@intel.com>
mk: use linux and freebsd in config namesRather than using linuxapp and bsdapp everywhere, we can change things touse the, more readable, terms "linux" and "freebsd" in our build configs.Rather t
mk: use linux and freebsd in config namesRather than using linuxapp and bsdapp everywhere, we can change things touse the, more readable, terms "linux" and "freebsd" in our build configs.Rather than renaming the configs we can just duplicate the existing oneswith the new names using symlinks, and use the new names exclusivelyinternally. ["make showconfigs" also only shows the new names to keep thelist short] The result is that backward compatibility is kept fully but anynew builds or development can be done using the newer names, i.e. both"make config T=x86_64-native-linuxapp-gcc" and "T=x86_64-native-linux-gcc"work.Signed-off-by: Bruce Richardson <bruce.richardson@intel.com>
examples: use SPDX tag for Intel copyright filesReplace the BSD license header with the SPDX tag for fileswith only an Intel copyright on them.Signed-off-by: Bruce Richardson <bruce.richardson@i
examples: use SPDX tag for Intel copyright filesReplace the BSD license header with the SPDX tag for fileswith only an Intel copyright on them.Signed-off-by: Bruce Richardson <bruce.richardson@intel.com>
remove useless memzone includesThe memzone header is often included without good reason.Signed-off-by: Thomas Monjalon <thomas@monjalon.net>Acked-by: Bruce Richardson <bruce.richardson@intel.com>
examples/multi_process: fix received message lengthSimple_mp example receives message size less than 64 chars while sendside accepts chars less than 128, this leads to different result whensendin
examples/multi_process: fix received message lengthSimple_mp example receives message size less than 64 chars while sendside accepts chars less than 128, this leads to different result whensending text length larger than 64.This patch uses same buffer length on both message pool and commandline.Fixes: af75078fece3 ("first public release")Cc: stable@dpdk.orgSigned-off-by: Xueming Li <xuemingl@mellanox.com>
fix typos using codespell utilityFixing typos across dpdk source code using codespell utility.Skipped the ethdev driver's base code fixes to keep the basecode intact.Signed-off-by: Jerin Jacob
fix typos using codespell utilityFixing typos across dpdk source code using codespell utility.Skipped the ethdev driver's base code fixes to keep the basecode intact.Signed-off-by: Jerin Jacob <jerin.jacob@caviumnetworks.com>Acked-by: John McNamara <john.mcnamara@intel.com>
tailq: remove unneeded inclusionsOnly keep inclusion where really needed.Signed-off-by: David Marchand <david.marchand@6wind.com>Acked-by: Neil Horman <nhorman@tuxdriver.com>
eal: deprecate rte_snprintfThe function rte_snprintf serves no useful purpose. It is thesame as snprintf() for all valid inputs. Deprecate it andreplace all uses in current code.Leave the tests
eal: deprecate rte_snprintfThe function rte_snprintf serves no useful purpose. It is thesame as snprintf() for all valid inputs. Deprecate it andreplace all uses in current code.Leave the tests for the deprecated function in place.Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>Acked-by: Thomas Monjalon <thomas.monjalon@6wind.com>
12