#
719834a6 |
| 20-Sep-2024 |
Mattias Rönnblom <mattias.ronnblom@ericsson.com> |
use C linkage where appropriate in headers
Assure that 'extern "C" { /../ }' do not cover files included from a particular header file, and address minor issues resulting from this change of order.
use C linkage where appropriate in headers
Assure that 'extern "C" { /../ }' do not cover files included from a particular header file, and address minor issues resulting from this change of order.
Dealing with C++ should delegate to the individual include file level, rather than being imposed by the user of that file. For example, forcing C linkage prevents __Generic macros being replaced with overloaded static inline functions in C++ translation units.
Eliminate 'extern "C"' from files which do not declare any symbols (e.g., only macros or struct types).
On the other hand, the headers check is too naive in assuming that all headers must contain a 'extern "C"'. Such a check was added in commit 1ee492bdc4ff ("buildtools/chkincs: check missing C++ guards"). Since this current change results in many headers not containing such a token, remove the check for 'extern "C"' until we have a better implementation.
Signed-off-by: Mattias Rönnblom <mattias.ronnblom@ericsson.com> Acked-by: Morten Brørup <mb@smartsharesystems.com> Signed-off-by: David Marchand <david.marchand@redhat.com>
show more ...
|
#
48c33e8c |
| 11-Aug-2023 |
Sivaprasad Tummala <sivaprasad.tummala@amd.com> |
eal: remove number of cpuflags from API
The RTE_CPUFLAG_NUMFLAGS enum value was mainly a canary for internal use. Yet, it could be passed by an application to rte_cpu_get_flag_enabled() / rte_cpu_ge
eal: remove number of cpuflags from API
The RTE_CPUFLAG_NUMFLAGS enum value was mainly a canary for internal use. Yet, it could be passed by an application to rte_cpu_get_flag_enabled() / rte_cpu_get_flag_name(). So, even though passing this value to those functions is debattable, changing its meaning (by adding a new CPU feature for example) would impact ABI compatibility.
This patch removes RTE_CPUFLAG_NUMFLAGS to avoid such future ABI compatibility issue.
Signed-off-by: Sivaprasad Tummala <sivaprasad.tummala@amd.com> Signed-off-by: David Marchand <david.marchand@redhat.com>
show more ...
|
#
845048c5 |
| 07-Jul-2021 |
Juraj Linkeš <juraj.linkes@pantheon.tech> |
eal/arm: update CPU flags
There are two execution states on armv8 architecture, aarch64 and aarch32. Add PLATFORM_STR for the latter and update RTE_ARCH_* flags according to e9b97392640.
Signed-off
eal/arm: update CPU flags
There are two execution states on armv8 architecture, aarch64 and aarch32. Add PLATFORM_STR for the latter and update RTE_ARCH_* flags according to e9b97392640.
Signed-off-by: Juraj Linkeš <juraj.linkes@pantheon.tech>
show more ...
|
#
99a2dd95 |
| 20-Apr-2021 |
Bruce Richardson <bruce.richardson@intel.com> |
lib: remove librte_ prefix from directory names
There is no reason for the DPDK libraries to all have 'librte_' prefix on the directory names. This prefix makes the directory names longer and also m
lib: remove librte_ prefix from directory names
There is no reason for the DPDK libraries to all have 'librte_' prefix on the directory names. This prefix makes the directory names longer and also makes it awkward to add features referring to individual libraries in the build - should the lib names be specified with or without the prefix. Therefore, we can just remove the library prefix and use the library's unique name as the directory name, i.e. 'eal' rather than 'librte_eal'
Signed-off-by: Bruce Richardson <bruce.richardson@intel.com>
show more ...
|