[dpdk-dev] [PATCH v3 1/2] eal: add additional info if core list too long
David Marchand
david.marchand at redhat.com
Tue Sep 21 15:51:29 CEST 2021
On Tue, Sep 21, 2021 at 1:50 PM David Hunt <david.hunt at intel.com> wrote:
> static int
> eal_parse_coremask(const char *coremask, int *cores)
> {
> @@ -839,54 +880,89 @@ eal_parse_service_corelist(const char *corelist)
> static int
> eal_parse_corelist(const char *corelist, int *cores)
> {
> - unsigned count = 0;
> + unsigned int count = 0, k;
> char *end = NULL;
> int min, max;
> int idx;
> + int lcores[RTE_MAX_LCORE];
Static array...
"-l 0-RTE_MAX_LCORE" / "-c 0x1<enough f to fill RTE_MAX_LCORE>" / "-l
0-(RTE_MAX_LCORE-1),0" crash.
Please set RTE_MAX_LCORE to 4 (or something that is smaller than your
system core count) and run the tests I provided in my previous mail.
--
David Marchand
More information about the dev
mailing list