fix spelling in comments and stringsThe tool comes from https://github.com/jsorefSigned-off-by: Josh Soref <[email protected]>Signed-off-by: Thomas Monjalon <[email protected]>
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: [email protected]Signed-off-by: Jerin Jacob <[email protected]>Acked-by: Bruce Richardson <[email protected]>
show more ...
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 <[email protected]>
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 <[email protected]>
devargs: unify scratch buffer storageIn current design, legacy parser rte_devargs_parse() saved scratchbuffer to devargs.args while new parser rte_devargs_layers_parse() savedto devargs.data. Cod
devargs: unify scratch buffer storageIn current design, legacy parser rte_devargs_parse() saved scratchbuffer to devargs.args while new parser rte_devargs_layers_parse() savedto devargs.data. Code using devargs had to know the difference andcleaned up memory accordingly - error prone.This patch unifies scratch buffer to data field, introducesrte_devargs_reset() function to wrap the memory clean up logic.Signed-off-by: Xueming Li <[email protected]>Acked-by: Ray Kinsella <[email protected]>Reviewed-by: Gaetan Rivet <[email protected]>
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 <[email protected]>
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: [email protected]Signed-off-by: David Marchand <[email protected]>Acked-by: Bruce Richardson <[email protected]>
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 <[email protected]>
ethdev: add tracepointsAdd tracepoints at important and mandatory APIs for tracing support.Signed-off-by: Sunil Kumar Kori <[email protected]>Acked-by: David Marchand <[email protected]>
replace unused attributesThere is a common macro __rte_unused, avoiding warnings,which is now used where appropriate for consistency.Signed-off-by: Thomas Monjalon <[email protected]>
examples/multi_process: build with mesonThis enables building the example multiprocess applications inthe subdirectory multi_process.Signed-off-by: Ali Alnubani <[email protected]>Acked-by:
examples/multi_process: build with mesonThis enables building the example multiprocess applications inthe subdirectory multi_process.Signed-off-by: Ali Alnubani <[email protected]>Acked-by: Luca Boccassi <[email protected]>
eal: promote some experimental functions as stableThe function rte_eal_cleanup() was introduced more than one year ago,in DPDK 18.02. It is no longer experimental, allowingpdump, proc-info and ho
eal: promote some experimental functions as stableThe function rte_eal_cleanup() was introduced more than one year ago,in DPDK 18.02. It is no longer experimental, allowingpdump, proc-info and hotplug_mp apps to not need any experimental API.The function rte_ctrl_thread_create() was introduced one year agoin DPDK 18.05. It is no longer experimental, allowingKNI PMD and TEP example to not need any experimental API.The functions rte_socket_count() and rte_socket_id_by_idx() wereintroduced one year ago in DPDK 18.05. They are no longer experimental.The function rte_dev_is_probed() was introduced half a year agoin DPDK 18.11. It is no longer experimental.Signed-off-by: Thomas Monjalon <[email protected]>Acked-by: Hemant Agrawal <[email protected]>Acked-by: Kevin Traynor <[email protected]>
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 <[email protected]>Acked-by: Ferruh Yigit <[email protected]>
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 <[email protected]>
examples/multi_process: add hotplug sampleThe sample code demonstrates device (ethdev only) managementat a multi-process environment. The user can attach/detach adevice on primary process and see
examples/multi_process: add hotplug sampleThe sample code demonstrates device (ethdev only) managementat a multi-process environment. The user can attach/detach adevice on primary process and see it is synced on secondaryprocess automatically.How to start?./hotplug_mp --proc-type=autoCommand Line Example:>help>list/* attach a pci device */> attach 0000:81:00.0/* detach the pci device */> detach 0000:81:00.0/* attach a vdev af_packet device */> attach net_af_packet,iface=eth0/* detach the vdev af_packet device */> detach net_af_packetSigned-off-by: Qi Zhang <[email protected]>