|
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 |
|
| #
d05c2dcc |
| 23-Oct-2021 |
Xueming Li <[email protected]> |
test/devargs: fix memory leak
In layer argument test function, kvargs are parsed and checked without free. This patch calls rte_kvargs_free() function to avoid memory leak.
Coverity issue: 373631 F
test/devargs: fix memory leak
In layer argument test function, kvargs are parsed and checked without free. This patch calls rte_kvargs_free() function to avoid memory leak.
Coverity issue: 373631 Fixes: a4975cd20dca ("test: add devargs test cases")
Signed-off-by: Xueming Li <[email protected]> Reviewed-by: David Marchand <[email protected]>
show more ...
|
| #
a4975cd2 |
| 20-Oct-2021 |
Xueming Li <[email protected]> |
test: add devargs test cases
Initial version to test global devargs syntax.
Signed-off-by: Xueming Li <[email protected]> Reviewed-by: Gaetan Rivet <[email protected]>
|
|
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, v21.02, v21.02-rc4, v21.02-rc3, v21.02-rc2, v21.02-rc1, v20.11, v20.11-rc5, v20.11-rc4, v20.11-rc3, v20.11-rc2, v20.11-rc1, v20.08, v20.08-rc4, v20.08-rc3, v20.08-rc2, v20.08-rc1, v20.05, v20.05-rc4, v20.05-rc3, v20.05-rc2, v20.05-rc1, v20.02, v20.02-rc4, v20.02-rc3, v20.02-rc2, v20.02-rc1, v19.11, v19.11-rc4, v19.11-rc3, v19.11-rc2, v19.11-rc1, v19.08, v19.08-rc4, v19.08-rc3, v19.08-rc2, v19.08-rc1, v19.05, v19.05-rc4, v19.05-rc3, v19.05-rc2, v19.05-rc1, v19.02, v19.02-rc4, v19.02-rc3, v19.02-rc2, v19.02-rc1, v18.11, v18.11-rc5, v18.11-rc4, v18.11-rc3, v18.11-rc2, v18.11-rc1, v18.08, v18.08-rc3, v18.08-rc2, v18.08-rc1, v18.05, v18.05-rc6, v18.05-rc5, v18.05-rc4, v18.05-rc3, v18.05-rc2, v18.05-rc1, v18.02, v18.02-rc4, v18.02-rc3, v18.02-rc2, v18.02-rc1, v17.11, v17.11-rc4, v17.11-rc3, v17.11-rc2, v17.11-rc1, v17.08, v17.08-rc4, v17.08-rc3, v17.08-rc2, v17.08-rc1, v17.05, v17.05-rc4, v17.05-rc3, v17.05-rc2, v17.05-rc1, v17.02, v17.02-rc3, v17.02-rc2, v17.02-rc1, v16.11, v16.11-rc3, v16.11-rc2, v16.11-rc1 |
|
| #
5fc07e3e |
| 06-Oct-2016 |
Thomas Monjalon <[email protected]> |
app/test: fix vdev names
The vdev eth_ring has been renamed to net_ring. Some unit tests are using the old name and fail.
Fixes also the vdev comments in EAL and ethdev.
Fixes: 2f45703c17ac ("driv
app/test: fix vdev names
The vdev eth_ring has been renamed to net_ring. Some unit tests are using the old name and fail.
Fixes also the vdev comments in EAL and ethdev.
Fixes: 2f45703c17ac ("drivers: make driver names consistent")
Signed-off-by: Thomas Monjalon <[email protected]> Acked-by: Pablo de Lara <[email protected]>
show more ...
|
|
Revision tags: v16.07, v16.07-rc5, v16.07-rc4, v16.07-rc3 |
|
| #
26e09db6 |
| 13-Jul-2016 |
Thomas Monjalon <[email protected]> |
app/test: rework command registration
The tests are registered with their command name by adding a structure to a list. The structure of each test was declared in each test file and passed to the re
app/test: rework command registration
The tests are registered with their command name by adding a structure to a list. The structure of each test was declared in each test file and passed to the register macro. This rework generate the structure inside the register macro.
Signed-off-by: Thomas Monjalon <[email protected]> Reviewed-by: Jan Viktorin <[email protected]>
show more ...
|
|
Revision tags: v16.07-rc2, v16.07-rc1, v16.04, v16.04-rc4, v16.04-rc3, v16.04-rc2, v16.04-rc1 |
|
| #
c7985de0 |
| 21-Jan-2016 |
David Marchand <[email protected]> |
remove unneeded tests for NULL when freeing
free() already handles NULL pointer.
Signed-off-by: David Marchand <[email protected]>
|
|
Revision tags: v2.2.0, v2.2.0-rc4, v2.2.0-rc3, v2.2.0-rc2, v2.2.0-rc1 |
|
| #
7499ef45 |
| 29-Sep-2015 |
Christoph Gysin <[email protected]> |
eal: fix C++ build
'virtual' is a keyword and can't be used if the code is to compile with C++ compilers.
If rte_devargs.h was included in C++ code, compilation with clang++ failed with an error. g
eal: fix C++ build
'virtual' is a keyword and can't be used if the code is to compile with C++ compilers.
If rte_devargs.h was included in C++ code, compilation with clang++ failed with an error. g++ did not fail, but only because of a bug that treats it as an anonymous struct with a decl-specifier which it ignores.
This simply renames the member to 'virt'.
Reported-by: Ming Zhao <[email protected]> Signed-off-by: Christoph Gysin <[email protected]> Acked-by: Cristian Dumitrescu <[email protected]> Acked-by: David Marchand <[email protected]>
show more ...
|
|
Revision tags: v2.1.0, v2.1.0-rc4, v2.1.0-rc3, v2.1.0-rc2, v2.1.0-rc1, v2.0.0, v2.0.0-rc3, v2.0.0-rc2, v2.0.0-rc1 |
|
| #
23df14d1 |
| 24-Feb-2015 |
David Marchand <[email protected]> |
devargs: restore empty devargs
Following commit c07691ae1089, an implicit change has been done in the devargs API. This triggers problem in virtual pmds that did not check for parameters validity as
devargs: restore empty devargs
Following commit c07691ae1089, an implicit change has been done in the devargs API. This triggers problem in virtual pmds that did not check for parameters validity as it was implicitely valid.
Fix this by restoring the empty argument as "" and add a note in the api. Restore associated tests.
Fixes: c07691ae1089 ("devargs: remove limit on parameters length")
Reported-by: Tetsuya Mukawa <[email protected]> Signed-off-by: David Marchand <[email protected]> Tested-by: Tetsuya Mukawa <[email protected]>
show more ...
|
| #
edef7d1f |
| 13-Feb-2015 |
David Marchand <[email protected]> |
app/test: fix devargs tests
Add missing free for devargs->args and fix tests.
Signed-off-by: David Marchand <[email protected]> Acked-by: Thomas Monjalon <[email protected]>
|
|
Revision tags: v1.8.0, v1.8.0-rc6 |
|
| #
e89ae122 |
| 17-Dec-2014 |
Olivier Matz <[email protected]> |
app/test: fix misplaced braces in strncmp
One occurrence call to strncmp had the closing brace in the wrong place. Changing this form: if (strncmp(X, Y, sizeof(X) != 0)) which does a comparison of
app/test: fix misplaced braces in strncmp
One occurrence call to strncmp had the closing brace in the wrong place. Changing this form: if (strncmp(X, Y, sizeof(X) != 0)) which does a comparison of length 1, to if (strncmp(X, Y, sizeof(X)) != 0) which does the correct length comparison and then compares the result to zero in the "if" part.
Seen with clang-3.5: "error: size argument in 'strncmp' call is a comparison"
This patch is similar to 261386248 but it looks that one occurrence was forgotten.
Signed-off-by: Olivier Matz <[email protected]>
show more ...
|
|
Revision tags: v1.8.0-rc5, v1.8.0-rc4, v1.8.0-rc3, v1.8.0-rc2 |
|
| #
26138624 |
| 19-Nov-2014 |
Bruce Richardson <[email protected]> |
app/test: fix misplaced braces in devargs check
This patch fixes two occurrences where a call to strncmp had the closing brace in the wrong place. Changing this form: if (strncmp(X,Y,sizeof(X) != 0
app/test: fix misplaced braces in devargs check
This patch fixes two occurrences where a call to strncmp had the closing brace in the wrong place. Changing this form: if (strncmp(X,Y,sizeof(X) != 0)) which does a comparison of length 1, to if (strncmp(X,Y,sizeof(X)) != 0) which does the correct length comparison and then compares the result to zero in the "if" part, as the author presumably originally intended.
Reported-by: Larry Wang <[email protected]> Signed-off-by: Bruce Richardson <[email protected]> Acked-by: Olivier Matz <[email protected]>
show more ...
|
|
Revision tags: v1.8.0-rc1, v1.7.1 |
|
| #
942405f9 |
| 18-Aug-2014 |
David Marchand <[email protected]> |
app/test: convert all tests to register system
Remove all tests from the builtin commands list and use the dynamic commands list register macro.
Signed-off-by: David Marchand <david.marchand@6wind.
app/test: convert all tests to register system
Remove all tests from the builtin commands list and use the dynamic commands list register macro.
Signed-off-by: David Marchand <[email protected]> Acked-by: Bruce Richardson <[email protected]> Acked-by: Neil Horman <[email protected]>
show more ...
|
|
Revision tags: v1.7.0, v1.7.0-rc4, v1.7.0-rc3, v1.7.0-rc2, v1.7.0-rc1, v1.6.0r2 |
|
| #
a8b97e3a |
| 28-Feb-2014 |
Olivier Matz <[email protected]> |
devargs: use a comma instead of semicolon to separate key/values
This commit changes the API of --use-device command line argument. It changes the separators from ';' to ','. Indeed, ';' is not the
devargs: use a comma instead of semicolon to separate key/values
This commit changes the API of --use-device command line argument. It changes the separators from ';' to ','. Indeed, ';' is not the best choice as this character is also used to separate shell commands, forcing the user to surround arguments with quotes.
This commit impacts both devargs and kvargs as each of them define a separator in --use-device argument:
- devargs defines the separator between the device name or pci_id and its arguments - kvargs defines the separator between each key/value pairs in arguments for drivers using the kvargs API to parse their arguments
The modification of devargs and kvargs is done in one commit to keep the coherency of --use-device.
Signed-off-by: Olivier Matz <[email protected]> Acked-by: Thomas Monjalon <[email protected]>
show more ...
|
| #
bf6dea0e |
| 01-Mar-2014 |
Olivier Matz <[email protected]> |
devargs: introduce API and test
This commit introduces a new API for storing device arguments given by the user. It only adds the framework and the test. The modification of EAL to use this new modu
devargs: introduce API and test
This commit introduces a new API for storing device arguments given by the user. It only adds the framework and the test. The modification of EAL to use this new module is done in next commit.
The final goals:
- unify pci-blacklist, pci-whitelist, and virtual devices arguments in one file - allow to register a virtual device driver from a dpdk extension provided as a shared library. For that we will require to remove references to rte_pmd_ring and rte_pmd_pcap in argument parsing code - clarify the API of eal_common_whitelist.c, and rework its code that is often complex for no reason. - support arguments for PCI devices and possibly future non-PCI devices (other than virtual devices) without effort.
Test result:
echo 100 > /sys/devices/system/node/node0/hugepages/hugepages-2048kB/nr_hugepages echo 100 > /sys/devices/system/node/node1/hugepages/hugepages-2048kB/nr_hugepages ./app/test -c 0x15 -n 3 -m 64 RTE>>eal_flags_autotest [...] Test OK
Signed-off-by: Olivier Matz <[email protected]> Acked-by: Thomas Monjalon <[email protected]>
show more ...
|