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/ethtool: enhance Rx/Tx queue NUMA affinityIn DPDK, 'rte_socket_id' means the running socket while'rte_eth_dev_socket_id' is the device socket.For better performance, memory which queue s
examples/ethtool: enhance Rx/Tx queue NUMA affinityIn DPDK, 'rte_socket_id' means the running socket while'rte_eth_dev_socket_id' is the device socket.For better performance, memory which queue setup used and deviceshould be in the same socket.This patch make sure it calls rte_eth_dev_socket_id API to get devicesocket_id when setting ringparam.Signed-off-by: Chengwen Feng <[email protected]>Signed-off-by: Min Hu (Connor) <[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: 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: fix linking against specific driversSome example apps rely on driver-specific functionality and link explicitlyagainst those drivers. These apps need their makefiles updated to takeacco
examples: fix linking against specific driversSome example apps rely on driver-specific functionality and link explicitlyagainst those drivers. These apps need their makefiles updated to takeaccount of the renaming of the driver libs.Fixes: a20b2c01a7a1 ("build: standardize component names and defines")Signed-off-by: Bruce Richardson <[email protected]>Reviewed-by: David Marchand <[email protected]>
build: replace use of old build macrosUse the newer macros defined by meson in all DPDK source code, to ensurethere are no errors when the old non-standard macros are removed.Signed-off-by: Bruc
build: replace use of old build macrosUse the newer macros defined by meson in all DPDK source code, to ensurethere are no errors when the old non-standard macros are removed.Signed-off-by: Bruce Richardson <[email protected]>Acked-by: Luca Boccassi <[email protected]>Acked-by: Andrew Rybchenko <[email protected]>Acked-by: Rosen Xu <[email protected]>Signed-off-by: Thomas Monjalon <[email protected]>
examples: check stop call statusrte_eth_dev_stop() return value was changed from void to int,so this patch modify usage of this function across examplesaccording to new return type.Signed-off-b
examples: check stop call statusrte_eth_dev_stop() return value was changed from void to int,so this patch modify usage of this function across examplesaccording to new return type.Signed-off-by: Ivan Ilchenko <[email protected]>Signed-off-by: Andrew Rybchenko <[email protected]>
examples/ethtool: convert to pkg-config-based buildRemove references to the old DPDK build system from the makefiles, and usepkg-config provided flags instead.Signed-off-by: Bruce Richardson <br
examples/ethtool: convert to pkg-config-based buildRemove references to the old DPDK build system from the makefiles, and usepkg-config provided flags instead.Signed-off-by: Bruce Richardson <[email protected]>
examples/ethtool: fix unchecked return valueThis checks the return value from the functionrte_eth_dev_set_vlan_offload.Coverity issue: 350358Fixes: bda68ab9d1e7 ("examples/ethtool: add user-spa
examples/ethtool: fix unchecked return valueThis checks the return value from the functionrte_eth_dev_set_vlan_offload.Coverity issue: 350358Fixes: bda68ab9d1e7 ("examples/ethtool: add user-space ethtool sample application")Cc: [email protected]Signed-off-by: Gargi Sau <[email protected]>Acked-by: Bruce Richardson <[email protected]>
build: fix soname info for 19.11 compatibilityThe soname for each stable ABI version should be just the ABI version majornumber without the minor number. Unfortunately both major and minor wereus
build: fix soname info for 19.11 compatibilityThe soname for each stable ABI version should be just the ABI version majornumber without the minor number. Unfortunately both major and minor wereused causing version 20.1 to be incompatible with 20.0.This patch fixes the issue by switching from 2-part to 3-part ABI versionnumbers so that we can keep 20.0 as soname and using the final digits toidentify the 20.x releases which are ABI compatible. This requires changesto both make and meson builds to handle the three-digit version and shrinkit to 2-digit for soname.The final fix needed in this patch is to adjust the library version numberfor the ethtool example library, which needs to be upped to 2-digits, asexternal libraries using the DPDK build system also use the logic in thisfile.Fixes: cba806e07d6f ("build: change ABI versioning to global")Signed-off-by: Thomas Monjalon <[email protected]>Signed-off-by: Bruce Richardson <[email protected]>Acked-by: Neil Horman <[email protected]>Tested-by: Ray Kinsella <[email protected]>Tested-by: Ferruh Yigit <[email protected]>Tested-by: Kevin Laatz <[email protected]>Tested-by: David Marchand <[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: 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]>
ethdev: remove redundant device info cleanup before getrte_eth_dev_info_get() always fills in device information memorywith zeros on entry.Fixes: b6719879855d ("ethdev: avoid getting uninitializ
ethdev: remove redundant device info cleanup before getrte_eth_dev_info_get() always fills in device information memorywith zeros on entry.Fixes: b6719879855d ("ethdev: avoid getting uninitialized info for bad port")Cc: [email protected]Signed-off-by: Andrew Rybchenko <[email protected]>Reviewed-by: Ferruh Yigit <[email protected]>
net: add rte prefix to ether functionsAdd 'rte_' prefix to functions:- rename is_same_ether_addr() as rte_is_same_ether_addr().- rename is_zero_ether_addr() as rte_is_zero_ether_addr().- rename
net: add rte prefix to ether functionsAdd 'rte_' prefix to functions:- rename is_same_ether_addr() as rte_is_same_ether_addr().- rename is_zero_ether_addr() as rte_is_zero_ether_addr().- rename is_unicast_ether_addr() as rte_is_unicast_ether_addr().- rename is_multicast_ether_addr() as rte_is_multicast_ether_addr().- rename is_broadcast_ether_addr() as rte_is_broadcast_ether_addr().- rename is_universal_ether_addr() as rte_is_universal_ether_addr().- rename is_local_admin_ether_addr() as rte_is_local_admin_ether_addr().- rename is_valid_assigned_ether_addr() as rte_is_valid_assigned_ether_addr().- rename eth_random_addr() as rte_eth_random_addr().- rename ether_addr_copy() as rte_ether_addr_copy().- rename ether_format_addr() as rte_ether_format_addr().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]>
replace snprintf with strlcpyDo a global replace of snprintf(..."%s",...) with strlcpy, adding in therte_string_fns.h header if needed. The function changes in this patch wereauto-generated via
replace snprintf with strlcpyDo a global replace of snprintf(..."%s",...) with strlcpy, adding in therte_string_fns.h header if needed. The function changes in this patch wereauto-generated via command: spatch --sp-file devtools/cocci/strlcpy.cocci --dir . --in-placeand then the files edited using awk to add in the missing header: gawk -i inplace '/include <rte_/ && ! seen { \ print "#include <rte_string_fns.h>"; seen=1} {print}'Signed-off-by: Bruce Richardson <[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]>
build/linux: rename macro from LINUXAPP to LINUXRename the macro to make things shorter and more comprehensible. Forboth meson and make builds, keep the old macro around for backwardcompatibility
build/linux: rename macro from LINUXAPP to LINUXRename the macro to make things shorter and more comprehensible. Forboth meson and make builds, keep the old macro around for backwardcompatibility.Signed-off-by: Bruce Richardson <[email protected]>
examples/ethtool: fix two typosThis patch fixes 2 typos in examples/ethtool:There is no such thing as ethtool_ops::get_driverinfoIt should be get_drvinfo:see include/linux/ethtool.h in the kern
examples/ethtool: fix two typosThis patch fixes 2 typos in examples/ethtool:There is no such thing as ethtool_ops::get_driverinfoIt should be get_drvinfo:see include/linux/ethtool.h in the kernel tree.rte_net_change_mtu should be ndo_change_mtu:see include/linux/netdevice.h in the kernel tree.Fixes: bda68ab9d1e7 ("examples/ethtool: add user-space ethtool sample application")Cc: [email protected]Signed-off-by: Rami Rosen <[email protected]>Acked-by: Remy Horton <[email protected]>
examples: make Linux environment check consistentSome Makefiles are using CONFIG_RTE_EXEC_ENV and othersare using CONFIG_RTE_EXEC_ENV_LINUXAPP.Use the latter one for consistency.We could remove
examples: make Linux environment check consistentSome Makefiles are using CONFIG_RTE_EXEC_ENV and othersare using CONFIG_RTE_EXEC_ENV_LINUXAPP.Use the latter one for consistency.We could remove CONFIG_RTE_EXEC_ENV later if considered useless.Signed-off-by: Thomas Monjalon <[email protected]>
examples/ethtool: add a new command module-eepromAdd a new command "module-eeprom" to get the data of pluginmodule EEPROM.Signed-off-by: Zijie Pan <[email protected]>Reviewed-by: Ferruh Yigit
examples/ethtool: add a new command module-eepromAdd a new command "module-eeprom" to get the data of pluginmodule EEPROM.Signed-off-by: Zijie Pan <[email protected]>Reviewed-by: Ferruh Yigit <[email protected]>Acked-by: Remy Horton <[email protected]>
ethdev: replace bus specific struct with generic devPublic struct rte_eth_dev_info has a "struct rte_pci_device" field in italthough it is common for all ethdev in all buses.Replacing pci specif
ethdev: replace bus specific struct with generic devPublic struct rte_eth_dev_info has a "struct rte_pci_device" field in italthough it is common for all ethdev in all buses.Replacing pci specific struct with generic device struct and updatingplaces that are using pci device in a way to get this information fromgeneric device.Signed-off-by: Ferruh Yigit <[email protected]>Reviewed-by: David Marchand <[email protected]>Acked-by: Pablo de Lara <[email protected]>Acked-by: Thomas Monjalon <[email protected]>
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 <[email protected]>
12