|
Revision tags: v24.11, v24.11-rc4, v24.11-rc3, v24.11-rc2, v24.11-rc1 |
|
| #
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 ...
|
|
Revision tags: v24.07, v24.07-rc4, v24.07-rc3, v24.07-rc2, v24.07-rc1, v24.03, v24.03-rc4, v24.03-rc3, v24.03-rc2, v24.03-rc1, v23.11, v23.11-rc4, v23.11-rc3, v23.11-rc2 |
|
| #
07b9a30a |
| 20-Oct-2023 |
Stephen Hemminger <stephen@networkplumber.org> |
random: promote floating point number API as stable
This API was added in 2020.
Signed-off-by: Stephen Hemminger <stephen@networkplumber.org> Acked-by: Mattias Rönnblom <mattias.ronnblom@ericsson.c
random: promote floating point number API as stable
This API was added in 2020.
Signed-off-by: Stephen Hemminger <stephen@networkplumber.org> Acked-by: Mattias Rönnblom <mattias.ronnblom@ericsson.com>
show more ...
|
|
Revision tags: v23.11-rc1 |
|
| #
94278045 |
| 04-Oct-2023 |
Mattias Rönnblom <mattias.ronnblom@ericsson.com> |
random: clarify PRNG thread safety guarantees
Clarify MT safety guarantees for unregistered non-EAL threads calling PRNG functions in rte_random.h.
Clarify that rte_srand() is not MT safe in regard
random: clarify PRNG thread safety guarantees
Clarify MT safety guarantees for unregistered non-EAL threads calling PRNG functions in rte_random.h.
Clarify that rte_srand() is not MT safe in regards to calls to rte_rand_max() and rte_drand().
Suggested-by: Stephen Hemminger <stephen@networkplumber.org> Signed-off-by: Mattias Rönnblom <mattias.ronnblom@ericsson.com> Acked-by: Morten Brørup <mb@smartsharesystems.com>
show more ...
|
|
Revision tags: v23.07, v23.07-rc4, v23.07-rc3, v23.07-rc2, v23.07-rc1, v23.03, v23.03-rc4, v23.03-rc3, v23.03-rc2, v23.03-rc1 |
|
| #
7ea0ac41 |
| 05-Dec-2022 |
Mattias Rönnblom <mattias.ronnblom@ericsson.com> |
eal: use dedicated PRNG for non-lcore threads
Prior to this change, unregistered non-EAL threads shared a PRNG instance with the main lcore. The main lcore may well be used for fast path processing,
eal: use dedicated PRNG for non-lcore threads
Prior to this change, unregistered non-EAL threads shared a PRNG instance with the main lcore. The main lcore may well be used for fast path processing, potentially making rte_rand() calls in the process. It should not need to synchronize with control threads.
With this change, all unregistered non-EAL threads share one dedicated PRNG instance.
The API documentation is updated to use the proper terminology when referring to threads equipped with an lcore id.
Signed-off-by: Mattias Rönnblom <mattias.ronnblom@ericsson.com> Acked-by: Morten Brørup <mb@smartsharesystems.com>
show more ...
|
|
Revision tags: v22.11, v22.11-rc4, v22.11-rc3, v22.11-rc2, v22.11-rc1, v22.07, v22.07-rc4, v22.07-rc3, v22.07-rc2, v22.07-rc1 |
|
| #
0cd10724 |
| 26-May-2022 |
Stephen Hemminger <stephen@networkplumber.org> |
eal: provide pseudo-random floating point number
The PIE code and other applications can benefit from having a fast way to get a random floating point value. This new function is equivalent to drand
eal: provide pseudo-random floating point number
The PIE code and other applications can benefit from having a fast way to get a random floating point value. This new function is equivalent to drand() in the standard library.
Signed-off-by: Stephen Hemminger <stephen@networkplumber.org> Acked-by: Ray Kinsella <mdr@ashroe.eu>
show more ...
|
|
Revision tags: v22.03, v22.03-rc4, v22.03-rc3, v22.03-rc2, v22.03-rc1, v21.11, v21.11-rc4, v21.11-rc3, v21.11-rc2, v21.11-rc1 |
|
| #
15a1e00a |
| 01-Sep-2021 |
Mattias Rönnblom <mattias.ronnblom@ericsson.com> |
eal: promote random generator with upper bound to stable
Remove experimental tag from rte_rand_max().
Signed-off-by: Mattias Rönnblom <mattias.ronnblom@ericsson.com> Acked-by: Ray Kinsella <mdr@ash
eal: promote random generator with upper bound to stable
Remove experimental tag from rte_rand_max().
Signed-off-by: Mattias Rönnblom <mattias.ronnblom@ericsson.com> Acked-by: Ray Kinsella <mdr@ashroe.eu>
show more ...
|
|
Revision tags: v21.08, v21.08-rc4, v21.08-rc3, v21.08-rc2, v21.08-rc1, v21.05, v21.05-rc4, v21.05-rc3, v21.05-rc2, v21.05-rc1 |
|
| #
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 ...
|