eal: deprecate old coremask-based EAL parameters
PATCH 1/1 eal: deprecate old coremask-based EAL parameters
As the number of cores/cpus on platforms has increased over the years, the use of coremasks rather than core-lists for identifying DPDK cores has become more and more unwieldy. At this point, let's deprecate the coremask-based EAL parameters for future removal, and point users to the core-list based versions instead.
Depends-on: series-35540 ("use core lists not masks in documentation")
--- doc/guides/linux_gsg/build_sample_apps.rst | 7 +++---- doc/guides/linux_gsg/eal_args.include.rst | 9 --------- doc/guides/rel_notes/deprecation.rst | 10 ++++++++++ lib/eal/common/eal_common_options.c | 6 ++++++ lib/eal/include/rte_lcore.h | 1 - 5 files changed, 19 insertions(+), 14 deletions(-)
doc/guides/linux_gsg/build_sample_apps.rst +3 -4
@@ -126,10 +126,9 @@ and that cores 0-3 are present and are to be used for running the application):: Logical Core Use by Applications ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -The coremask (-c 0x0f) or corelist (-l 0-3) parameter is always mandatory for DPDK applications. -Each bit of the mask corresponds to the equivalent logical core number as reported by Linux. The preferred corelist option is a cleaner method to define cores to be used. +The corelist (-l/--lcores 0-3) parameter is always mandatory for DPDK applications. Since these logical core numbers, and their mapping to specific cores on specific NUMA sockets, can vary from platform to platform, -it is recommended that the core layout for each platform be considered when choosing the coremask/corelist to use in each case. +it is recommended that the core layout for each platform be considered when choosing the corelist to use in each case. On initialization of the EAL layer by a DPDK application, the logical cores to be used and their socket location are displayed. This information can also be determined for all cores on the system by examining the ``/proc/cpuinfo`` file, for example, by running cat ``/proc/cpuinfo``.
@@ -151,7 +150,7 @@ This can be useful when using other processors to understand the mapping of the .. warning:: - The logical core layout can change between different board layouts and should be checked before selecting an application coremask/corelist. + The logical core layout can change between different board layouts and should be checked before selecting an application corelist. Hugepage Memory Use by Applications ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
doc/guides/linux_gsg/eal_args.include.rst +0 -9
@@ -4,10 +4,6 @@ Lcore-related options ~~~~~~~~~~~~~~~~~~~~~ -* ``-c <core mask>`` - - Set the hexadecimal bitmask of the cores to run on. - * ``-l/--lcores <core list>`` List of cores to run on
@@ -75,15 +71,10 @@ Lcore-related options Core ID that is used as main. -* ``-s <service core mask>`` - - Hexadecimal bitmask of cores to be used as service cores. - * ``-S <service core list>`` List of cores to be used as service cores. - Device-related options ~~~~~~~~~~~~~~~~~~~~~~
doc/guides/rel_notes/deprecation.rst +10 -0
@@ -17,6 +17,16 @@ Other API and ABI deprecation notices are to be posted below. Deprecation Notices ------------------- +* EAL: The ``-c <coremask>`` commandline parameter is deprecated + and will be removed in a future release. + Use the ``-l <corelist>`` or ``--lcores=<corelist>`` parameters instead + to specify the cores to be used when running a DPDK application. + +* EAL: The ``-s <service-coremask>`` commandline parameter is deprecated + and will be removed in a future release. + Use the ``-S <service-corelist>`` parameter instead + to specify the cores to be used for background services in DPDK. + * build: The ``enable_kmods`` option is deprecated and will be removed in a future release. Setting/clearing the option has no impact on the build. Instead, kernel modules will be always built for OS's where out-of-tree kernel modules
lib/eal/common/eal_common_options.c +6 -0
@@ -616,6 +616,9 @@ eal_parse_service_coremask(const char *coremask)int val;uint32_t taken_lcore_count =0 ; +EAL_LOG (WARNING ,"'-s <service-coremask>' is deprecated, and will be removed in a future release." ); +EAL_LOG (WARNING ,"\tUse '-S <service-corelist>' option instead." ); +if (coremask ==NULL )return -1 ;/* Remove all blank characters ahead and after .
@@ -779,6 +782,9 @@ rte_eal_parse_coremask(const char *coremask, int *cores) cores[idx] =-1 ; idx =0 ; +EAL_LOG (WARNING ,"'-c <coremask>' option is deprecated, and will be removed in a future release" ); +EAL_LOG (WARNING ,"\tUse '-l <corelist>' or '--lcores=<corelist>' option instead" ); +/* Remove all blank characters ahead and after . * Remove 0x/0X if exists. */
lib/eal/include/rte_lcore.h +0 -1
@@ -102,7 +102,6 @@ unsigned int rte_lcore_count(void);* When option -c or -l is given, the index corresponds * to the order in the list. * For example: -* -c 0x30, lcore 4 has index 0, and 5 has index 1. * -l 22,18 lcore 22 has index 0, and 18 has index 1. * * @param lcore_id
Signature · 1 line
2.48.1
Quoted 11 lines · Bruce Richardson
As the number of cores/cpus on platforms has increased over the years, the use of coremasks rather than core-lists for identifying DPDK cores has become more and more unwieldy. At this point, let's deprecate the coremask-based EAL parameters for future removal, and point users to the core-list based versions instead.
Depends-on: series-35540 ("use core lists not masks in documentation")
Signed-off-by Bruce Richardson <[email protected]>Acked-by Vipin Varghese <[email protected]>---
Signature · 2 lines
Thanks, Anatoly
Quoted 138 lines
-----Original Message-----
From: Bruce Richardson <[email protected]>
Sent: Tuesday, June 24, 2025 2:42 PM
To: [email protected]
Cc: [email protected]; [email protected]; [email protected]; Bruce Richardson <[email protected]>; Vipin Varghese <[email protected]>; Tyler Retzlaff <[email protected]>
Subject: [PATCH] eal: deprecate old coremask-based EAL parametersAs the number of cores/cpus on platforms has increased over the years, the use of coremasks rather than core-lists for identifying DPDK cores has become more and more unwieldy. At this point, let's deprecate the coremask-based EAL parameters for future removal, and point users to the core-list based versions instead.
Depends-on: series-35540 ("use core lists not masks in documentation")
Signed-off-by Bruce Richardson <[email protected]>Acked-by Vipin Varghese <[email protected]>--- doc/guides/linux_gsg/build_sample_apps.rst | 7 +++---- doc/guides/linux_gsg/eal_args.include.rst | 9 --------- doc/guides/rel_notes/deprecation.rst | 10 ++++++++++ lib/eal/common/eal_common_options.c | 6 ++++++ lib/eal/include/rte_lcore.h | 1 - 5 files changed, 19 insertions(+), 14 deletions(-)doc/guides/linux_gsg/build_sample_apps.rst +0
-2@@ -126,10 +126,9 @@ and that cores 0-3 are present and are to be used for running the application):: Logical Core Use by Applications ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -The coremask (-c 0x0f) or corelist (-l 0-3) parameter is always mandatory for DPDK applications. -Each bit of the mask corresponds to the equivalent logical core number as reported by Linux. The preferred corelist option is a cleanermethod to define cores to be used.
doc/guides/linux_gsg/build_sample_apps.rst +2
-1+The corelist (-l/--lcores 0-3) parameter is always mandatory for DPDK applications. Since these logical core numbers, and their mapping to specific cores on specific NUMA sockets, can vary from platform to platform, -it is recommended that the core layout for each platform be considered when choosing the coremask/corelist to use in each case. +it is recommended that the core layout for each platform be considered when choosing the corelist to use in each case. On initialization of the EAL layer by a DPDK application, the logical cores to be used and their socket location are displayed. This information can also be determined for all cores on the system by examining the ``/proc/cpuinfo`` file, for example, by runningcat ``/proc/cpuinfo``.
doc/guides/linux_gsg/build_sample_apps.rst +0
-1@@ -151,7 +150,7 @@ This can be useful when using other processors to understand the mapping of the .. warning:: - The logical core layout can change between different board layouts and should be checked before selecting an applicationcoremask/corelist.
doc/guides/linux_gsg/build_sample_apps.rst +1
-0+ The logical core layout can change between different board layouts and should be checked before selecting an application corelist. Hugepage Memory Use by Applications ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~doc/guides/linux_gsg/eal_args.include.rst +0
-9@@ -4,10 +4,6 @@ Lcore-related options ~~~~~~~~~~~~~~~~~~~~~ -* ``-c <core mask>`` - - Set the hexadecimal bitmask of the cores to run on. - * ``-l/--lcores <core list>`` List of cores to run on@@ -75,15 +71,10 @@ Lcore-related options Core ID that is used as main. -* ``-s <service core mask>`` - - Hexadecimal bitmask of cores to be used as service cores. - * ``-S <service core list>`` List of cores to be used as service cores. - Device-related options ~~~~~~~~~~~~~~~~~~~~~~doc/guides/rel_notes/deprecation.rst +10
-0@@ -17,6 +17,16 @@ Other API and ABI deprecation notices are to be posted below. Deprecation Notices ------------------- +* EAL: The ``-c <coremask>`` commandline parameter is deprecated + and will be removed in a future release. + Use the ``-l <corelist>`` or ``--lcores=<corelist>`` parameters instead + to specify the cores to be used when running a DPDK application. + +* EAL: The ``-s <service-coremask>`` commandline parameter is deprecated + and will be removed in a future release. + Use the ``-S <service-corelist>`` parameter instead + to specify the cores to be used for background services in DPDK. + * build: The ``enable_kmods`` option is deprecated and will be removed in a future release. Setting/clearing the option has no impact on the build. Instead, kernel modules will be always built for OS's where out-of-tree kernel moduleslib/eal/common/eal_common_options.c +6
-0@@ -616,6 +616,9 @@ eal_parse_service_coremask(const char *coremask)int val;uint32_t taken_lcore_count =0 ; +EAL_LOG (WARNING ,"'-s <service-coremask>' is deprecated, and will be removed in a future release." ); +EAL_LOG (WARNING ,"\tUse '-S <service-corelist>' option instead." ); +if (coremask ==NULL )return -1 ;/* Remove all blank characters ahead and after . @@ -779,6 +782,9 @@ rte_eal_parse_coremask(const char *coremask, int *cores) cores[idx] =-1 ; idx =0 ; +EAL_LOG (WARNING ,"'-c <coremask>' option is deprecated, and will be removed in a future release" ); +EAL_LOG (WARNING ,"\tUse '-l <corelist>' or '--lcores=<corelist>' option instead" ); +/* Remove all blank characters ahead and after . * Remove 0x/0X if exists. */ lib/eal/include/rte_lcore.h +0
-0
lib/eal/include/rte_lcore.h unsigned int rte_lcore_count(void);
Quoted 8 lines
lib/eal/include/rte_lcore.h +0
-2@@ -102,7 +102,6 @@ unsigned int rte_lcore_count(void);* When option -c or -l is given, the index corresponds * to the order in the list. * For example: -* -c 0x30, lcore 4 has index 0, and 5 has index 1. * -l 22,18 lcore 22 has index 0, and 18 has index 1. * * @param lcore_id --
Quoted 1 line
2.48.1
Quoted 7 lines · Bruce Richardson
As the number of cores/cpus on platforms has increased over the years, the use of coremasks rather than core-lists for identifying DPDK cores has become more and more unwieldy. At this point, let's deprecate the coremask-based EAL parameters for future removal, and point users to the core-list based versions instead.
Quoted 7 lines
Depends-on: series-35540 ("use core lists not masks in documentation")
Signed-off-by Bruce Richardson <[email protected]>Acked-by Vipin Varghese <[email protected]>--- doc/guides/linux_gsg/build_sample_apps.rst | 7 +++---- doc/guides/linux_gsg/eal_args.include.rst | 9 ---------
Please update FreeBSD docs too.
Quoted 10 lines
doc/guides/rel_notes/deprecation.rst | 10 ++++++++++ lib/eal/common/eal_common_options.c | 6 ++++++ lib/eal/include/rte_lcore.h | 1 - 5 files changed, 19 insertions(+), 14 deletions(-)doc/guides/linux_gsg/build_sample_apps.rst +0
-0
doc/guides/linux_gsg/build_sample_apps.rst and that cores 0-3 are present and are to be used for running the application):: · line 129
Quoted 6 lines
doc/guides/linux_gsg/build_sample_apps.rst +1
-2@@ -126,10 +126,9 @@ and that cores 0-3 are present and are to be used for running the application):: Logical Core Use by Applications ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -The coremask (-c 0x0f) or corelist (-l 0-3) parameter is always mandatory for DPDK applications. -Each bit of the mask corresponds to the equivalent logical core number as reported by Linux. The preferred corelist option is a cleaner method to define cores to be used. +The corelist (-l/--lcores 0-3) parameter is always mandatory for DPDK applications.
Not directly related to this patch, the -l/-c options are optional since 2eba8d21f3c9 ("eal: restrict cores auto detection").
Quoted 51 lines
doc/guides/linux_gsg/build_sample_apps.rst +2
-2Since these logical core numbers, and their mapping to specific cores on specific NUMA sockets, can vary from platform to platform, -it is recommended that the core layout for each platform be considered when choosing the coremask/corelist to use in each case. +it is recommended that the core layout for each platform be considered when choosing the corelist to use in each case. On initialization of the EAL layer by a DPDK application, the logical cores to be used and their socket location are displayed. This information can also be determined for all cores on the system by examining the ``/proc/cpuinfo`` file, for example, by running cat ``/proc/cpuinfo``.@@ -151,7 +150,7 @@ This can be useful when using other processors to understand the mapping of the .. warning:: - The logical core layout can change between different board layouts and should be checked before selecting an application coremask/corelist. + The logical core layout can change between different board layouts and should be checked before selecting an application corelist. Hugepage Memory Use by Applications ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~doc/guides/linux_gsg/eal_args.include.rst +0
-9@@ -4,10 +4,6 @@ Lcore-related options ~~~~~~~~~~~~~~~~~~~~~ -* ``-c <core mask>`` - - Set the hexadecimal bitmask of the cores to run on. - * ``-l/--lcores <core list>`` List of cores to run on@@ -75,15 +71,10 @@ Lcore-related options Core ID that is used as main. -* ``-s <service core mask>`` - - Hexadecimal bitmask of cores to be used as service cores. - * ``-S <service core list>`` List of cores to be used as service cores. - Device-related options ~~~~~~~~~~~~~~~~~~~~~~doc/guides/rel_notes/deprecation.rst +0
-0
doc/guides/rel_notes/deprecation.rst Other API and ABI deprecation notices are to be posted below. · line 24
Quoted 8 lines
doc/guides/rel_notes/deprecation.rst +5
-0@@ -17,6 +17,16 @@ Other API and ABI deprecation notices are to be posted below. Deprecation Notices ------------------- +* EAL: The ``-c <coremask>`` commandline parameter is deprecated + and will be removed in a future release. + Use the ``-l <corelist>`` or ``--lcores=<corelist>`` parameters instead + to specify the cores to be used when running a DPDK application. +
Prefix is usually lower case, so eal:.
Quoted 45 lines
doc/guides/rel_notes/deprecation.rst +5
-0+* EAL: The ``-s <service-coremask>`` commandline parameter is deprecated + and will be removed in a future release. + Use the ``-S <service-corelist>`` parameter instead + to specify the cores to be used for background services in DPDK. + * build: The ``enable_kmods`` option is deprecated and will be removed in a future release. Setting/clearing the option has no impact on the build. Instead, kernel modules will be always built for OS's where out-of-tree kernel moduleslib/eal/common/eal_common_options.c +6
-0@@ -616,6 +616,9 @@ eal_parse_service_coremask(const char *coremask)int val;uint32_t taken_lcore_count =0 ; +EAL_LOG (WARNING ,"'-s <service-coremask>' is deprecated, and will be removed in a future release." ); +EAL_LOG (WARNING ,"\tUse '-S <service-corelist>' option instead." ); +if (coremask ==NULL )return -1 ;/* Remove all blank characters ahead and after . @@ -779,6 +782,9 @@ rte_eal_parse_coremask(const char *coremask, int *cores) cores[idx] =-1 ; idx =0 ; +EAL_LOG (WARNING ,"'-c <coremask>' option is deprecated, and will be removed in a future release" ); +EAL_LOG (WARNING ,"\tUse '-l <corelist>' or '--lcores=<corelist>' option instead" ); +/* Remove all blank characters ahead and after . * Remove 0x/0X if exists. */ lib/eal/include/rte_lcore.h +0
-2@@ -102,7 +102,6 @@ unsigned int rte_lcore_count(void);* When option -c or -l is given, the index corresponds * to the order in the list. * For example: -* -c 0x30, lcore 4 has index 0, and 5 has index 1. * -l 22,18 lcore 22 has index 0, and 18 has index 1. * * @param lcore_id --
Quoted 2 lines
2.48.1
Otherwise this lgtm.
Signature · 1 line
David Marchand
PATCH v2 1/1 eal: deprecate old coremask-based EAL parameters
In reply to Bruce RichardsonAs the number of cores/cpus on platforms has increased over the years, the use of coremasks rather than core-lists for identifying DPDK cores has become more and more unwieldy. At this point, let's deprecate the coremask-based EAL parameters for future removal, and point users to the core-list based versions instead.
Depends-on: series-35540 ("use core lists not masks in documentation")
---
V2:
* updated freebsd GSG doc
* additional changes to linux GSG sample apps section
* removed a couple of outdated references to coremask/list being mandatory
* made EAL prefix lower-case in deprecation doc
--- doc/guides/freebsd_gsg/build_sample_apps.rst | 8 +++----- doc/guides/linux_gsg/build_sample_apps.rst | 18 +++++++----------- doc/guides/linux_gsg/eal_args.include.rst | 4 ---- doc/guides/rel_notes/deprecation.rst | 10 ++++++++++ lib/eal/common/eal_common_options.c | 6 ++++++ lib/eal/include/rte_lcore.h | 1 - 6 files changed, 26 insertions(+), 21 deletions(-)
doc/guides/freebsd_gsg/build_sample_apps.rst +3 -5
@@ -61,10 +61,9 @@ A large number of options can be given to the EAL when running an application. A full list of options can be got by passing `--help` to a DPDK application. Some of the EAL options for FreeBSD are as follows: -* ``-c COREMASK`` or ``-l CORELIST``: - A hexadecimal bit mask of the cores to run on. Note that core numbering - can change between platforms and should be determined beforehand. The corelist - is a list of cores to use instead of a core mask. +* ``-l CORELIST``: + A list of the cores to run on, for example: ``-l 1-3``, or ``-l 1,3,5-10``. + Note that core numbering can change between platforms and should be determined beforehand. * ``-b <domain:bus:devid.func>``: Blocklisting of ports; prevent EAL from using specified PCI device
@@ -94,7 +93,6 @@ Other options, specific to Linux and are not supported under FreeBSD are as foll * ``--file-prefix``: The prefix text used for hugepage filenames. -The ``-c`` or ``-l`` option is mandatory; the others are optional. .. _running_non_root:
doc/guides/linux_gsg/build_sample_apps.rst +7 -11
@@ -33,16 +33,15 @@ The following is the list of options that can be given to the EAL: .. code-block:: console - ./rte-app [-c COREMASK | -l CORELIST] [-n NUM] [-b <domain:bus:devid.func>] \ + ./rte-app [-l CORELIST] [-n NUM] [-b <domain:bus:devid.func>] \ [--numa-mem=MB,...] [-d LIB.so|DIR] [-m MB] [-r NUM] [-v] [--file-prefix] \ [--proc-type <primary|secondary|auto>] The EAL options are as follows: -* ``-c COREMASK`` or ``-l CORELIST``: - An hexadecimal bit mask of the cores to run on. Note that core numbering can - change between platforms and should be determined beforehand. The corelist is - a set of core numbers instead of a bitmap core mask. +* ``-l CORELIST``: + An list of the cores to run on, for example: ``-l 1-3`` or ``-l 1,3,5-10``. + Note that core numbering can change between platforms and should be determined beforehand. * ``-n NUM``: Number of memory channels per processor socket.
@@ -108,8 +107,6 @@ The EAL options are as follows: Store memory segments in fewer files (dynamic memory mode only - does not affect legacy memory mode). -The ``-c`` or ``-l`` and option is mandatory; the others are optional. - Copy the DPDK application binary to your target, then run the application as follows (assuming the platform has four memory channels per processor socket, and that cores 0-3 are present and are to be used for running the application)::
@@ -126,10 +123,9 @@ and that cores 0-3 are present and are to be used for running the application):: Logical Core Use by Applications ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -The coremask (-c 0x0f) or corelist (-l 0-3) parameter is always mandatory for DPDK applications. -Each bit of the mask corresponds to the equivalent logical core number as reported by Linux. The preferred corelist option is a cleaner method to define cores to be used. +The corelist (``-l``/``--lcores``) parameter is generally used for DPDK applications to specify the cores on which the application should run. Since these logical core numbers, and their mapping to specific cores on specific NUMA sockets, can vary from platform to platform, -it is recommended that the core layout for each platform be considered when choosing the coremask/corelist to use in each case. +it is recommended that the core layout for each platform be considered when choosing the corelist to use in each case. On initialization of the EAL layer by a DPDK application, the logical cores to be used and their socket location are displayed. This information can also be determined for all cores on the system by examining the ``/proc/cpuinfo`` file, for example, by running cat ``/proc/cpuinfo``.
@@ -151,7 +147,7 @@ This can be useful when using other processors to understand the mapping of the .. warning:: - The logical core layout can change between different board layouts and should be checked before selecting an application coremask/corelist. + The logical core layout can change between different board layouts and should be checked before selecting an application corelist. Hugepage Memory Use by Applications ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
doc/guides/linux_gsg/eal_args.include.rst +0 -4
@@ -4,10 +4,6 @@ Lcore-related options ~~~~~~~~~~~~~~~~~~~~~ -* ``-c <core mask>`` - - Set the hexadecimal bitmask of the cores to run on. - * ``-l/--lcores <core list>`` List of cores to run on
doc/guides/rel_notes/deprecation.rst +10 -0
@@ -17,6 +17,16 @@ Other API and ABI deprecation notices are to be posted below. Deprecation Notices ------------------- +* eal: The ``-c <coremask>`` commandline parameter is deprecated + and will be removed in a future release. + Use the ``-l <corelist>`` or ``--lcores=<corelist>`` parameters instead + to specify the cores to be used when running a DPDK application. + +* eal: The ``-s <service-coremask>`` commandline parameter is deprecated + and will be removed in a future release. + Use the ``-S <service-corelist>`` parameter instead + to specify the cores to be used for background services in DPDK. + * build: The ``enable_kmods`` option is deprecated and will be removed in a future release. Setting/clearing the option has no impact on the build. Instead, kernel modules will be always built for OS's where out-of-tree kernel modules
lib/eal/common/eal_common_options.c +6 -0
@@ -616,6 +616,9 @@ eal_parse_service_coremask(const char *coremask)int val;uint32_t taken_lcore_count =0 ; +EAL_LOG (WARNING ,"'-s <service-coremask>' is deprecated, and will be removed in a future release." ); +EAL_LOG (WARNING ,"\tUse '-S <service-corelist>' option instead." ); +if (coremask ==NULL )return -1 ;/* Remove all blank characters ahead and after .
@@ -779,6 +782,9 @@ rte_eal_parse_coremask(const char *coremask, int *cores) cores[idx] =-1 ; idx =0 ; +EAL_LOG (WARNING ,"'-c <coremask>' option is deprecated, and will be removed in a future release" ); +EAL_LOG (WARNING ,"\tUse '-l <corelist>' or '--lcores=<corelist>' option instead" ); +/* Remove all blank characters ahead and after . * Remove 0x/0X if exists. */
lib/eal/include/rte_lcore.h +0 -1
@@ -102,7 +102,6 @@ unsigned int rte_lcore_count(void);* When option -c or -l is given, the index corresponds * to the order in the list. * For example: -* -c 0x30, lcore 4 has index 0, and 5 has index 1. * -l 22,18 lcore 22 has index 0, and 18 has index 1. * * @param lcore_id
Signature · 1 line
2.48.1
Quoted 7 lines · Bruce Richardson
As the number of cores/cpus on platforms has increased over the years, the use of coremasks rather than core-lists for identifying DPDK cores has become more and more unwieldy. At this point, let's deprecate the coremask-based EAL parameters for future removal, and point users to the core-list based versions instead.
Quoted 6 lines
Depends-on: series-35540 ("use core lists not masks in documentation")
Signed-off-by Bruce Richardson <[email protected]>Acked-by Vipin Varghese <[email protected]>Acked-by Anatoly Burakov <[email protected]>
Signature · 1 line
David Marchand
Quoted 10 lines · David Marchand
Quoted 7 lines · Bruce Richardson
As the number of cores/cpus on platforms has increased over the years, the use of coremasks rather than core-lists for identifying DPDK cores has become more and more unwieldy. At this point, let's deprecate the coremask-based EAL parameters for future removal, and point users to the core-list based versions instead.
Quoted 8 lines
Quoted 6 lines
Depends-on: series-35540 ("use core lists not masks in documentation")
Signed-off-by Bruce Richardson <[email protected]>Acked-by Vipin Varghese <[email protected]>Acked-by Anatoly Burakov <[email protected]>Acked-by David Marchand <[email protected]>
I realised the test-null.sh script needs tweaking. I'll squash this:
devtools/test-null.sh +2 -2
@@ -7,7 +7,7 @@ build=${1:-build} # first argument can be the build directory testpmd=$1 # or first argument can be the testpmd path -coremask=${2:-3} # default using cores 0 and 1 +corelist=${2:-0-1} # default using cores 0 and 1 eal_options=$3 testpmd_options=$4
@@ -28,6 +28,6 @@ fi (sleep 1 && echo stop) | # testpmd only needs 20M, make it x2 (default number of cores) for NUMA systems -$testpmd -c $coremask --no-huge -m 40 \ +$testpmd -l $corelist --no-huge -m 40 \ $libs -a 0:0.0 --vdev net_null1 --vdev net_null2 $eal_options -- \ --no-mlockall --total-num-mbufs=2048 $testpmd_options -ia
Signature · 1 line
David Marchand
David Marchand
AppliedQuoted 11 lines · Bruce Richardson
As the number of cores/cpus on platforms has increased over the years, the use of coremasks rather than core-lists for identifying DPDK cores has become more and more unwieldy. At this point, let's deprecate the coremask-based EAL parameters for future removal, and point users to the core-list based versions instead.
Signed-off-by Bruce Richardson <[email protected]>Acked-by Vipin Varghese <[email protected]>Acked-by Anatoly Burakov <[email protected]>
Applied, thanks.
Signature · 1 line
David Marchand