|
Revision tags: v22.03, v22.03-rc4, v22.03-rc3, v22.03-rc2, v22.03-rc1 |
|
| #
0dff3f26 |
| 03-Feb-2022 |
Dmitry Kozlyuk <[email protected]> |
eal: extend --huge-unlink for hugepage file reuse
Expose Linux EAL ability to reuse existing hugepage files via --huge-unlink=never switch. Default behavior is unchanged, it can also be specified us
eal: extend --huge-unlink for hugepage file reuse
Expose Linux EAL ability to reuse existing hugepage files via --huge-unlink=never switch. Default behavior is unchanged, it can also be specified using --huge-unlink=existing for consistency. Old --huge-unlink switch is kept, it is an alias for --huge-unlink=always. Add a test case for the --huge-unlink=never mode.
Signed-off-by: Dmitry Kozlyuk <[email protected]> Acked-by: Thomas Monjalon <[email protected]> Acked-by: Anatoly Burakov <[email protected]>
show more ...
|
| #
3c60274c |
| 26-Jan-2022 |
Jie Zhou <[email protected]> |
test: skip unsupported tests on Windows
Skip tests which are not yet supported for Windows: - The libraries that tests depend on are not enabled on Windows yet - The tests can compile but with issue
test: skip unsupported tests on Windows
Skip tests which are not yet supported for Windows: - The libraries that tests depend on are not enabled on Windows yet - The tests can compile but with issue still under investigation * test_func_reentrancy: Windows EAL has no protection against repeated calls. * test_lcores: Execution enters an infinite loops, requires investigation. * test_rcu_qsbr_perf: Execution hangs on Windows, requires investigation.
Signed-off-by: Jie Zhou <[email protected]> Signed-off-by: Dmitry Kozlyuk <[email protected]> Acked-by: Tyler Retzlaff <[email protected]>
show more ...
|
|
Revision tags: v21.11, v21.11-rc4, v21.11-rc3, v21.11-rc2 |
|
| #
81169a01 |
| 27-Oct-2021 |
David Marchand <[email protected]> |
test: remove unnecessary test commands
EAL and rwlock tests have been split into smaller unit tests now listed in meson. Nothing is referencing eal_flags_autotest and rwlock_autotest anymore, since
test: remove unnecessary test commands
EAL and rwlock tests have been split into smaller unit tests now listed in meson. Nothing is referencing eal_flags_autotest and rwlock_autotest anymore, since we dropped the python wrapper.
Fixes: 8c745bb62340 ("test: remove autotest python wrapper")
Signed-off-by: David Marchand <[email protected]>
show more ...
|
|
Revision tags: v21.11-rc1 |
|
| #
24d5a1ce |
| 12-Oct-2021 |
John Levon <[email protected]> |
eal/linux: allow hugetlbfs sub-directories
get_hugepage_dir() was implemented in such a way that a --huge-dir option had to exactly match the mountpoint, but there's no reason for this restriction:
eal/linux: allow hugetlbfs sub-directories
get_hugepage_dir() was implemented in such a way that a --huge-dir option had to exactly match the mountpoint, but there's no reason for this restriction: DPDK might not be the only user of hugepages, and shouldn't assume it owns an entire mountpoint. For example, if I have /dev/hugepages/myapp, and /dev/hugepages/dpdk, I should be able to specify:
--huge-dir=/dev/hugepages/dpdk/
and have DPDK only use that sub-directory.
Fix the implementation to allow a sub-directory within a suitable hugetlbfs mountpoint to be specified, preferring the closest match.
Signed-off-by: John Levon <[email protected]> Acked-by: Dmitry Kozlyuk <[email protected]> Reviewed-by: David Marchand <[email protected]>
show more ...
|
|
Revision tags: v21.08, v21.08-rc4, v21.08-rc3, v21.08-rc2, v21.08-rc1 |
|
| #
80731e4b |
| 16-Jun-2021 |
Owen Hilyard <[email protected]> |
tests/eal: fix memory leak
The directory steam was not closed when the hugepage action was HUGEPAGE_CHECK_EXISTS. This caused a memory leak in some parts of the unit tests.
Fixes: 45f1b6e8680a ("ap
tests/eal: fix memory leak
The directory steam was not closed when the hugepage action was HUGEPAGE_CHECK_EXISTS. This caused a memory leak in some parts of the unit tests.
Fixes: 45f1b6e8680a ("app: add new tests on eal flags") Cc: [email protected]
Signed-off-by: Owen Hilyard <[email protected]> Reviewed-by: David Marchand <[email protected]>
show more ...
|
|
Revision tags: 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 |
|
| #
7119ee93 |
| 16-Nov-2020 |
David Marchand <[email protected]> |
test/eal: remove unneeded command
All EAL flags tests are run by calling the "eal_flags_autotest" command. There is no compatibility to maintain for sub commands only called by meson.
Fixes: db2737
test/eal: remove unneeded command
All EAL flags tests are run by calling the "eal_flags_autotest" command. There is no compatibility to maintain for sub commands only called by meson.
Fixes: db27370b5720 ("eal: replace blacklist/whitelist options")
Signed-off-by: David Marchand <[email protected]> Acked-by: Thomas Monjalon <[email protected]>
show more ...
|
|
Revision tags: v20.11-rc4 |
|
| #
db27370b |
| 10-Nov-2020 |
Stephen Hemminger <[email protected]> |
eal: replace blacklist/whitelist options
Replace -w / --pci-whitelist with -a / --allow options and --pci-blacklist with --block. The -b short option remains unchanged.
Allow the old options for no
eal: replace blacklist/whitelist options
Replace -w / --pci-whitelist with -a / --allow options and --pci-blacklist with --block. The -b short option remains unchanged.
Allow the old options for now, but print a nag warning since old options are deprecated.
Signed-off-by: Stephen Hemminger <[email protected]> Acked-by: Luca Boccassi <[email protected]> Signed-off-by: Thomas Monjalon <[email protected]>
show more ...
|
|
Revision tags: v20.11-rc3, v20.11-rc2, v20.11-rc1 |
|
| #
cb056611 |
| 15-Oct-2020 |
Stephen Hemminger <[email protected]> |
eal: rename lcore master and slave
Replace master lcore with main lcore and replace slave lcore with worker lcore.
Keep the old functions and macros but mark them as deprecated for this release.
T
eal: rename lcore master and slave
Replace master lcore with main lcore and replace slave lcore with worker lcore.
Keep the old functions and macros but mark them as deprecated for this release.
The "--master-lcore" command line option is also deprecated and any usage will print a warning and use "--main-lcore" as replacement.
Signed-off-by: Stephen Hemminger <[email protected]> Acked-by: Anatoly Burakov <[email protected]>
show more ...
|
| #
a8d0d473 |
| 15-Oct-2020 |
Bruce Richardson <[email protected]> |
build: replace use of old build macros
Use the newer macros defined by meson in all DPDK source code, to ensure there are no errors when the old non-standard macros are removed.
Signed-off-by: Bruc
build: replace use of old build macros
Use the newer macros defined by meson in all DPDK source code, to ensure there are no errors when the old non-standard macros are removed.
Signed-off-by: Bruce Richardson <[email protected]> Acked-by: Luca Boccassi <[email protected]> Acked-by: Andrew Rybchenko <[email protected]> Acked-by: Rosen Xu <[email protected]> Signed-off-by: Thomas Monjalon <[email protected]>
show more ...
|
|
Revision tags: v20.08, v20.08-rc4, v20.08-rc3, v20.08-rc2 |
|
| #
12337cf2 |
| 20-Jul-2020 |
Kevin Traynor <[email protected]> |
test/eal: check invalid CPU value
When using --lcores option, there is a limit of CPU_SETSIZE. Currently that allows 0..1023 on Linux.
Check it is caught when this limit is exceeded.
Signed-off-by
test/eal: check invalid CPU value
When using --lcores option, there is a limit of CPU_SETSIZE. Currently that allows 0..1023 on Linux.
Check it is caught when this limit is exceeded.
Signed-off-by: Kevin Traynor <[email protected]> Acked-by: Lukasz Wojciechowski <[email protected]>
show more ...
|
|
Revision tags: 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 |
|
| #
71bdd8a1 |
| 24-Jan-2020 |
Pavan Nikhilesh <[email protected]> |
app: use common macro RTE_DIM
Use RTE_DIM macro to calculate array size.
Suggested-by: David Marchand <[email protected]> Signed-off-by: Pavan Nikhilesh <[email protected]> Acked-by:
app: use common macro RTE_DIM
Use RTE_DIM macro to calculate array size.
Suggested-by: David Marchand <[email protected]> Signed-off-by: Pavan Nikhilesh <[email protected]> Acked-by: David Marchand <[email protected]>
show more ...
|
|
Revision tags: v20.02-rc1, v19.11, v19.11-rc4, v19.11-rc3, v19.11-rc2, v19.11-rc1, v19.08, v19.08-rc4 |
|
| #
04b83f8f |
| 31-Jul-2019 |
David Marchand <[email protected]> |
test/eal: fix command array sizes
Following removal of -c and -n options, the array should have been shrunk to avoid launch_proc to access unitialised strings.
Fixes: b4dbacdb1ad7 ("test/eal: set c
test/eal: fix command array sizes
Following removal of -c and -n options, the array should have been shrunk to avoid launch_proc to access unitialised strings.
Fixes: b4dbacdb1ad7 ("test/eal: set core mask/list config only in dedicated test") Fixes: 501fa9a40298 ("test/eal: set memory channel config only in dedicated test")
Signed-off-by: David Marchand <[email protected]> Acked-by: Michael Santana <[email protected]>
show more ...
|
|
Revision tags: v19.08-rc3 |
|
| #
ae0976c3 |
| 29-Jul-2019 |
Vamsi Attunuru <[email protected]> |
test/eal: fix --socket-mem option
eal flag autotest fails when multiple mem size flags are passed to --socket-mem option irrespective of RTE_MAX_NUMA_NODES and the number of available sockets on the
test/eal: fix --socket-mem option
eal flag autotest fails when multiple mem size flags are passed to --socket-mem option irrespective of RTE_MAX_NUMA_NODES and the number of available sockets on the test system.
Fixes: 45f1b6e8680a ("app: add new tests on eal flags") Cc: [email protected]
Signed-off-by: Vamsi Attunuru <[email protected]> Signed-off-by: David Marchand <[email protected]> Reviewed-by: Vamsi Attunuru <[email protected]> Tested-by: Vamsi Attunuru <[email protected]>
show more ...
|
|
Revision tags: v19.08-rc2, v19.08-rc1 |
|
| #
eca6aea9 |
| 03-Jul-2019 |
Lavanya Govindarajan <[email protected]> |
test/eal: add cases for options proc-type and uio
Added unit test cases for EAL flags --proc-type=auto and --create-uio-dev in order to cover the below functions eal_proc_type_detect() rte_eal_creat
test/eal: add cases for options proc-type and uio
Added unit test cases for EAL flags --proc-type=auto and --create-uio-dev in order to cover the below functions eal_proc_type_detect() rte_eal_create_uio_dev()
Signed-off-by: Lavanya Govindarajan <[email protected]> Reviewed-by: David Marchand <[email protected]> Acked-by: Anatoly Burakov <[email protected]>
show more ...
|
| #
690fd357 |
| 03-Jul-2019 |
Pallantla Poornima <[email protected]> |
test/eal: add cases for in-memory and single-file-segments
Added unit test case for eal command line '--in-memory' option which will cover below functions. get_seg_memfd() test_memfd_create() pagesz
test/eal: add cases for in-memory and single-file-segments
Added unit test case for eal command line '--in-memory' option which will cover below functions. get_seg_memfd() test_memfd_create() pagesz_flags()
Added unit test case for eal command line '--single-file-segments' option which will cover resize_hugefile().
Signed-off-by: Pallantla Poornima <[email protected]> Reviewed-by: Anatoly Burakov <[email protected]> Reviewed-by: David Marchand <[email protected]>
show more ...
|
| #
57739f65 |
| 15-Jun-2019 |
David Marchand <[email protected]> |
test: split into shorter subtests
Based on Michael initial idea of separating the file-prefix subtest in the eal flags test.
Let's split the biggest tests into their subparts. It is then easier to
test: split into shorter subtests
Based on Michael initial idea of separating the file-prefix subtest in the eal flags test.
Let's split the biggest tests into their subparts. It is then easier to have them fit in the 10s timeout we have configured in Travis. We also get a better idea of which part fails in the previously big tests we had.
Those new subtests are called from the meson testsuite. The autotest tool is left untouched.
Note: we still have an issue with test_hash_readwrite_lf.c, any help from the original authors would be appreciated.
Signed-off-by: David Marchand <[email protected]>
show more ...
|
| #
b0209034 |
| 15-Jun-2019 |
Michael Santana <[email protected]> |
test/eal: check number of cores before running subtests
The eal flags unit test assumes that a certain number of cores are available (4 and 8 cores), however this may not always be the case. Individ
test/eal: check number of cores before running subtests
The eal flags unit test assumes that a certain number of cores are available (4 and 8 cores), however this may not always be the case. Individual developers may run the unit test on their local desktop which typically have 2 to 4 cores, in said case the test is bound to fail for lacking 4 or 8 cores.
Additionally, as we push forward introducing CI into DPDK we are limited to the hardware specification of CI services (e.g. Travis CI) that only have 2 cores on their servers, in which case the test would fail.
To fix this we check available cores before running a subtest. This applies to subtests that are dedicated to test that the -l and --lcore flags work correctly. If not enough cores are available the subtest is simply skipped, otherwise the subtest is run.
Signed-off-by: Michael Santana <[email protected]> Signed-off-by: David Marchand <[email protected]> Acked-by: Aaron Conole <[email protected]>
show more ...
|
| #
b4dbacdb |
| 15-Jun-2019 |
David Marchand <[email protected]> |
test/eal: set core mask/list config only in dedicated test
Setting a coremask was mandatory a long time ago but has been optional for a while. The checks on PCI whitelist/blacklist, vdev, memory ran
test/eal: set core mask/list config only in dedicated test
Setting a coremask was mandatory a long time ago but has been optional for a while. The checks on PCI whitelist/blacklist, vdev, memory rank, memory channel, HPET, memory size and other miscs options have no requirement wrt cores.
Let's remove those coremasks so that we only care about it in the dedicated checks.
Signed-off-by: David Marchand <[email protected]> Acked-by: Aaron Conole <[email protected]>
show more ...
|
| #
501fa9a4 |
| 15-Jun-2019 |
David Marchand <[email protected]> |
test/eal: set memory channel config only in dedicated test
The -n option is an optimisation configuration option that defaults to 0. Such a default value makes the mempool library distributes object
test/eal: set memory channel config only in dedicated test
The -n option is an optimisation configuration option that defaults to 0. Such a default value makes the mempool library distributes objects as if there was 4 memory channels, so -n 4 is the same as the default behavior.
This parameter was mandatory a long time ago, but has been optional for a while. We check that setting this value works fine in its own test. Remove it everywhere else.
Signed-off-by: David Marchand <[email protected]> Acked-by: Aaron Conole <[email protected]>
show more ...
|
|
Revision tags: v19.05, v19.05-rc4, v19.05-rc3, v19.05-rc2, v19.05-rc1 |
|
| #
f9acaf84 |
| 03-Apr-2019 |
Bruce Richardson <[email protected]> |
replace snprintf with strlcpy without adding extra include
For files that already have rte_string_fns.h included in them, we can do a straight replacement of snprintf(..."%s",...) with strlcpy. The
replace snprintf with strlcpy without adding extra include
For files that already have rte_string_fns.h included in them, we can do a straight replacement of snprintf(..."%s",...) with strlcpy. The changes in this patch were auto-generated via command:
spatch --sp-file devtools/cocci/strlcpy-with-header.cocci --dir . --in-place
Signed-off-by: Bruce Richardson <[email protected]>
show more ...
|
| #
816d76c5 |
| 13-Mar-2019 |
Natanael Copa <[email protected]> |
app/test: fix build with musl libc
Fix following build error with musl libc:
app/test/test_eal_flags.c:152:55: error: 'O_RDONLY' undeclared (first use in this function) fd = openat(dirfd(huge
app/test: fix build with musl libc
Fix following build error with musl libc:
app/test/test_eal_flags.c:152:55: error: 'O_RDONLY' undeclared (first use in this function) fd = openat(dirfd(hugepage_dir), dirent->d_name, O_RDONLY); ^~~~~~~~
Fixes: 45f1b6e8680a ("app: add new tests on eal flags") Cc: [email protected]
Signed-off-by: Natanael Copa <[email protected]>
show more ...
|
| #
5fbc1d49 |
| 06-Mar-2019 |
Bruce Richardson <[email protected]> |
build/freebsd: rename macro BSDPAPP to FREEBSD
Rename the macro and all instances in DPDK code, but keep a copy of the old macro defined for legacy code linking against DPDK
Signed-off-by: Bruce Ri
build/freebsd: rename macro BSDPAPP to FREEBSD
Rename the macro and all instances in DPDK code, but keep a copy of the old macro defined for legacy code linking against DPDK
Signed-off-by: Bruce Richardson <[email protected]>
show more ...
|
| #
742bde12 |
| 06-Mar-2019 |
Bruce Richardson <[email protected]> |
build/linux: rename macro from LINUXAPP to LINUX
Rename the macro to make things shorter and more comprehensible. For both meson and make builds, keep the old macro around for backward compatibility
build/linux: rename macro from LINUXAPP to LINUX
Rename the macro to make things shorter and more comprehensible. For both meson and make builds, keep the old macro around for backward compatibility.
Signed-off-by: Bruce Richardson <[email protected]>
show more ...
|
| #
a9de470c |
| 26-Feb-2019 |
Bruce Richardson <[email protected]> |
test: move to app directory
Since all other apps have been moved to the "app" folder, the autotest app remains alone in the test folder. Rather than having an entire top-level folder for this, we ca
test: move to app directory
Since all other apps have been moved to the "app" folder, the autotest app remains alone in the test folder. Rather than having an entire top-level folder for this, we can move it back to where it all started in early versions of DPDK - the "app/" folder.
This move has a couple of advantages: * This reduces clutter at the top level of the project, due to one less folder. * It eliminates the separate build task necessary for building the autotests using make "make test-build" which means that developers are less likely to miss something in their own compilation tests * It re-aligns the final location of the test binary in the app folder when building with make with it's location in the source tree.
For meson builds, the autotest app is different from the other apps in that it needs a series of different test cases defined for it for use by "meson test". Therefore, it does not get built as part of the main loop in the app folder, but gets built separately at the end.
Signed-off-by: Bruce Richardson <[email protected]>
show more ...
|
|
Revision tags: 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 ...
|