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]>
show more ...
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]>
examples/server_node_efd: use compiler atomics for syncConvert rte_atomic32_test_and_set to compiler CAS atomicoperation for display_stats sync.Signed-off-by: Joyce Kong <[email protected]>Rev
examples/server_node_efd: use compiler atomics for syncConvert rte_atomic32_test_and_set to compiler CAS atomicoperation for display_stats sync.Signed-off-by: Joyce Kong <[email protected]>Reviewed-by: Ruifeng Wang <[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: 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]>
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/server_node_efd: 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 <kevin.laatz@in
examples/server_node_efd: 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 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]>
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/server_node_efd: add server binary to meson buildWhen adding to the build, add in two missing includes that prevented buildon freebsd, rather than just duplicating the makefile restrictio
examples/server_node_efd: add server binary to meson buildWhen adding to the build, add in two missing includes that prevented buildon freebsd, rather than just duplicating the makefile restriction.Signed-off-by: Bruce Richardson <[email protected]>Acked-by: Luca Boccassi <[email protected]>
examples: check status of getting MAC addressThe return value of rte_eth_macaddr_get() was changed from void to int.Update the usage of the functions according to the new return type.Signed-off-
examples: check status of getting MAC addressThe return value of rte_eth_macaddr_get() was changed from void to int.Update the usage of the functions according to the new return type.Signed-off-by: Igor Romanov <[email protected]>Signed-off-by: Andrew Rybchenko <[email protected]>
examples: check status of getting link infoThe return value of rte_eth_link_get() and rte_eth_link_get_nowait()was changed from void to int. Update the usage of the functionsaccording to the new
examples: check status of getting link infoThe return value of rte_eth_link_get() and rte_eth_link_get_nowait()was changed from void to int. Update the usage of the functionsaccording to the new return type.Signed-off-by: Igor Romanov <[email protected]>Signed-off-by: Andrew Rybchenko <[email protected]>
examples: take promiscuous mode switch result into accountrte_eth_promiscuous_enable()/rte_eth_promiscuous_disable() returnvalue was changed from void to int, so this patch modify usageof these f
examples: take promiscuous mode switch result into accountrte_eth_promiscuous_enable()/rte_eth_promiscuous_disable() returnvalue was changed from void to int, so this patch modify usageof these functions across examples according to new return type.Signed-off-by: Ivan Ilchenko <[email protected]>Signed-off-by: Andrew Rybchenko <[email protected]>
examples: check status of getting ethdev inforte_eth_dev_info_get() return value was changed from void toint, so this patch modify rte_eth_dev_info_get() usage acrossexamples according to its new
examples: check status of getting ethdev inforte_eth_dev_info_get() return value was changed from void toint, so this patch modify rte_eth_dev_info_get() usage acrossexamples according to its new return type.Signed-off-by: Ivan Ilchenko <[email protected]>Signed-off-by: Andrew Rybchenko <[email protected]>Reviewed-by: Ferruh Yigit <[email protected]>
net: add rte prefix to IP structureAdd 'rte_' prefix to structures:- rename struct ipv4_hdr as struct rte_ipv4_hdr.- rename struct ipv6_hdr as struct rte_ipv6_hdr.Signed-off-by: Olivier Matz <o
net: add rte prefix to IP structureAdd 'rte_' prefix to structures:- rename struct ipv4_hdr as struct rte_ipv4_hdr.- rename struct ipv6_hdr as struct rte_ipv6_hdr.Signed-off-by: Olivier Matz <[email protected]>Reviewed-by: Stephen Hemminger <[email protected]>Reviewed-by: Maxime Coquelin <[email protected]>Reviewed-by: Ferruh Yigit <[email protected]>
net: add rte prefix to ether structuresAdd 'rte_' prefix to structures:- rename struct ether_addr as struct rte_ether_addr.- rename struct ether_hdr as struct rte_ether_hdr.- rename struct vlan_
net: add rte prefix to ether structuresAdd 'rte_' prefix to structures:- rename struct ether_addr as struct rte_ether_addr.- rename struct ether_hdr as struct rte_ether_hdr.- rename struct vlan_hdr as struct rte_vlan_hdr.- rename struct vxlan_hdr as struct rte_vxlan_hdr.- rename struct vxlan_gpe_hdr as struct rte_vxlan_gpe_hdr.Do not update the command line library to avoid adding a dependency tolibrte_net.Signed-off-by: Olivier Matz <[email protected]>Reviewed-by: Stephen Hemminger <[email protected]>Reviewed-by: Maxime Coquelin <[email protected]>Reviewed-by: Ferruh Yigit <[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]>
12