|
Revision tags: v24.11, v24.11-rc4, v24.11-rc3, v24.11-rc2, v24.11-rc1 |
|
| #
ceb5914c |
| 14-Oct-2024 |
Robin Jarry <rjarry@redhat.com> |
telemetry: register command with private argument
Add a new rte_telemetry_register_cmd_arg public function to register a telemetry endpoint with a callback that takes an additional private argument.
telemetry: register command with private argument
Add a new rte_telemetry_register_cmd_arg public function to register a telemetry endpoint with a callback that takes an additional private argument.
This will be used in the next commit to protect ethdev endpoints with a lock.
Update perform_command() to take a struct callback object copied from the list of callbacks and invoke the correct function pointer.
Signed-off-by: Robin Jarry <rjarry@redhat.com> Acked-by: Bruce Richardson <bruce.richardson@intel.com>
show more ...
|
| #
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, v23.11-rc1, v23.07, v23.07-rc4, v23.07-rc3, v23.07-rc2 |
|
| #
3e4c5be9 |
| 14-Jun-2023 |
Thomas Monjalon <thomas@monjalon.net> |
lib: remove extra asterisks ending comment blocks
A comment should always be terminated with */
Extra asterisks were found with this kind of command: git grep '\* *\*/' lib
Signed-off-by: Thomas
lib: remove extra asterisks ending comment blocks
A comment should always be terminated with */
Extra asterisks were found with this kind of command: git grep '\* *\*/' lib
Signed-off-by: Thomas Monjalon <thomas@monjalon.net> Acked-by: Bruce Richardson <bruce.richardson@intel.com>
show more ...
|
|
Revision tags: v23.07-rc1, v23.03, v23.03-rc4, v23.03-rc3, v23.03-rc2, v23.03-rc1 |
|
| #
21fc3d76 |
| 07-Feb-2023 |
Robin Jarry <rjarry@redhat.com> |
telemetry: fix API documentation
The doc string was left to its previous definition. Make it explicit that RTE_TEL_INT_VAL is a 64-bit signed integer.
Fixes: 8e639c7c50cc ("telemetry: use 64-bit si
telemetry: fix API documentation
The doc string was left to its previous definition. Make it explicit that RTE_TEL_INT_VAL is a 64-bit signed integer.
Fixes: 8e639c7c50cc ("telemetry: use 64-bit signed values in API")
Signed-off-by: Robin Jarry <rjarry@redhat.com> Reviewed-by: Morten Brørup <mb@smartsharesystems.com> Acked-by: Bruce Richardson <bruce.richardson@intel.com>
show more ...
|
| #
8e639c7c |
| 12-Jan-2023 |
Bruce Richardson <bruce.richardson@intel.com> |
telemetry: use 64-bit signed values in API
While the unsigned values added to telemetry dicts/arrays were up to 64-bits in size, the signed values were only up to 32-bits. We can standardize the API
telemetry: use 64-bit signed values in API
While the unsigned values added to telemetry dicts/arrays were up to 64-bits in size, the signed values were only up to 32-bits. We can standardize the API by having both int and uint functions take 64-bit values. For ABI compatibility, we use function versioning to ensure older binaries can still use the older functions taking a 32-bit parameter.
Suggested-by: Morten Brørup <mb@smartsharesystems.com> Signed-off-by: Bruce Richardson <bruce.richardson@intel.com> Acked-by: Morten Brørup <mb@smartsharesystems.com> Acked-by: Tyler Retzlaff <roretzla@linux.microsoft.com> Acked-by: Ciara Power <ciara.power@intel.com>
show more ...
|
| #
b2fafe2d |
| 12-Jan-2023 |
Bruce Richardson <bruce.richardson@intel.com> |
telemetry: mark u64 functions as deprecated
Add a deprecation notice for the renaming of the telemetry data u64/uint functions, and point users to the newer versions of them when building. To do thi
telemetry: mark u64 functions as deprecated
Add a deprecation notice for the renaming of the telemetry data u64/uint functions, and point users to the newer versions of them when building. To do this, we also need to mark the renamed versions as stable, rather than experimental.
Signed-off-by: Bruce Richardson <bruce.richardson@intel.com> Acked-by: Ciara Power <ciara.power@intel.com>
show more ...
|
| #
cc4f33d9 |
| 12-Jan-2023 |
Bruce Richardson <bruce.richardson@intel.com> |
telemetry: add uint type as alias for u64
To match the "_int" suffix for telemetry data functions taking signed values, we can add new functions with the "_uint" suffix for unsigned ones. While late
telemetry: add uint type as alias for u64
To match the "_int" suffix for telemetry data functions taking signed values, we can add new functions with the "_uint" suffix for unsigned ones. While later patches will deprecate the old public functions, for now we can just add the new functions as aliases or duplicates of the older ones with the "u64" suffix.
Internal functions can be directly renamed, without any need for aliasing or deprecation.
Suggested-by: Morten Brørup <mb@smartsharesystems.com> Signed-off-by: Bruce Richardson <bruce.richardson@intel.com> Acked-by: Morten Brørup <mb@smartsharesystems.com> Acked-by: Tyler Retzlaff <roretzla@linux.microsoft.com> Acked-by: Ciara Power <ciara.power@intel.com>
show more ...
|
| #
2d2c55e4 |
| 12-Jan-2023 |
Bruce Richardson <bruce.richardson@intel.com> |
telemetry: rename unsigned 64-bit enum value to uint
For telemetry data, rather than having unsigned 64-bit values and signed 32-bit values, we want to just have unsigned and signed values, each sto
telemetry: rename unsigned 64-bit enum value to uint
For telemetry data, rather than having unsigned 64-bit values and signed 32-bit values, we want to just have unsigned and signed values, each stored with the max bit-width i.e. 64-bits. To that end, we rename the U64 enum entry to "UINT" to have a more generic name
For backward API-level compatibility, we can use a macro to alias the old name to the new.
Suggested-by: Morten Brørup <mb@smartsharesystems.com> Signed-off-by: Bruce Richardson <bruce.richardson@intel.com> Acked-by: Morten Brørup <mb@smartsharesystems.com> Acked-by: Tyler Retzlaff <roretzla@linux.microsoft.com> Acked-by: Ciara Power <ciara.power@intel.com>
show more ...
|
| #
82c33481 |
| 19-Dec-2022 |
Huisong Li <lihuisong@huawei.com> |
telemetry: support adding integer as hexadecimal
Sometimes displaying an unsigned integer value as hexadecimal encoded style is more expected for human consumption, such as, offload capability and d
telemetry: support adding integer as hexadecimal
Sometimes displaying an unsigned integer value as hexadecimal encoded style is more expected for human consumption, such as, offload capability and device flag. This patch introduces two APIs to add unsigned integer value as hexadecimal encoded string to array or dictionary. And user can choose whether the stored value is padded to the specified width.
Signed-off-by: Huisong Li <lihuisong@huawei.com> Acked-by: Morten Brørup <mb@smartsharesystems.com> Acked-by: Chengwen Feng <fengchengwen@huawei.com> Acked-by: Bruce Richardson <bruce.richardson@intel.com>
show more ...
|
| #
f7b74387 |
| 19-Dec-2022 |
Huisong Li <lihuisong@huawei.com> |
telemetry: move include after guard
The "stdint.h" header is outside '_RTE_TELEMETRY_H_' macro, which cause this header is unconditional. So this patch moves this header to inside '_RTE_TELEMETRY_H_
telemetry: move include after guard
The "stdint.h" header is outside '_RTE_TELEMETRY_H_' macro, which cause this header is unconditional. So this patch moves this header to inside '_RTE_TELEMETRY_H_'.
Fixes: 99a2dd955fba ("lib: remove librte_ prefix from directory names") Cc: stable@dpdk.org
Signed-off-by: Huisong Li <lihuisong@huawei.com> Acked-by: Morten Brørup <mb@smartsharesystems.com> Acked-by: Chengwen Feng <fengchengwen@huawei.com> Acked-by: Bruce Richardson <bruce.richardson@intel.com>
show more ...
|
|
Revision tags: v22.11, v22.11-rc4, v22.11-rc3, v22.11-rc2 |
|
| #
1094dd94 |
| 28-Oct-2022 |
David Marchand <david.marchand@redhat.com> |
cleanup compat header inclusions
With symbols going though experimental/stable stages, we accumulated a lot of discrepancies about inclusion of the rte_compat.h header.
Some headers are including i
cleanup compat header inclusions
With symbols going though experimental/stable stages, we accumulated a lot of discrepancies about inclusion of the rte_compat.h header.
Some headers are including it where unneeded, while others rely on implicit inclusion.
Fix unneeded inclusions: $ git grep -l include..rte_compat.h | xargs grep -LE '__rte_(internal|experimental)' | xargs sed -i -e '/#include..rte_compat.h/d'
Fix missing inclusion, by inserting rte_compat.h before the first inclusion of a DPDK header: $ git grep -lE '__rte_(internal|experimental)' | xargs grep -L include..rte_compat.h | xargs sed -i -e \ '0,/#include..\(rte_\|.*pmd.h.$\)/{ s/\(#include..\(rte_\|.*pmd.h.$\)\)/#include <rte_compat.h>\n\1/ }'
Fix missing inclusion, by inserting rte_compat.h after the last inclusion of a non DPDK header: $ for file in $(git grep -lE '__rte_(internal|experimental)' | xargs grep -L include..rte_compat.h); do tac $file > $file.$$ sed -i -e \ '0,/#include../{ s/\(#include..*$\)/#include <rte_compat.h>\n\n\1/ }' $file.$$ tac $file.$$ > $file rm $file.$$ done
Fix missing inclusion, by inserting rte_compat.h after the header guard: $ git grep -lE '__rte_(internal|experimental)' | xargs grep -L include..rte_compat.h | xargs sed -i -e \ '0,/#define/{ s/\(#define .*$\)/\1\n\n#include <rte_compat.h>/ }'
And finally, exclude rte_compat.h itself. $ git checkout lib/eal/include/rte_compat.h
At the end of all this, we have a clean tree: $ git grep -lE '__rte_(internal|experimental)' | xargs grep -L include..rte_compat.h buildtools/check-symbols.sh devtools/checkpatches.sh doc/guides/contributing/abi_policy.rst doc/guides/rel_notes/release_20_11.rst lib/eal/include/rte_compat.h
Signed-off-by: David Marchand <david.marchand@redhat.com> Acked-by: Bruce Richardson <bruce.richardson@intel.com> Acked-by: Andrew Rybchenko <andrew.rybchenko@oktetlabs.ru>
show more ...
|
|
Revision tags: v22.11-rc1 |
|
| #
2537fb0c |
| 09-Sep-2022 |
Bruce Richardson <bruce.richardson@intel.com> |
telemetry: limit characters allowed in dictionary names
To save issues with encoding the names of values in dicts, we limit the allowed names to a subset of character values. This list of allowed ch
telemetry: limit characters allowed in dictionary names
To save issues with encoding the names of values in dicts, we limit the allowed names to a subset of character values. This list of allowed characters can be expanded as necessary in future.
Signed-off-by: Bruce Richardson <bruce.richardson@intel.com> Acked-by: Ciara Power <ciara.power@intel.com> Acked-by: Morten Brørup <mb@smartsharesystems.com> Acked-by: Chengwen Feng <fengchengwen@huawei.com>
show more ...
|
|
Revision tags: v22.07, v22.07-rc4, v22.07-rc3, v22.07-rc2 |
|
| #
448e01f1 |
| 22-Jun-2022 |
Stephen Hemminger <stephen@networkplumber.org> |
lib: document free functions
Make sure all functions which use the convention that XXX_free(NULL) is a nop are all documented.
The wording is chosen to match the documentation of free(3). "If ptr i
lib: document free functions
Make sure all functions which use the convention that XXX_free(NULL) is a nop are all documented.
The wording is chosen to match the documentation of free(3). "If ptr is NULL, no operation is performed."
Signed-off-by: Stephen Hemminger <stephen@networkplumber.org> Acked-by: Chengwen Feng <fengchengwen@huawei.com> [David: squashed with other series updates, unified wording]
show more ...
|
|
Revision tags: v22.07-rc1, v22.03, v22.03-rc4, v22.03-rc3, v22.03-rc2 |
|
| #
cf8e6263 |
| 16-Feb-2022 |
Brian Dooley <brian.dooley@intel.com> |
telemetry: add missing C++ guards
Some public header files were missing 'extern "C"' C++ guards, and couldn't be used by C++ applications. Add the missing guards.
Fixes: 8877ac688b52 ("telemetry: i
telemetry: add missing C++ guards
Some public header files were missing 'extern "C"' C++ guards, and couldn't be used by C++ applications. Add the missing guards.
Fixes: 8877ac688b52 ("telemetry: introduce infrastructure") Cc: stable@dpdk.org
Signed-off-by: Brian Dooley <brian.dooley@intel.com> Acked-by: Bruce Richardson <bruce.richardson@intel.com> Acked-by: Tyler Retzlaff <roretzla@linux.microsoft.com>
show more ...
|
|
Revision tags: v22.03-rc1, v21.11, v21.11-rc4, v21.11-rc3, v21.11-rc2, v21.11-rc1 |
|
| #
b8a0fbab |
| 15-Sep-2021 |
Bruce Richardson <bruce.richardson@intel.com> |
telemetry: promote API to stable
The telemetry APIs have been present and unchanged for >1 year now, so remove experimental tag from them.
Signed-off-by: Bruce Richardson <bruce.richardson@intel.co
telemetry: promote API to stable
The telemetry APIs have been present and unchanged for >1 year now, so remove experimental tag from them.
Signed-off-by: Bruce Richardson <bruce.richardson@intel.com> Acked-by: Ciara Power <ciara.power@intel.com> Acked-by: Ray Kinsella <mdr@ashroe.eu>
show more ...
|
| #
6787d0af |
| 28-Aug-2021 |
Dmitry Kozlyuk <dmitry.kozliuk@gmail.com> |
lib: remove sched.h from public headers
Public headers including POSIX-specific <sched.h> were unusable on Windows. These includes were superfluous, remove them.
Signed-off-by: Dmitry Kozlyuk <dmit
lib: remove sched.h from public headers
Public headers including POSIX-specific <sched.h> were unusable on Windows. These includes were superfluous, remove them.
Signed-off-by: Dmitry Kozlyuk <dmitry.kozliuk@gmail.com> Acked-by: William Tu <u9012063@gmail.com>
show more ...
|
| #
d2671e64 |
| 14-Sep-2021 |
Radu Nicolau <radu.nicolau@intel.com> |
telemetry: support dict of dicts
Add support for dicts of dicts to telemetry library. Increase the max string size to 128.
Signed-off-by: Declan Doherty <declan.doherty@intel.com> Signed-off-by: Ra
telemetry: support dict of dicts
Add support for dicts of dicts to telemetry library. Increase the max string size to 128.
Signed-off-by: Declan Doherty <declan.doherty@intel.com> Signed-off-by: Radu Nicolau <radu.nicolau@intel.com> Acked-by: Ciara Power <ciara.power@intel.com>
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 |
|
| #
64307fad |
| 06-May-2021 |
David Marchand <david.marchand@redhat.com> |
telemetry: remove static limit on callbacks count
This code is not performance sensitive and can be switched to dynamic allocations.
Signed-off-by: David Marchand <david.marchand@redhat.com> Acked-
telemetry: remove static limit on callbacks count
This code is not performance sensitive and can be switched to dynamic allocations.
Signed-off-by: David Marchand <david.marchand@redhat.com> Acked-by: Ciara Power <ciara.power@intel.com>
show more ...
|
|
Revision tags: v21.05-rc2 |
|
| #
dbab5118 |
| 03-May-2021 |
Jerin Jacob <jerinj@marvell.com> |
telemetry: hide internal define
Remove TELEMETRY_MAX_CALLBACKS symbol from the public rte_telemetry.h header file.
Signed-off-by: Jerin Jacob <jerinj@marvell.com> Acked-by: Bruce Richardson <bruce.
telemetry: hide internal define
Remove TELEMETRY_MAX_CALLBACKS symbol from the public rte_telemetry.h header file.
Signed-off-by: Jerin Jacob <jerinj@marvell.com> Acked-by: Bruce Richardson <bruce.richardson@intel.com> Acked-by: Ciara Power <ciara.power@intel.com>
show more ...
|
|
Revision tags: 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 ...
|