eal: remove FINISHED lcore stateFINISHED state seems to be used to indicate that the worker's updateof the 'state' is not visible to other threads. There seems to be norequirement to have such a
eal: remove FINISHED lcore stateFINISHED state seems to be used to indicate that the worker's updateof the 'state' is not visible to other threads. There seems to be norequirement to have such a state.Since the FINISHED state is removed, the API rte_eal_wait_lcoreis updated to always return the status of the last function thatran in the worker core.Signed-off-by: Honnappa Nagarahalli <[email protected]>Reviewed-by: Ola Liljedahl <[email protected]>Reviewed-by: Feifei Wang <[email protected]>
show more ...
ethdev: add namespaceAdd 'RTE_ETH' namespace to all enums & macros in a backward compatibleway. The macros for backward compatibility can be removed in next LTS.Also updated some struct names to
ethdev: add namespaceAdd 'RTE_ETH' namespace to all enums & macros in a backward compatibleway. The macros for backward compatibility can be removed in next LTS.Also updated some struct names to have 'rte_eth' prefix.All internal components switched to using new names.Syntax fixed on lines that this patch touches.Signed-off-by: Ferruh Yigit <[email protected]>Acked-by: Tyler Retzlaff <[email protected]>Acked-by: Andrew Rybchenko <[email protected]>Acked-by: Ajit Khaparde <[email protected]>Acked-by: Jerin Jacob <[email protected]>Acked-by: Wisam Jaddo <[email protected]>Acked-by: Rosen Xu <[email protected]>Acked-by: Chenbo Xia <[email protected]>Acked-by: Hemant Agrawal <[email protected]>Acked-by: Somnath Kotur <[email protected]>
examples: remove unneeded atomic header includeRemove the unnecessary header file rte_atomic.hincluded in example module.Signed-off-by: Joyce Kong <[email protected]>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 <[email protected]>Signed-off-by: Dharmik Thakkar <[email protected]>Reviewed-by: Ruifeng Wang <[email protected]>
net: rename Ethernet header fieldsDefinition of `rte_ether_addr` structure used a workaround allowing DPDKand Windows SDK headers to be used in the same file, because Windows SDKdefines `s_addr`
net: rename Ethernet header fieldsDefinition of `rte_ether_addr` structure used a workaround allowing DPDKand Windows SDK headers to be used in the same file, because Windows SDKdefines `s_addr` as a macro. Rename `s_addr` to `src_addr` and `d_addr`to `dst_addr` to avoid the conflict and remove the workaround.Deprecation notice:https://mails.dpdk.org/archives/dev/2021-July/215270.htmlSigned-off-by: Dmitry Kozlyuk <[email protected]>
net: add macro to extract MAC address bytesAdded macros to simplify print of MAC address.The six bytes of a MAC address are extracted ina macro here, to improve code readablity.Signed-off-by: A
net: add macro to extract MAC address bytesAdded macros to simplify print of MAC address.The six bytes of a MAC address are extracted ina macro here, to improve code readablity.Signed-off-by: Aman Deep Singh <[email protected]>Reviewed-by: Ferruh Yigit <[email protected]>
net: add macro for MAC address printAdded macro to print six bytes of MAC address.The MAC addresses will be printed in upper casehexadecimal format.In case there is a specific check for lower ca
net: add macro for MAC address printAdded macro to print six bytes of MAC address.The MAC addresses will be printed in upper casehexadecimal format.In case there is a specific check for lower caseMAC address, the user may need to make a change insuch test case after this patch.Signed-off-by: Aman Deep Singh <[email protected]>Reviewed-by: Ferruh Yigit <[email protected]>
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 <[email protected]>Signed-off-by: Conor Walsh <[email protected]>Acked-by: John McNamara <[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]>
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: [email protected]Signed-off-by: Chengchang Tang <[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]>
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/l2fwd-keepalive: skip meson build if no librtWhen librt is not present on a system, processing the meson.build filefor this example application causes an error. Make the librarynon-manda
examples/l2fwd-keepalive: skip meson build if no librtWhen librt is not present on a system, processing the meson.build filefor this example application causes an error. Make the librarynon-mandatory and just mark the example as unbuildable if it isnot present.Fixes: 89f0711f9ddf ("examples: build some samples with meson")Cc: [email protected]Signed-off-by: Bruce Richardson <[email protected]>
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 <[email protected]>Acked-by: Anatoly Burakov <[email protected]>
examples: use new link status print formatAdd usage of rte_eth_link_to_str function to exampleapplications.Signed-off-by: Ivan Dyukov <[email protected]>Reviewed-by: Ferruh Yigit <ferruh.yig
examples: use new link status print formatAdd usage of rte_eth_link_to_str function to exampleapplications.Signed-off-by: Ivan Dyukov <[email protected]>Reviewed-by: Ferruh Yigit <[email protected]>
examples/ka-agent: convert to pkg-config-based buildRemove references to the old make build system and use pkg-config forbuilding these examples.Signed-off-by: Kevin Laatz <[email protected]>
examples: remove legacy sections of makefilesThe example app makefiles contained sections using the legacy method ofcompiling with make. These are no longer needed, and are removed,leaving only t
examples: remove legacy sections of makefilesThe example app makefiles contained sections using the legacy method ofcompiling with make. These are no longer needed, and are removed,leaving only the section that uses pkg-config for the make build.Signed-off-by: Ciara Power <[email protected]>Acked-by: Nicolas Chautru <[email protected]>
examples: fix port mask parsing failure handlingGiving invalid or zero portmask as command line option tothese applications will have an unexpected response.The reason behind this is that the ret
examples: fix port mask parsing failure handlingGiving invalid or zero portmask as command line option tothese applications will have an unexpected response.The reason behind this is that the return value of functionthat parses portmask is stored in a variable whose datatype isunsigned int, hence returning -1 in case of zero orinvalid portmask causes an unexpected behaviour.If we return 0 instead of -1 this issue can be resolved.The program already contains the functionality to print"invalid portmask" and program usage if zero is returned.Signed-off-by: Sarosh Arif <[email protected]>Acked-by: Bruce Richardson <[email protected]>
build/pkg-config: improve static linking flagsRather than setting -Bstatic in the linker flags when doing a static link,and then having to explicitly set -Bdynamic again afterwards, we can update
build/pkg-config: improve static linking flagsRather than setting -Bstatic in the linker flags when doing a static link,and then having to explicitly set -Bdynamic again afterwards, we can updatethe pkg-config file to use -l:libfoo.a syntax to explicitly refer to thestatic library in question. Since this syntax is not supported by meson'spkg-config module directly, we can post-process the .pc files instead toadjust them.Once done, we can simplify the examples' makefiles and the docs by removingthe explicit static flag.Signed-off-by: Bruce Richardson <[email protected]>Acked-by: Luca Boccassi <[email protected]>Acked-by: Sunil Pai G <[email protected]>Signed-off-by: Thomas Monjalon <[email protected]>
examples: add flush after stats printingWhen printf()'s stdout is line-buffered for terminal, it is fullybuffered for pipes. So, stdout listener can only get the outputwhen it is flushed (on prog
examples: add flush after stats printingWhen printf()'s stdout is line-buffered for terminal, it is fullybuffered for pipes. So, stdout listener can only get the outputwhen it is flushed (on program termination, when buffer is filled ormanual flush).stdout buffer might fill slowly since every stats report could be small.Also when it is fully filled it might contain a part of the last statsreport which makes it very inconvenient for any automation which readsand parses the output.Fixes: af75078fece3 ("first public release")Cc: [email protected]Signed-off-by: Georgiy Levashov <[email protected]>Signed-off-by: Andrew Rybchenko <[email protected]>
examples: remove extra new line after link duplexThis patch removes extra 'new line' in few app examples.Fixes: d3641ae863 ("examples: update link status checks")Fixes: 387259bd6c ("examples/l2f
examples: remove extra new line after link duplexThis patch removes extra 'new line' in few app examples.Fixes: d3641ae863 ("examples: update link status checks")Fixes: 387259bd6c ("examples/l2fwd-crypto: add sample application")Fixes: 4ff457986f ("examples/l2fwd-event: add default poll mode routines")Fixes: e64833f227 ("examples/l2fwd-keepalive: add sample application")Fixes: 204896f8d6 ("examples/l2fwd-jobstats: add new example")Fixes: c8e6ceeceb ("examples/ioat: add new sample app for ioat driver")Fixes: cc8f4d020c ("examples/ip_reassembly: initial import")Fixes: d299106e8e ("examples/ipsec-secgw: add IPsec sample application")Fixes: 39aad0e88c ("examples/flow_distributor: new example to demonstrate EFD")Fixes: d48415e1fe ("examples/performance-thread: add l3fwd-thread app")Fixes: 20c78ac9ee ("examples/vm_power_mgr: add port initialisation")Fixes: 361b2e9559 ("acl: new sample l3fwd-acl")Fixes: de3cfa2c98 ("sched: initial import")Fixes: d7937e2e3d ("power: initial import")Fixes: 3fc5ca2f63 ("kni: initial import")Cc: [email protected]Signed-off-by: Ivan Dyukov <[email protected]>
examples/l2fwd-keepalive: fix mbuf pool sizeMBUF pool of size 8192 was causing packet loss when using four ports. Tofix this issue this patch specifies the number of MBUF's per portinstead of hav
examples/l2fwd-keepalive: fix mbuf pool sizeMBUF pool of size 8192 was causing packet loss when using four ports. Tofix this issue this patch specifies the number of MBUF's per portinstead of having one set MBUF pool size, this way it will adapt to anynumber of ports.Fixes: e64833f2273a ("examples/l2fwd-keepalive: add sample application")Cc: [email protected]Signed-off-by: Louise Kilheeney <[email protected]>Tested-by: Xi Zhang <[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: hide error for missing pkg-config path flagSome versions of pkg-config don't support the --path flag, which is not afatal error when building the apps. Without the flag, the makefile jus
examples: hide error for missing pkg-config path flagSome versions of pkg-config don't support the --path flag, which is not afatal error when building the apps. Without the flag, the makefile justcannot track the .pc file of DPDK as a dependency of the build. Therefore,we can ignore the error and suppress it by redirecting to /dev/null thestderr from that call to pkg-config.Fixes: 22119c4591a0 ("examples: use pkg-config in makefiles")Cc: [email protected]Signed-off-by: Bruce Richardson <[email protected]>Tested-by: Ferruh Yigit <[email protected]>
123