[PATCH] eventdev/eth_tx: fix service function

2023-01-07 Thread Naga Harish K S V
adapter service function is using RTE_ETH_FOREACH_DEV() macro for looping through all available eth devices and flushing any pending buffered packets. When Traffic Management nodes (vports) are added and deleted dynamically, there is a possibility of accessing the device info memory beyond the all

[PATCH 3/3] eventdev/crypto: add params set/get APIs

2023-01-07 Thread Naga Harish K S V
The adapter configuration parameters defined in the ``struct rte_event_crypto_adapter_params`` can be configured and retrieved using ``rte_event_crypto_adapter_set_params`` and ``rte_event_eth_rx_adapter_get_params`` respectively. Signed-off-by: Naga Harish K S V --- app/test/test_event_crypto_a

[PATCH 2/3] eventdev/eth_tx: add params set/get APIs

2023-01-07 Thread Naga Harish K S V
The adapter configuration parameters defined in the ``struct rte_event_eth_tx_adapter_params`` can be configured and retrieved using ``rte_event_eth_tx_adapter_set_params`` and ``rte_event_eth_tx_adapter_get_params`` respectively. Signed-off-by: Naga Harish K S V --- app/test/test_event_eth_tx_a

[PATCH 1/3] eventdev/eth_rx: add params set/get APIs

2023-01-07 Thread Naga Harish K S V
The adapter configuration parameters defined in the ``struct rte_event_eth_rx_adapter_config_params`` can be configured and retrieved using ``rte_event_eth_rx_adapter_set_params`` and ``rte_event_eth_tx_adapter_get_params`` respectively. Signed-off-by: Naga Harish K S V --- app/test/test_event_e

[PATCH 2/2] test/reorder: fix double free of drained buffers

2023-01-07 Thread Volodymyr Fialko
Set to zero array of drained buffers after free, to prevent freeing them one more time. Discovered with enabled `RTE_LIBRTE_MEMPOOL_DEBUG`. Fixes: ecd867faa860 ("test/reorder: fix freeing mbuf twice") Signed-off-by: Volodymyr Fialko --- app/test/test_reorder.c | 2 ++ 1 file changed, 2 insertio

[PATCH 1/2] reorder: invalidate buf from ready queue in drain

2023-01-07 Thread Volodymyr Fialko
Set drained buffers from ready queue to NULL, since their ownership returned to user. Otherwise it's possible that both user and library will attempt to free the packet. Signed-off-by: Volodymyr Fialko --- lib/reorder/rte_reorder.c | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/reorder/

[PATCH 0/2] lib/reorder: fix drain/free issues

2023-01-07 Thread Volodymyr Fialko
This patch address issues with reorder drain/free, discovered with enabled `RTE_LIBRTE_MEMPOOL_DEBUG`. Volodymyr Fialko (2): reorder: invalidate buf from ready queue in drain test/reorder: fix double free of drained buffers app/test/test_reorder.c | 2 ++ lib/reorder/rte_reorder.c | 1 + 2

[PATCH] bus: fix leak for devices without driver

2023-01-07 Thread Volodymyr Fialko
For devices not assigned to any driver, we leak a pci device object since it is never freed from the PCI bus device list, reported by ASAN. Fixes: 1cab1a40ea9b ("bus: cleanup devices on shutdown") Signed-off-by: Volodymyr Fialko --- drivers/bus/pci/pci_common.c | 3 ++- drivers/bus/vdev/vdev.c

RE: [PATCH v3 3/3] test/bitcount: add bitcount tests

2023-01-07 Thread Morten Brørup
> From: Tyler Retzlaff [mailto:roret...@linux.microsoft.com] > Sent: Friday, 6 January 2023 23.02 > > basic unit test of following functions > > rte_clz32 > rte_clz64 > rte_ctz32 > rte_ctz64 > > Signed-off-by: Tyler Retzlaff > --- Series-acked-by: Morten Brørup

[PATCH] devtools: parallelize ABI check

2023-01-07 Thread Thomas Monjalon
Generation and comparison of ABI dumps are done on multiple cores thanks to xargs -P0. It can accelerate this long step by 5 in my tests. xargs reports a global error if one of the process has an error. Running a shell function with xargs requires to export it with -f. Signed-off-by: Thomas Monj

Re: [PATCH v3 3/3] test/bitcount: add bitcount tests

2023-01-07 Thread Thomas Monjalon
06/01/2023 23:01, Tyler Retzlaff: > basic unit test of following functions > > rte_clz32 > rte_clz64 > rte_ctz32 > rte_ctz64 This can be squashed with implementation in previous patch.