From: fengchengwen <fengchengwen@huawei.com>
To: Bruce Richardson <bruce.richardson@intel.com>, <dev@dpdk.org>
Cc: <david.marchand@redhat.com>
Subject: Re: [PATCH v11 06/21] argparse: add support for parsing core lists
Date: Wed, 15 Oct 2025 16:40:48 +0800 [thread overview]
Message-ID: <7bdc406a-ac1b-4064-aca2-2c0a4019307b@huawei.com> (raw)
In-Reply-To: <20251009130056.2630343-7-bruce.richardson@intel.com>
Minor comment on paragraph layout, with that fixed:
Acked-by: Chengwen Feng <fengchengwen@huawei.com>
On 10/9/2025 9:00 PM, Bruce Richardson wrote:
> Core lists are widely used in DPDK, so add support for parsing them.
>
> Signed-off-by: Bruce Richardson <bruce.richardson@intel.com>
> ---
> app/test/test_argparse.c | 195 +++++++++++++++++++++++++
> doc/guides/prog_guide/argparse_lib.rst | 32 ++++
> lib/argparse/rte_argparse.c | 65 +++++++++
> lib/argparse/rte_argparse.h | 2 +
> 4 files changed, 294 insertions(+)
>
> diff --git a/app/test/test_argparse.c b/app/test/test_argparse.c
> index 0a229752fa..8d70166cfa 100644
> --- a/app/test/test_argparse.c
> +++ b/app/test/test_argparse.c
> @@ -6,6 +6,7 @@
> #include <string.h>
>
> #include <rte_argparse.h>
> +#include <rte_os.h>
>
> #include "test.h"
>
> @@ -500,6 +501,40 @@ test_argparse_opt_autosave_parse_int_of_optional_val(void)
> return 0;
> }
>
> +static int
> +test_argparse_opt_parse_corelist_of_required_val(void)
> +{
> + struct rte_argparse *obj;
> + rte_cpuset_t val_cpuset;
> + char *argv[3];
> + int ret;
> +
> + /* test with long option and single core - this is known to work */
> + obj = test_argparse_init_obj();
> + obj->args[0].name_long = "--corelist";
> + obj->args[0].name_short = "-c";
> + obj->args[0].val_saver = (void *)&val_cpuset;
> + obj->args[0].val_set = NULL;
> + obj->args[0].value_required = RTE_ARGPARSE_VALUE_REQUIRED;
> + obj->args[0].value_type = RTE_ARGPARSE_VALUE_TYPE_CORELIST;
> + obj->args[1].name_long = NULL;
> + argv[0] = test_strdup(obj->prog_name);
> + argv[1] = test_strdup("--corelist");
> + argv[2] = test_strdup("1,3-5");
> + CPU_ZERO(&val_cpuset);
> + ret = rte_argparse_parse(obj, 3, argv);
> + TEST_ASSERT(ret == 3, "Argparse parse expect success!");
> + TEST_ASSERT(!CPU_ISSET(0, &val_cpuset), "Core 0 should not be set in corelist!");
> + TEST_ASSERT(CPU_ISSET(1, &val_cpuset), "Core 1 should be set in corelist!");
> + TEST_ASSERT(!CPU_ISSET(2, &val_cpuset), "Core 2 should not be set in corelist!");
> + TEST_ASSERT(CPU_ISSET(3, &val_cpuset), "Core 3 should be set in corelist!");
> + TEST_ASSERT(CPU_ISSET(4, &val_cpuset), "Core 4 should be set in corelist!");
> + TEST_ASSERT(CPU_ISSET(5, &val_cpuset), "Core 5 should be set in corelist!");
> + TEST_ASSERT(!CPU_ISSET(6, &val_cpuset), "Core 6 should not be set in corelist!");
> +
> + return 0;
> +}
> +
> static int
> opt_callback_parse_int_of_no_val(uint32_t index, const char *value, void *opaque)
> {
> @@ -782,6 +817,159 @@ test_argparse_pos_callback_parse_int(void)
> return 0;
> }
>
> +static int
> +test_argparse_parse_type_corelist(void)
> +{
> + char *corelist_valid_single = test_strdup("5");
> + char *corelist_valid_multiple = test_strdup("0,1,5");
> + char *corelist_valid_range = test_strdup("1-5");
> + char *corelist_valid_mixed = test_strdup("0,1,5-10,12-16,18,20");
> + char *corelist_valid_reverse_range = test_strdup("10-5");
> + char *corelist_valid_initial_spaces = test_strdup(" 1,2,5-7");
> + char *corelist_valid_empty = test_strdup("");
> + char *corelist_invalid_spaces = test_strdup(" 1 , 2 , 5-7 ");
> + char *corelist_invalid_letters = test_strdup("1,a,3");
> + char *corelist_invalid_range_incomplete = test_strdup("1-");
> + char *corelist_invalid_range_double_dash = test_strdup("1--5");
> + char *corelist_invalid_range_double_range = test_strdup("1-3-5");
> + char *corelist_invalid_special_chars = test_strdup("1,2@3");
> + char *corelist_invalid_comma_only = test_strdup(",");
> + char *corelist_invalid_out_of_range = test_strdup("70000");
> + rte_cpuset_t val_cpuset;
> + int ret;
> +
> + /* test valid single core */
> + CPU_ZERO(&val_cpuset);
> + ret = rte_argparse_parse_type(corelist_valid_single,
> + RTE_ARGPARSE_VALUE_TYPE_CORELIST, &val_cpuset);
> + TEST_ASSERT(ret == 0, "Argparse parse type for corelist (single core) failed!");
> + TEST_ASSERT(CPU_ISSET(5, &val_cpuset), "Core 5 should be set in corelist!");
> + TEST_ASSERT(!CPU_ISSET(0, &val_cpuset), "Core 0 should not be set in corelist!");
> + TEST_ASSERT(!CPU_ISSET(1, &val_cpuset), "Core 1 should not be set in corelist!");
> +
> + /* test valid multiple cores */
> + CPU_ZERO(&val_cpuset);
> + ret = rte_argparse_parse_type(corelist_valid_multiple,
> + RTE_ARGPARSE_VALUE_TYPE_CORELIST, &val_cpuset);
> + TEST_ASSERT(ret == 0, "Argparse parse type for corelist (multiple cores) failed!");
> + TEST_ASSERT(CPU_ISSET(0, &val_cpuset), "Core 0 should be set in corelist!");
> + TEST_ASSERT(CPU_ISSET(1, &val_cpuset), "Core 1 should be set in corelist!");
> + TEST_ASSERT(CPU_ISSET(5, &val_cpuset), "Core 5 should be set in corelist!");
> + TEST_ASSERT(!CPU_ISSET(2, &val_cpuset), "Core 2 should not be set in corelist!");
> + TEST_ASSERT(!CPU_ISSET(3, &val_cpuset), "Core 3 should not be set in corelist!");
> +
> + /* test valid range */
> + CPU_ZERO(&val_cpuset);
> + ret = rte_argparse_parse_type(corelist_valid_range,
> + RTE_ARGPARSE_VALUE_TYPE_CORELIST, &val_cpuset);
> + TEST_ASSERT(ret == 0, "Argparse parse type for corelist (range) failed!");
> + for (int i = 1; i <= 5; i++)
> + TEST_ASSERT(CPU_ISSET(i, &val_cpuset), "Core %d should be set in range 1-5!", i);
> + TEST_ASSERT(!CPU_ISSET(0, &val_cpuset), "Core 0 should not be set in range 1-5!");
> + TEST_ASSERT(!CPU_ISSET(6, &val_cpuset), "Core 6 should not be set in range 1-5!");
> +
> + /* test valid mixed corelist */
> + CPU_ZERO(&val_cpuset);
> + ret = rte_argparse_parse_type(corelist_valid_mixed,
> + RTE_ARGPARSE_VALUE_TYPE_CORELIST, &val_cpuset);
> + TEST_ASSERT(ret == 0, "Argparse parse type for corelist (mixed) failed!");
> + TEST_ASSERT(CPU_ISSET(0, &val_cpuset), "Core 0 should be set in mixed corelist!");
> + TEST_ASSERT(CPU_ISSET(1, &val_cpuset), "Core 1 should be set in mixed corelist!");
> + for (int i = 5; i <= 10; i++)
> + TEST_ASSERT(CPU_ISSET(i, &val_cpuset), "Core %d should be set in range 5-10!", i);
> + for (int i = 12; i <= 16; i++)
> + TEST_ASSERT(CPU_ISSET(i, &val_cpuset), "Core %d should be set in range 12-16!", i);
> +
> + TEST_ASSERT(CPU_ISSET(18, &val_cpuset), "Core 18 should be set in mixed corelist!");
> + TEST_ASSERT(CPU_ISSET(20, &val_cpuset), "Core 20 should be set in mixed corelist!");
> + TEST_ASSERT(!CPU_ISSET(2, &val_cpuset), "Core 2 should not be set in mixed corelist!");
> + TEST_ASSERT(!CPU_ISSET(11, &val_cpuset), "Core 11 should not be set in mixed corelist!");
> + TEST_ASSERT(!CPU_ISSET(17, &val_cpuset), "Core 17 should not be set in mixed corelist!");
> + TEST_ASSERT(!CPU_ISSET(19, &val_cpuset), "Core 19 should not be set in mixed corelist!");
> +
> + /* test valid reverse range (10-5 should be interpreted as 5-10) */
> + CPU_ZERO(&val_cpuset);
> + ret = rte_argparse_parse_type(corelist_valid_reverse_range,
> + RTE_ARGPARSE_VALUE_TYPE_CORELIST, &val_cpuset);
> + TEST_ASSERT(ret == 0, "Argparse parse type for corelist (reverse range) failed!");
> + for (int i = 5; i <= 10; i++)
> + TEST_ASSERT(CPU_ISSET(i, &val_cpuset),
> + "Core %d should be set in reverse range 10-5!", i);
> + TEST_ASSERT(!CPU_ISSET(4, &val_cpuset), "Core 4 should not be set in reverse range 10-5!");
> + TEST_ASSERT(!CPU_ISSET(11, &val_cpuset), "Core 11 should not be set in reverse range 10-5!");
> +
> + /* test valid corelist with initial spaces only */
> + CPU_ZERO(&val_cpuset);
> + ret = rte_argparse_parse_type(corelist_valid_initial_spaces,
> + RTE_ARGPARSE_VALUE_TYPE_CORELIST, &val_cpuset);
> + TEST_ASSERT(ret == 0, "Argparse parse type for corelist (with initial spaces) failed!");
> + TEST_ASSERT(CPU_ISSET(1, &val_cpuset), "Core 1 should be set in initial spaced corelist!");
> + TEST_ASSERT(CPU_ISSET(2, &val_cpuset), "Core 2 should be set in initial spaced corelist!");
> + for (int i = 5; i <= 7; i++)
> + TEST_ASSERT(CPU_ISSET(i, &val_cpuset),
> + "Core %d should be set in initial spaced range 5-7!", i);
> +
> + /* test valid empty corelist */
> + CPU_ZERO(&val_cpuset);
> + ret = rte_argparse_parse_type(corelist_valid_empty,
> + RTE_ARGPARSE_VALUE_TYPE_CORELIST, &val_cpuset);
> + TEST_ASSERT(ret == 0, "Argparse parse type for corelist (empty) failed!");
> + /* Verify that no cores are set in empty corelist */
> + for (int i = 0; i < CPU_SETSIZE; i++)
> + TEST_ASSERT(!CPU_ISSET(i, &val_cpuset),
> + "Core %d should not be set in empty corelist!", i);
> +
> + /* test invalid corelist with spaces */
> + CPU_ZERO(&val_cpuset);
> + ret = rte_argparse_parse_type(corelist_invalid_spaces,
> + RTE_ARGPARSE_VALUE_TYPE_CORELIST, &val_cpuset);
> + TEST_ASSERT(ret != 0, "Argparse parse type for corelist (with spaces) should have failed!");
> +
> + /* test invalid corelist with letters */
> + CPU_ZERO(&val_cpuset);
> + ret = rte_argparse_parse_type(corelist_invalid_letters,
> + RTE_ARGPARSE_VALUE_TYPE_CORELIST, &val_cpuset);
> + TEST_ASSERT(ret != 0, "Argparse parse type for corelist (with letters) should have failed!");
> +
> + /* test invalid corelist with incomplete range */
> + CPU_ZERO(&val_cpuset);
> + ret = rte_argparse_parse_type(corelist_invalid_range_incomplete,
> + RTE_ARGPARSE_VALUE_TYPE_CORELIST, &val_cpuset);
> + TEST_ASSERT(ret != 0, "Argparse parse type for corelist (incomplete range) should have failed!");
> +
> + /* test invalid corelist with double dash */
> + CPU_ZERO(&val_cpuset);
> + ret = rte_argparse_parse_type(corelist_invalid_range_double_dash,
> + RTE_ARGPARSE_VALUE_TYPE_CORELIST, &val_cpuset);
> + TEST_ASSERT(ret != 0, "Argparse parse type for corelist (double dash) should have failed!");
> +
> + /* test invalid corelist with double dash */
> + CPU_ZERO(&val_cpuset);
> + ret = rte_argparse_parse_type(corelist_invalid_range_double_range,
> + RTE_ARGPARSE_VALUE_TYPE_CORELIST, &val_cpuset);
> + TEST_ASSERT(ret != 0, "Argparse parse type for corelist (double range) should have failed!");
> +
> + /* test invalid corelist with special characters */
> + CPU_ZERO(&val_cpuset);
> + ret = rte_argparse_parse_type(corelist_invalid_special_chars,
> + RTE_ARGPARSE_VALUE_TYPE_CORELIST, &val_cpuset);
> + TEST_ASSERT(ret != 0, "Argparse parse type for corelist (special chars) should have failed!");
> +
> + /* test invalid comma-only corelist */
> + CPU_ZERO(&val_cpuset);
> + ret = rte_argparse_parse_type(corelist_invalid_comma_only,
> + RTE_ARGPARSE_VALUE_TYPE_CORELIST, &val_cpuset);
> + TEST_ASSERT(ret != 0, "Argparse parse type for corelist (comma only) should have failed!");
> +
> + /* test invalid out-of-range corelist */
> + CPU_ZERO(&val_cpuset);
> + ret = rte_argparse_parse_type(corelist_invalid_out_of_range,
> + RTE_ARGPARSE_VALUE_TYPE_CORELIST, &val_cpuset);
> + TEST_ASSERT(ret != 0, "Argparse parse type for corelist (out of range) should have failed!");
> +
> + return 0;
> +}
> +
> static int
> test_argparse_parse_type(void)
> {
> @@ -880,6 +1068,12 @@ test_argparse_parse_type(void)
> ret = rte_argparse_parse_type(bool_numeric_invalid, RTE_ARGPARSE_VALUE_TYPE_BOOL,
> &val_bool);
> TEST_ASSERT(ret != 0, "Argparse parse type for bool (numeric invalid) passed unexpectedly!");
> +
> + /* test for corelist parsing */
> + ret = test_argparse_parse_type_corelist();
> + if (ret != 0)
> + return ret;
> +
> return 0;
> }
>
> @@ -900,6 +1094,7 @@ static struct unit_test_suite argparse_test_suite = {
> TEST_CASE(test_argparse_opt_autosave_parse_int_of_no_val),
> TEST_CASE(test_argparse_opt_autosave_parse_int_of_required_val),
> TEST_CASE(test_argparse_opt_autosave_parse_int_of_optional_val),
> + TEST_CASE(test_argparse_opt_parse_corelist_of_required_val),
> TEST_CASE(test_argparse_opt_callback_parse_int_of_no_val),
> TEST_CASE(test_argparse_opt_callback_parse_int_of_required_val),
> TEST_CASE(test_argparse_opt_callback_parse_int_of_optional_val),
> diff --git a/doc/guides/prog_guide/argparse_lib.rst b/doc/guides/prog_guide/argparse_lib.rst
> index 7868af5672..7882d910ab 100644
> --- a/doc/guides/prog_guide/argparse_lib.rst
> +++ b/doc/guides/prog_guide/argparse_lib.rst
> @@ -229,6 +229,38 @@ Boolean arguments are parsed using ``RTE_ARGPARSE_VALUE_TYPE_BOOL`` and accept t
> },
> };
>
> +Corelist Type
> +^^^^^^^^^^^^^
> +
> +The argparse library supports automatic parsing of CPU core lists using the
> +``RTE_ARGPARSE_VALUE_TYPE_CORELIST`` value type. This feature allows users to
> +specify CPU cores in a flexible format similar to other DPDK applications.
> +
> +.. code-block:: C
> +
> + #include <rte_os.h> /* for CPU set operations */
> +
> + static rte_cpuset_t cores;
> +
> + static struct rte_argparse obj = {
> + .args = {
> + { "--cores", "-c", "CPU cores to use", &cores, NULL, RTE_ARGPARSE_VALUE_REQUIRED, RTE_ARGPARSE_VALUE_TYPE_CORELIST },
> + ARGPARSE_ARG_END(),
> + },
> + };
> +
> +The corelist parsing supports the following input formats:
> +
> +- **Single core**: ``--cores 5`` (sets core 5)
> +- **Multiple cores**: ``--cores 1,2,5`` (sets cores 1, 2, and 5)
> +- **Core ranges**: ``--cores 1-5`` (sets cores 1, 2, 3, 4, and 5)
> +- **Mixed format**: ``--cores 0,2-4,7`` (sets cores 0, 2, 3, 4, and 7)
> +- **Reverse ranges**: ``--cores 5-1`` (equivalent to 1-5, sets cores 1, 2, 3, 4, and 5)
> +- **Empty corelist**: ``--cores ""`` (sets no cores)
> +
> +The parsed result is stored in an ``rte_cpuset_t`` structure that can be used
> +with standard CPU set operations:
the : should be .
> +
> Parsing by callback way
> ~~~~~~~~~~~~~~~~~~~~~~~
>
> diff --git a/lib/argparse/rte_argparse.c b/lib/argparse/rte_argparse.c
> index 2b5da5f1db..8b0fcec4b8 100644
> --- a/lib/argparse/rte_argparse.c
> +++ b/lib/argparse/rte_argparse.c
> @@ -5,9 +5,11 @@
> #include <errno.h>
> #include <stdlib.h>
> #include <string.h>
> +#include <ctype.h>
>
> #include <eal_export.h>
> #include <rte_log.h>
> +#include <rte_os.h>
>
> #include "rte_argparse.h"
>
> @@ -53,6 +55,7 @@ is_valid_value_type_field(const struct rte_argparse_arg *arg)
> case RTE_ARGPARSE_VALUE_TYPE_U64:
> case RTE_ARGPARSE_VALUE_TYPE_STR:
> case RTE_ARGPARSE_VALUE_TYPE_BOOL:
> + case RTE_ARGPARSE_VALUE_TYPE_CORELIST:
> return true;
> /* omit default case so compiler warns on any missing enum values */
> }
> @@ -554,6 +557,66 @@ parse_arg_bool(const struct rte_argparse_arg *arg, const char *value)
> return 0;
> }
>
> +static int
> +parse_arg_corelist(const struct rte_argparse_arg *arg, const char *value)
> +{
> + rte_cpuset_t *cpuset = arg->val_saver;
> + const char *last = value;
> + int min = -1;
> +
> + if (value == NULL) {
> + *cpuset = *(rte_cpuset_t *)arg->val_set;
> + return 0;
> + }
> +
> + CPU_ZERO(cpuset);
> + while (*last != '\0') {
> + char *end;
> + int64_t idx;
> + int32_t max;
> +
> + while (isblank(*value))
> + value++;
> +
> + if (!isdigit(*value))
> + return -1;
Suggest add detail trace (ARGPARSE_LOG(ERR, xxx)) when error
> +
> + errno = 0;
> + idx = strtol(value, &end, 10);
> + last = end;
> + if (errno || idx > UINT16_MAX)
> + return -1;
> +
> + if (*end == '-') {
> + if (min != -1) /* can't have '-' within a range */
> + return -1;
> + min = idx; /* start of range, move to next loop stage */
> + } else if (*end == ',' || *end == '\0') {
> + /* single value followed by comma or end (min is set only by '-') */
> + if (min == -1) {
> + min = max = idx;
> + } else if (min > idx) {
> + /* we have range from high to low */
> + max = min;
> + min = idx;
> + } else {
> + /* range from low to high */
> + max = idx;
> + }
> +
> + for (; min <= max; min++)
> + CPU_SET(min, cpuset);
> +
> + min = -1; /* no longer in a range */
> + } else {
> + /* end is an unexpected character, return error */
> + return -1;
> + }
> + value = last + 1;
> + }
> + return 0;
> +}
> +
> static int
> parse_arg_autosave(const struct rte_argparse_arg *arg, const char *value)
> {
> @@ -575,6 +638,8 @@ parse_arg_autosave(const struct rte_argparse_arg *arg, const char *value)
> return parse_arg_str(arg, value);
> case RTE_ARGPARSE_VALUE_TYPE_BOOL:
> return parse_arg_bool(arg, value);
> + case RTE_ARGPARSE_VALUE_TYPE_CORELIST:
> + return parse_arg_corelist(arg, value);
> /* omit default case so compiler warns on missing enum values */
> }
> return -EINVAL;
> diff --git a/lib/argparse/rte_argparse.h b/lib/argparse/rte_argparse.h
> index 63b49ba220..991f084927 100644
> --- a/lib/argparse/rte_argparse.h
> +++ b/lib/argparse/rte_argparse.h
> @@ -69,6 +69,8 @@ enum rte_argparse_value_type {
> RTE_ARGPARSE_VALUE_TYPE_STR,
> /** The argument's value is boolean flag type. */
> RTE_ARGPARSE_VALUE_TYPE_BOOL,
> + /** The argument's value is a corelist */
please add a period at the end.
> + RTE_ARGPARSE_VALUE_TYPE_CORELIST,
> };
>
> /** Additional flags which may be specified for each argument */
next prev parent reply other threads:[~2025-10-15 8:40 UTC|newest]
Thread overview: 199+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-05-20 16:40 [RFC PATCH 0/7] rework EAL argument parsing in DPDK Bruce Richardson
2025-05-20 16:40 ` [RFC PATCH 1/7] eal: add long options for each short option Bruce Richardson
2025-05-20 16:40 ` [RFC PATCH 2/7] argparse: add support for string and boolean args Bruce Richardson
2025-05-20 16:40 ` [RFC PATCH 3/7] argparse: make argparse EAL-args compatible Bruce Richardson
2025-05-22 10:44 ` Bruce Richardson
2025-05-20 16:40 ` [RFC PATCH 4/7] eal: define the EAL parameters in argparse format Bruce Richardson
2025-05-20 16:40 ` [RFC PATCH 5/7] eal: gather EAL args before processing Bruce Richardson
2025-05-20 16:40 ` [RFC PATCH 6/7] eal: combine parameter validation checks Bruce Richardson
2025-05-20 16:40 ` [RFC PATCH 7/7] eal: simplify handling of conflicting cmdline options Bruce Richardson
2025-07-08 17:20 ` [RFC PATCH v2 0/5] rework EAL argument parsing in DPDK Bruce Richardson
2025-07-08 17:20 ` [RFC PATCH v2 1/5] eal: add long options for each short option Bruce Richardson
2025-07-08 17:20 ` [RFC PATCH v2 2/5] eal: define the EAL parameters in argparse format Bruce Richardson
2025-07-08 17:20 ` [RFC PATCH v2 3/5] eal: gather EAL args before processing Bruce Richardson
2025-07-08 17:20 ` [RFC PATCH v2 4/5] eal: combine parameter validation checks Bruce Richardson
2025-07-08 17:20 ` [RFC PATCH v2 5/5] eal: simplify handling of conflicting cmdline options Bruce Richardson
2025-07-08 18:41 ` [RFC PATCH v2 0/5] rework EAL argument parsing in DPDK Stephen Hemminger
2025-07-09 7:50 ` Bruce Richardson
2025-07-09 12:30 ` David Marchand
2025-07-09 12:54 ` Bruce Richardson
2025-07-17 10:41 ` David Marchand
2025-07-17 10:54 ` Bruce Richardson
2025-07-18 14:33 ` [PATCH v3 0/9] rework EAL argument parsing Bruce Richardson
2025-07-18 14:33 ` [PATCH v3 1/9] build: add define for the OS environment name Bruce Richardson
2025-07-18 14:33 ` [PATCH v3 2/9] argparse: export function to print help text for object Bruce Richardson
2025-07-18 14:33 ` [PATCH v3 3/9] argparse: allow user-override of help printing Bruce Richardson
2025-07-21 8:43 ` David Marchand
2025-07-21 9:00 ` Bruce Richardson
2025-07-18 14:33 ` [PATCH v3 4/9] eal: add long options for each short option Bruce Richardson
2025-07-18 14:33 ` [PATCH v3 5/9] eal: define the EAL parameters in argparse format Bruce Richardson
2025-07-21 8:41 ` David Marchand
2025-07-21 9:05 ` Bruce Richardson
2025-07-21 12:53 ` Bruce Richardson
2025-07-18 14:33 ` [PATCH v3 6/9] eal: gather EAL args before processing Bruce Richardson
2025-07-18 14:33 ` [PATCH v3 7/9] eal: ensure proper cleanup on EAL init failure Bruce Richardson
2025-07-18 14:33 ` [PATCH v3 8/9] eal: combine parameter validation checks Bruce Richardson
2025-07-18 14:33 ` [PATCH v3 9/9] eal: simplify handling of conflicting cmdline options Bruce Richardson
2025-07-18 14:41 ` [PATCH v3 0/9] rework EAL argument parsing Bruce Richardson
2025-07-21 15:08 ` [PATCH v4 " Bruce Richardson
2025-07-21 15:08 ` [PATCH v4 1/9] build: add define for the OS environment name Bruce Richardson
2025-07-21 15:08 ` [PATCH v4 2/9] argparse: export function to print help text for object Bruce Richardson
2025-07-21 15:08 ` [PATCH v4 3/9] argparse: allow user-override of help printing Bruce Richardson
2025-07-21 15:08 ` [PATCH v4 4/9] eal: add long options for each short option Bruce Richardson
2025-07-21 15:08 ` [PATCH v4 5/9] eal: define the EAL parameters in argparse format Bruce Richardson
2025-07-21 15:08 ` [PATCH v4 6/9] eal: gather EAL args before processing Bruce Richardson
2025-07-21 15:08 ` [PATCH v4 7/9] eal: ensure proper cleanup on EAL init failure Bruce Richardson
2025-07-21 15:08 ` [PATCH v4 8/9] eal: combine parameter validation checks Bruce Richardson
2025-07-21 15:08 ` [PATCH v4 9/9] eal: simplify handling of conflicting cmdline options Bruce Richardson
2025-07-21 15:16 ` [PATCH v5 0/9] rework EAL argument parsing Bruce Richardson
2025-07-21 15:16 ` [PATCH v5 1/9] build: add define for the OS environment name Bruce Richardson
2025-07-21 15:16 ` [PATCH v5 2/9] argparse: export function to print help text for object Bruce Richardson
2025-07-21 15:16 ` [PATCH v5 3/9] argparse: allow user-override of help printing Bruce Richardson
2025-07-21 15:16 ` [PATCH v5 4/9] eal: add long options for each short option Bruce Richardson
2025-07-21 15:16 ` [PATCH v5 5/9] eal: define the EAL parameters in argparse format Bruce Richardson
2025-07-21 15:16 ` [PATCH v5 6/9] eal: gather EAL args before processing Bruce Richardson
2025-07-21 15:16 ` [PATCH v5 7/9] eal: ensure proper cleanup on EAL init failure Bruce Richardson
2025-07-21 15:16 ` [PATCH v5 8/9] eal: combine parameter validation checks Bruce Richardson
2025-07-21 15:16 ` [PATCH v5 9/9] eal: simplify handling of conflicting cmdline options Bruce Richardson
2025-07-22 14:03 ` [PATCH v6 0/9] rework EAL argument parsing Bruce Richardson
2025-07-22 14:03 ` [PATCH v6 1/9] build: add define for the OS environment name Bruce Richardson
2025-07-22 14:03 ` [PATCH v6 2/9] argparse: export function to print help text for object Bruce Richardson
2025-07-22 14:03 ` [PATCH v6 3/9] argparse: allow user-override of help printing Bruce Richardson
2025-07-22 14:03 ` [PATCH v6 4/9] eal: add long options for each short option Bruce Richardson
2025-07-22 14:03 ` [PATCH v6 5/9] eal: define the EAL parameters in argparse format Bruce Richardson
2025-07-22 14:03 ` [PATCH v6 6/9] eal: gather EAL args before processing Bruce Richardson
2025-07-22 14:03 ` [PATCH v6 7/9] eal: ensure proper cleanup on EAL init failure Bruce Richardson
2025-07-22 14:03 ` [PATCH v6 8/9] eal: combine parameter validation checks Bruce Richardson
2025-07-22 14:03 ` [PATCH v6 9/9] eal: simplify handling of conflicting cmdline options Bruce Richardson
2025-09-30 13:06 ` [PATCH v6 0/9] rework EAL argument parsing David Marchand
2025-09-30 13:31 ` Bruce Richardson
2025-07-23 16:19 ` [PATCH v7 00/13] Simplify running with high-numbered CPUs Bruce Richardson
2025-07-23 16:19 ` [PATCH v7 01/13] build: add define for the OS environment name Bruce Richardson
2025-07-23 16:20 ` [PATCH v7 02/13] argparse: export function to print help text for object Bruce Richardson
2025-09-30 12:20 ` David Marchand
2025-07-23 16:20 ` [PATCH v7 03/13] argparse: allow user-override of help printing Bruce Richardson
2025-07-23 16:20 ` [PATCH v7 04/13] argparse: add documentation on supported value types Bruce Richardson
2025-07-23 16:20 ` [PATCH v7 05/13] eal: add long options for each short option Bruce Richardson
2025-09-30 12:21 ` David Marchand
2025-07-23 16:20 ` [PATCH v7 06/13] eal: define the EAL parameters in argparse format Bruce Richardson
2025-09-30 12:21 ` David Marchand
2025-09-30 15:12 ` Bruce Richardson
2025-10-01 8:46 ` David Marchand
2025-10-01 10:15 ` Bruce Richardson
2025-09-30 12:45 ` David Marchand
2025-09-30 12:58 ` Bruce Richardson
2025-09-30 13:16 ` David Marchand
2025-07-23 16:20 ` [PATCH v7 07/13] eal: gather EAL args before processing Bruce Richardson
2025-07-23 16:20 ` [PATCH v7 08/13] eal: ensure proper cleanup on EAL init failure Bruce Richardson
2025-07-23 16:20 ` [PATCH v7 09/13] eal: combine parameter validation checks Bruce Richardson
2025-07-23 16:20 ` [PATCH v7 10/13] eal: simplify handling of conflicting cmdline options Bruce Richardson
2025-07-23 16:20 ` [PATCH v7 11/13] argparse: add support for parsing core lists Bruce Richardson
2025-07-23 16:20 ` [PATCH v7 12/13] eal: simplify running CPUs with ids above max lcores Bruce Richardson
2025-07-23 16:20 ` [PATCH v7 13/13] eal: add warnings about ignored options Bruce Richardson
2025-08-29 14:39 ` [PATCH v7 00/13] Simplify running with high-numbered CPUs Bruce Richardson
2025-10-02 17:42 ` [PATCH v8 00/18] " Bruce Richardson
2025-10-02 17:42 ` [PATCH v8 01/18] build: add define for the OS environment name Bruce Richardson
2025-10-02 17:42 ` [PATCH v8 02/18] argparse: export function to print help text for object Bruce Richardson
2025-10-02 17:43 ` [PATCH v8 03/18] argparse: allow user-override of help printing Bruce Richardson
2025-10-02 17:43 ` [PATCH v8 04/18] argparse: add documentation on supported value types Bruce Richardson
2025-10-02 17:43 ` [PATCH v8 05/18] argparse: add support for parsing core lists Bruce Richardson
2025-10-02 17:43 ` [PATCH v8 06/18] eal: add long options for each short option Bruce Richardson
2025-10-02 17:43 ` [PATCH v8 07/18] eal: define the EAL parameters in argparse format Bruce Richardson
2025-10-02 17:43 ` [PATCH v8 08/18] eal: gather EAL args before processing Bruce Richardson
2025-10-02 17:43 ` [PATCH v8 09/18] eal: ensure proper cleanup on EAL init failure Bruce Richardson
2025-10-02 17:43 ` [PATCH v8 10/18] eal: combine parameter validation checks Bruce Richardson
2025-10-02 17:43 ` [PATCH v8 11/18] eal: simplify handling of conflicting cmdline options Bruce Richardson
2025-10-02 17:43 ` [PATCH v8 12/18] eal: automatically init arg list options Bruce Richardson
2025-10-02 17:43 ` [PATCH v8 13/18] eal: add internal fn for converting cpuset to string Bruce Richardson
2025-10-02 17:43 ` [PATCH v8 14/18] eal: use common cpuset to string function Bruce Richardson
2025-10-02 17:43 ` [PATCH v8 15/18] eal: introduce lcore remapping option for coremasks Bruce Richardson
2025-10-02 17:43 ` [PATCH v8 16/18] eal: rework internal coremask parsing to use cpu sets Bruce Richardson
2025-10-02 17:43 ` [PATCH v8 17/18] eal: allow lcore id remapping with core lists Bruce Richardson
2025-10-02 17:43 ` [PATCH v8 18/18] eal: allow lcore remapping with autodetected core affinity Bruce Richardson
2025-10-03 8:13 ` [PATCH v8 00/18] Simplify running with high-numbered CPUs Bruce Richardson
2025-10-06 7:42 ` Morten Brørup
2025-10-06 8:41 ` Bruce Richardson
2025-10-07 15:30 ` Bruce Richardson
2025-10-03 8:14 ` [PATCH v9 " Bruce Richardson
2025-10-03 8:14 ` [PATCH v9 01/18] build: add define for the OS environment name Bruce Richardson
2025-10-03 8:14 ` [PATCH v9 02/18] argparse: export function to print help text for object Bruce Richardson
2025-10-03 8:14 ` [PATCH v9 03/18] argparse: allow user-override of help printing Bruce Richardson
2025-10-03 8:14 ` [PATCH v9 04/18] argparse: add documentation on supported value types Bruce Richardson
2025-10-03 8:14 ` [PATCH v9 05/18] argparse: add support for parsing core lists Bruce Richardson
2025-10-03 8:14 ` [PATCH v9 06/18] eal: add long options for each short option Bruce Richardson
2025-10-03 8:14 ` [PATCH v9 07/18] eal: define the EAL parameters in argparse format Bruce Richardson
2025-10-03 8:15 ` [PATCH v9 08/18] eal: gather EAL args before processing Bruce Richardson
2025-10-03 8:15 ` [PATCH v9 09/18] eal: ensure proper cleanup on EAL init failure Bruce Richardson
2025-10-03 8:15 ` [PATCH v9 10/18] eal: combine parameter validation checks Bruce Richardson
2025-10-03 8:15 ` [PATCH v9 11/18] eal: simplify handling of conflicting cmdline options Bruce Richardson
2025-10-03 8:15 ` [PATCH v9 12/18] eal: automatically init arg list options Bruce Richardson
2025-10-03 8:15 ` [PATCH v9 13/18] eal: add internal fn for converting cpuset to string Bruce Richardson
2025-10-03 8:15 ` [PATCH v9 14/18] eal: use common cpuset to string function Bruce Richardson
2025-10-03 8:15 ` [PATCH v9 15/18] eal: introduce lcore remapping option for coremasks Bruce Richardson
2025-10-03 8:15 ` [PATCH v9 16/18] eal: rework internal coremask parsing to use cpu sets Bruce Richardson
2025-10-03 8:15 ` [PATCH v9 17/18] eal: allow lcore id remapping with core lists Bruce Richardson
2025-10-03 8:15 ` [PATCH v9 18/18] eal: allow lcore remapping with autodetected core affinity Bruce Richardson
2025-10-06 14:10 ` [PATCH v9 00/18] Simplify running with high-numbered CPUs David Marchand
2025-10-06 14:42 ` Bruce Richardson
2025-10-07 16:15 ` Bruce Richardson
2025-10-08 7:53 ` Thomas Monjalon
2025-10-08 8:11 ` Bruce Richardson
2025-10-08 20:42 ` [PATCH v10 00/21] " Bruce Richardson
2025-10-08 20:42 ` [PATCH v10 01/21] build: add define for the OS environment name Bruce Richardson
2025-10-08 20:42 ` [PATCH v10 02/21] test/func_reentrancy: fix args to EAL init call Bruce Richardson
2025-10-08 20:42 ` [PATCH v10 03/21] argparse: export function to print help text for object Bruce Richardson
2025-10-08 20:42 ` [PATCH v10 04/21] argparse: allow user-override of help printing Bruce Richardson
2025-10-08 20:42 ` [PATCH v10 05/21] argparse: add documentation on supported value types Bruce Richardson
2025-10-08 20:42 ` [PATCH v10 06/21] argparse: add support for parsing core lists Bruce Richardson
2025-10-08 20:42 ` [PATCH v10 07/21] argparse: allow optional flag reordering Bruce Richardson
2025-10-08 20:42 ` [PATCH v10 08/21] argparse: support parameters to short options without "=" Bruce Richardson
2025-10-08 20:42 ` [PATCH v10 09/21] eal: add long options for each short option Bruce Richardson
2025-10-08 20:42 ` [PATCH v10 10/21] eal: define the EAL parameters in argparse format Bruce Richardson
2025-10-08 20:42 ` [PATCH v10 11/21] eal: gather EAL args before processing Bruce Richardson
2025-10-08 20:42 ` [PATCH v10 12/21] eal: ensure proper cleanup on EAL init failure Bruce Richardson
2025-10-08 20:42 ` [PATCH v10 13/21] eal: combine parameter validation checks Bruce Richardson
2025-10-08 20:42 ` [PATCH v10 14/21] eal: simplify handling of conflicting cmdline options Bruce Richardson
2025-10-08 20:42 ` [PATCH v10 15/21] eal: automatically init arg list options Bruce Richardson
2025-10-08 20:42 ` [PATCH v10 16/21] eal: add internal fn for converting cpuset to string Bruce Richardson
2025-10-08 20:42 ` [PATCH v10 17/21] eal: use common cpuset to string function Bruce Richardson
2025-10-08 20:42 ` [PATCH v10 18/21] eal: introduce lcore remapping option for coremasks Bruce Richardson
2025-10-08 20:42 ` [PATCH v10 19/21] eal: rework internal coremask parsing to use cpu sets Bruce Richardson
2025-10-08 20:42 ` [PATCH v10 20/21] eal: allow lcore ID remapping with core lists Bruce Richardson
2025-10-08 20:42 ` [PATCH v10 21/21] eal: allow lcore remapping with autodetected core affinity Bruce Richardson
2025-10-09 13:00 ` [PATCH v11 00/21] Bruce Richardson
2025-10-09 13:00 ` [PATCH v11 01/21] build: add define for the OS environment name Bruce Richardson
2025-10-15 7:27 ` fengchengwen
2025-10-09 13:00 ` [PATCH v11 02/21] test/func_reentrancy: fix args to EAL init call Bruce Richardson
2025-10-14 8:35 ` David Marchand
2025-10-15 7:28 ` fengchengwen
2025-10-09 13:00 ` [PATCH v11 03/21] argparse: export function to print help text for object Bruce Richardson
2025-10-15 12:44 ` fengchengwen
2025-10-09 13:00 ` [PATCH v11 04/21] argparse: allow user-override of help printing Bruce Richardson
2025-10-15 12:44 ` fengchengwen
2025-10-09 13:00 ` [PATCH v11 05/21] argparse: add documentation on supported value types Bruce Richardson
2025-10-15 7:53 ` fengchengwen
2025-10-15 8:40 ` Bruce Richardson
2025-10-15 12:00 ` fengchengwen
2025-10-09 13:00 ` [PATCH v11 06/21] argparse: add support for parsing core lists Bruce Richardson
2025-10-15 8:40 ` fengchengwen [this message]
2025-10-09 13:00 ` [PATCH v11 07/21] argparse: allow optional flag reordering Bruce Richardson
2025-10-09 13:00 ` [PATCH v11 08/21] argparse: support parameters to short options without "=" Bruce Richardson
2025-10-15 12:20 ` fengchengwen
2025-10-09 13:00 ` [PATCH v11 09/21] eal: add long options for each short option Bruce Richardson
2025-10-15 12:22 ` fengchengwen
2025-10-09 13:00 ` [PATCH v11 10/21] eal: define the EAL parameters in argparse format Bruce Richardson
2025-10-15 12:25 ` fengchengwen
2025-10-09 13:00 ` [PATCH v11 11/21] eal: gather EAL args before processing Bruce Richardson
2025-10-15 12:42 ` fengchengwen
2025-10-09 13:00 ` [PATCH v11 12/21] eal: ensure proper cleanup on EAL init failure Bruce Richardson
2025-10-09 13:00 ` [PATCH v11 13/21] eal: combine parameter validation checks Bruce Richardson
2025-10-09 13:00 ` [PATCH v11 14/21] eal: simplify handling of conflicting cmdline options Bruce Richardson
2025-10-09 13:00 ` [PATCH v11 15/21] eal: automatically init arg list options Bruce Richardson
2025-10-09 13:00 ` [PATCH v11 16/21] eal: add internal fn for converting cpuset to string Bruce Richardson
2025-10-09 13:00 ` [PATCH v11 17/21] eal: use common cpuset to string function Bruce Richardson
2025-10-09 13:00 ` [PATCH v11 18/21] eal: introduce lcore remapping option for coremasks Bruce Richardson
2025-10-09 13:00 ` [PATCH v11 19/21] eal: rework internal coremask parsing to use cpu sets Bruce Richardson
2025-10-09 13:00 ` [PATCH v11 20/21] eal: allow lcore ID remapping with core lists Bruce Richardson
2025-10-09 13:00 ` [PATCH v11 21/21] eal: allow lcore remapping with autodetected core affinity Bruce Richardson
2025-10-15 16:10 ` [PATCH v11 00/21] David Marchand
2025-10-15 16:31 ` Bruce Richardson
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=7bdc406a-ac1b-4064-aca2-2c0a4019307b@huawei.com \
--to=fengchengwen@huawei.com \
--cc=bruce.richardson@intel.com \
--cc=david.marchand@redhat.com \
--cc=dev@dpdk.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).