| 36edf3cc | 20-Jul-2021 |
Rakesh Kudurumalla <[email protected]> |
test: avoid hang if queues are full and Tx fails
Current pmd_perf_autotest() in continuous mode tries to enqueue MAX_TRAFFIC_BURST completely before starting the test. Some drivers cannot accept com
test: avoid hang if queues are full and Tx fails
Current pmd_perf_autotest() in continuous mode tries to enqueue MAX_TRAFFIC_BURST completely before starting the test. Some drivers cannot accept complete MAX_TRAFFIC_BURST even though rx+tx desc count can fit it. This patch changes behaviour to stop enqueuing after few retries.
Fixes: 002ade70e933 ("app/test: measure cycles per packet in Rx/Tx") Cc: [email protected]
Signed-off-by: Rakesh Kudurumalla <[email protected]>
show more ...
|
| 981a0257 | 11-May-2022 |
Stanislaw Kardach <[email protected]> |
test/ring: remove excessive inlining
Forcing inlining in test_ring_enqueue and test_ring_dequeue can cause the compiled code to grow extensively when compiled with no optimization (-O0 or -Og). This
test/ring: remove excessive inlining
Forcing inlining in test_ring_enqueue and test_ring_dequeue can cause the compiled code to grow extensively when compiled with no optimization (-O0 or -Og). This is default in the meson's debug configuration. This can collide with compiler bugs and cause issues during linking of unit tests where the api_type or esize are non-const variables causing inlining cascade. In perf tests this is not the case in perf-tests as esize and api_type are const values.
One such case was discovered when porting DPDK to RISC-V. GCC 11.2 (and no fix still in 12.1) is generating a short relative jump instruction (J <offset>) for goto and for loops. When loop body grows extensively in ring test, the target offset goes beyond supported offfset of +/- 1MB from PC. This is an obvious bug in the GCC as RISC-V has a two-instruction construct to jump to any absolute address (AUIPC+JALR).
However there is no reason to force inlining as the test code works perfectly fine without it.
GCC has a bug report for a similar case (with conditionals): https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93062
Fixes: a9fe152363e2 ("test/ring: add custom element size functional tests")
Signed-off-by: Stanislaw Kardach <[email protected]> Acked-by: Bruce Richardson <[email protected]> Reviewed-by: Honnappa Nagarahalli <[email protected]> Acked-by: Konstantin Ananyev <[email protected]>
show more ...
|
| 04e53de9 | 12-May-2022 |
Tyler Retzlaff <[email protected]> |
test/threads: add unit test
Establish unit test for testing thread api. Initial unit tests for rte_thread_{get,set}_affinity_by_id().
Signed-off-by: Narcisa Vasile <[email protected]> Si
test/threads: add unit test
Establish unit test for testing thread api. Initial unit tests for rte_thread_{get,set}_affinity_by_id().
Signed-off-by: Narcisa Vasile <[email protected]> Signed-off-by: Tyler Retzlaff <[email protected]>
show more ...
|
| deb450c4 | 16-May-2022 |
Shijith Thotton <[email protected]> |
test/event: set queue attributes at runtime
Added test cases to test changing of queue QoS attributes priority, weight and affinity at runtime.
Signed-off-by: Shijith Thotton <[email protected]>
test/event: set queue attributes at runtime
Added test cases to test changing of queue QoS attributes priority, weight and affinity at runtime.
Signed-off-by: Shijith Thotton <[email protected]> Acked-by: Jerin Jacob <[email protected]>
show more ...
|
| c0c305ee | 05-May-2022 |
David Marchand <[email protected]> |
ci: build some job with ASan
Enable ASan, this can greatly help identify leaks and buffer overflows. Running unit tests relying on multiprocess is unreliable with ASan enabled, so skip them.
Signed
ci: build some job with ASan
Enable ASan, this can greatly help identify leaks and buffer overflows. Running unit tests relying on multiprocess is unreliable with ASan enabled, so skip them.
Signed-off-by: David Marchand <[email protected]> Acked-by: Aaron Conole <[email protected]>
show more ...
|
| 48ff13ef | 05-May-2022 |
David Marchand <[email protected]> |
test/mem: disable ASan when accessing unallocated memory
As described in bugzilla, ASan reports accesses to all memory segment as invalid, since those parts have not been allocated with rte_malloc.
test/mem: disable ASan when accessing unallocated memory
As described in bugzilla, ASan reports accesses to all memory segment as invalid, since those parts have not been allocated with rte_malloc. Move __rte_no_asan to rte_common.h and disable ASan on a part of the test.
Bugzilla ID: 880 Fixes: 6cc51b1293ce ("mem: instrument allocator for ASan") Cc: [email protected]
Signed-off-by: David Marchand <[email protected]> Acked-by: Anatoly Burakov <[email protected]>
show more ...
|
| af0892af | 10-May-2022 |
Stanislaw Kardach <[email protected]> |
test/hash: report non HTM numbers for single thread
In hash_readwrite_perf_autotest a single read and write operation is benchmarked for both HTM and non HTM cases. However the result summary only s
test/hash: report non HTM numbers for single thread
In hash_readwrite_perf_autotest a single read and write operation is benchmarked for both HTM and non HTM cases. However the result summary only shows the HTM value. Therefore add the non HTM value for completeness.
Fixes: 0eb3726ebcf1 ("test/hash: add test for read/write concurrency")
Signed-off-by: Stanislaw Kardach <[email protected]> Acked-by: Yipeng Wang <[email protected]>
show more ...
|
| 0e4cc244 | 08-Apr-2022 |
Archana Muniganti <[email protected]> |
test/crypto: add AH AES-GMAC test vectors
Added AES_GMAC test vectors along with combined mode support.
Signed-off-by: Archana Muniganti <[email protected]> Acked-by: Akhil Goyal <gakhil@marvell
test/crypto: add AH AES-GMAC test vectors
Added AES_GMAC test vectors along with combined mode support.
Signed-off-by: Archana Muniganti <[email protected]> Acked-by: Akhil Goyal <[email protected]>
show more ...
|
| 77f46cda | 08-Apr-2022 |
Archana Muniganti <[email protected]> |
test/crypto: add AH test vectors
Added tunnel and transport AH known test vectors for SHA256 HMAC.
Signed-off-by: Archana Muniganti <[email protected]> Acked-by: Akhil Goyal <[email protected]> |
| 663d78be | 08-Apr-2022 |
Archana Muniganti <[email protected]> |
test/crypto: add AH under combined mode
Added auth only and null cipher + auth under combined mode for following combinations. 1. Tunnel IPv4 2. Transport IPv4
Signed-off-by: Archana Muniganti <mar
test/crypto: add AH under combined mode
Added auth only and null cipher + auth under combined mode for following combinations. 1. Tunnel IPv4 2. Transport IPv4
Signed-off-by: Archana Muniganti <[email protected]> Acked-by: Akhil Goyal <[email protected]>
show more ...
|
| a6699a6e | 21-Apr-2022 |
Vladimir Medvedkin <[email protected]> |
test/table: fix buffer overflow on lpm entry
This patch fixes stack buffer overflow reported by ASan.
Bugzilla ID: 820 Fixes: 5205954791cb ("app/test: packet framework unit tests") Cc: stable@dpdk.
test/table: fix buffer overflow on lpm entry
This patch fixes stack buffer overflow reported by ASan.
Bugzilla ID: 820 Fixes: 5205954791cb ("app/test: packet framework unit tests") Cc: [email protected]
Signed-off-by: Vladimir Medvedkin <[email protected]> Acked-by: Cristian Dumitrescu <[email protected]>
show more ...
|
| 55ae8965 | 22-Mar-2022 |
Tyler Retzlaff <[email protected]> |
test/bpf: skip test if libpcap is unavailable
test_bpf_convert is being conditionally registered depending on the presence of RTE_HAS_LIBPCAP except the UT unconditionally lists it as a test to run.
test/bpf: skip test if libpcap is unavailable
test_bpf_convert is being conditionally registered depending on the presence of RTE_HAS_LIBPCAP except the UT unconditionally lists it as a test to run.
When the UT runs test_bpf_convert test-dpdk can't find the registration and assumes the DPDK_TEST environment variable hasn't been defined resulting in test-dpdk dropping to interactive mode and subsequently waiting for the remainder of the UT fast-test timeout period before reporting the test as having timed out.
* unconditionally register test_bpf_convert, * if ! RTE_HAS_LIBPCAP provide a stub test_bpf_convert that reports the test is skipped similar to that done with the test_bpf test.
Fixes: 2eccf6afbea9 ("bpf: add function to convert classic BPF to DPDK BPF") Cc: [email protected]
Signed-off-by: Tyler Retzlaff <[email protected]> Acked-by: Stephen Hemminger <[email protected]> Acked-by: Konstantin Ananyev <[email protected]>
show more ...
|
| 78e7b29f | 10-Feb-2022 |
Stephen Hemminger <[email protected]> |
test/bpf: skip dump if conversion fails
If conversion of cBPF to eBPF fails (in rte_bpf_convert) then the test should not try and print the result.
Coverity issue: 373661 Fixes: 2eccf6afbea9 ("bpf:
test/bpf: skip dump if conversion fails
If conversion of cBPF to eBPF fails (in rte_bpf_convert) then the test should not try and print the result.
Coverity issue: 373661 Fixes: 2eccf6afbea9 ("bpf: add function to convert classic BPF to DPDK BPF") Cc: [email protected]
Signed-off-by: Stephen Hemminger <[email protected]> Acked-by: Konstantin Ananyev <[email protected]>
show more ...
|
| 6eccb0c9 | 07-Mar-2022 |
Haiyue Wang <[email protected]> |
graph: remove useless duplicate name check
The node clone API parameter 'name' is the new node's postfix name, not the final node name, so it makes no sense to check it. And the new name will be che
graph: remove useless duplicate name check
The node clone API parameter 'name' is the new node's postfix name, not the final node name, so it makes no sense to check it. And the new name will be checked duplicate when calling API '__rte_node_register'.
And update the test case to call clone API twice to check the real name duplicate.
Signed-off-by: Haiyue Wang <[email protected]> Acked-by: Jerin Jacob <[email protected]>
show more ...
|
| 3b0e34e8 | 25-Feb-2022 |
Pablo de Lara <[email protected]> |
test/efd: fix sockets mask size
Constant value 1 has a size of 32 bits, and shifting it more than 32 bits to the left overflows. 1ULL is needed to be able to get a 64-bit value.
Coverity ID: 375846
test/efd: fix sockets mask size
Constant value 1 has a size of 32 bits, and shifting it more than 32 bits to the left overflows. 1ULL is needed to be able to get a 64-bit value.
Coverity ID: 375846 Fixes: 8751a7e9832b ("efd: allow more CPU sockets in table creation") Cc: [email protected]
Signed-off-by: Pablo de Lara <[email protected]> Acked-by: Yipeng Wang <[email protected]>
show more ...
|
| b3eaaf1d | 15-Feb-2022 |
Junjie Wan <[email protected]> |
net/bonding: fix slaves initializing on MTU setting
If a initial process for the bonding device is like: rte_eth_dev_configure rte_eth_dev_set_mtu queue setup and start, etc.
Pass the vdev args to
net/bonding: fix slaves initializing on MTU setting
If a initial process for the bonding device is like: rte_eth_dev_configure rte_eth_dev_set_mtu queue setup and start, etc.
Pass the vdev args to application, and init bonding device only. -a 0000:af:00.0 --vdev="net_bonding0,mode=2,slave=0000:af:00.0"
It will fail and complain for the slave device "Port 0 must be configured before MTU set"
Test can be reproduced with ovs.
Fixes: b26bee10ee37 ("ethdev: forbid MTU set before device configure") Cc: [email protected]
Signed-off-by: Junjie Wan <[email protected]> Tested-by: Ferruh Yigit <[email protected]> Acked-by: Min Hu (Connor) <[email protected]>
show more ...
|
| 58161479 | 23-Feb-2022 |
Volodymyr Fialko <[email protected]> |
test/crypto: add L4 checksum case for transport mode
Added test case to verify L4 checksum offload in IPsec transport mode.
Signed-off-by: Volodymyr Fialko <[email protected]> Acked-by: Anoob Jos
test/crypto: add L4 checksum case for transport mode
Added test case to verify L4 checksum offload in IPsec transport mode.
Signed-off-by: Volodymyr Fialko <[email protected]> Acked-by: Anoob Joseph <[email protected]>
show more ...
|
| 42902e81 | 23-Feb-2022 |
Volodymyr Fialko <[email protected]> |
test/crypto: add TTL and hop limit decrement cases
Add test cases to verify TTL and hop limit decrement with lookaside IPsec offload.
Signed-off-by: Volodymyr Fialko <[email protected]> Acked-by:
test/crypto: add TTL and hop limit decrement cases
Add test cases to verify TTL and hop limit decrement with lookaside IPsec offload.
Signed-off-by: Volodymyr Fialko <[email protected]> Acked-by: Anoob Joseph <[email protected]>
show more ...
|
| 3387912f | 18-Feb-2022 |
Arek Kusztal <[email protected]> |
cryptodev: fix RSA key type name
This patch fixes misspelled RTE_RSA_KEY_TYPE_QT, this will prevent checkpach from complaining wherever change to RSA is being made.
Fixes: 26008aaed14c ("cryptodev:
cryptodev: fix RSA key type name
This patch fixes misspelled RTE_RSA_KEY_TYPE_QT, this will prevent checkpach from complaining wherever change to RSA is being made.
Fixes: 26008aaed14c ("cryptodev: add asymmetric xform and op definitions") Cc: [email protected]
Signed-off-by: Arek Kusztal <[email protected]> Acked-by: Akhil Goyal <[email protected]>
show more ...
|
| d02c6bfc | 31-Jan-2022 |
Tejasree Kondoj <[email protected]> |
test/crypto: add ESN and antireplay cases
Added test cases for IPsec ESN and Antireplay.
Signed-off-by: Tejasree Kondoj <[email protected]> Acked-by: Akhil Goyal <[email protected]> |
| 70c60cfd | 31-Jan-2022 |
Anoob Joseph <[email protected]> |
test/crypto: add copy and set DSCP cases
Add test cases to verify copy and set DSCP with IPv4 and IPv6 tunnels.
Signed-off-by: Anoob Joseph <[email protected]> Acked-by: Akhil Goyal <gakhil@marvel
test/crypto: add copy and set DSCP cases
Add test cases to verify copy and set DSCP with IPv4 and IPv6 tunnels.
Signed-off-by: Anoob Joseph <[email protected]> Acked-by: Akhil Goyal <[email protected]>
show more ...
|
| 727e6b78 | 16-Feb-2022 |
Bruce Richardson <[email protected]> |
test/dma: fix missing checks for device capacity
For some DMA HW devices, e.g. those using the idxd driver, the maximum burst size is configurable, which can lead to test failures if the value is se
test/dma: fix missing checks for device capacity
For some DMA HW devices, e.g. those using the idxd driver, the maximum burst size is configurable, which can lead to test failures if the value is set too small. Add explicit check for this to give reasonable error messages for devices which need their config adjusted.
Fixes: 1b86a66a30c2 ("test/dma: add more comprehensive copy tests") Fixes: 8fa5d2683940 ("test/dma: add burst capacity test") Cc: [email protected]
Signed-off-by: Bruce Richardson <[email protected]> Reviewed-by: Conor Walsh <[email protected]> Reviewed-by: Kevin Laatz <[email protected]>
show more ...
|
| 757f40e2 | 11-Feb-2022 |
Ciara Power <[email protected]> |
cryptodev: modify return value for asym session create
Rather than the asym session create function returning a session on success, and a NULL value on error, it is modified to now return int values
cryptodev: modify return value for asym session create
Rather than the asym session create function returning a session on success, and a NULL value on error, it is modified to now return int values - 0 on success or -EINVAL/-ENOTSUP/-ENOMEM on failure. The session to be used is passed as input.
This adds clarity on the failure of the create function, which enables treating the -ENOTSUP return as TEST_SKIPPED in test apps.
Signed-off-by: Ciara Power <[email protected]> Acked-by: Fan Zhang <[email protected]> Acked-by: Anoob Joseph <[email protected]> Acked-by: Akhil Goyal <[email protected]>
show more ...
|
| 92d55afe | 11-Feb-2022 |
Ciara Power <[email protected]> |
cryptodev: add asymmetric session user data API
A user data field is added to the asymmetric session structure. Relevant API added to get/set the field.
Signed-off-by: Ciara Power <ciara.power@inte
cryptodev: add asymmetric session user data API
A user data field is added to the asymmetric session structure. Relevant API added to get/set the field.
Signed-off-by: Ciara Power <[email protected]> Acked-by: Fan Zhang <[email protected]> Acked-by: Anoob Joseph <[email protected]> Acked-by: Akhil Goyal <[email protected]>
show more ...
|
| a29bb248 | 11-Feb-2022 |
Ciara Power <[email protected]> |
cryptodev: hide asymmetric session structure
The rte_cryptodev_asym_session structure is now moved to an internal header. This will no longer be used directly by apps, private session data can be ac
cryptodev: hide asymmetric session structure
The rte_cryptodev_asym_session structure is now moved to an internal header. This will no longer be used directly by apps, private session data can be accessed via get API.
Signed-off-by: Ciara Power <[email protected]> Acked-by: Fan Zhang <[email protected]> Acked-by: Anoob Joseph <[email protected]> Acked-by: Akhil Goyal <[email protected]>
show more ...
|