On Thu, Jan 17, 2019 at 1:19 PM Bruce Richardson <bruce.richard...@intel.com> wrote:
> On Thu, Jan 17, 2019 at 12:13:12PM +0000, Hari Kumar Vemula wrote: > > When incorrect core value or range provided, > > as part of -l command line option, a crash occurs. > > > > Added valid range checks to fix the crash. > > > > Added ut check for negative core values. > > Added unit test case for invalid core number range. > > > > Fixes: d888cb8b9613 ("eal: add core list input format") > > Cc: sta...@dpdk.org > > > > Signed-off-by: Hari Kumar Vemula <hari.kumarx.vem...@intel.com> > > Reviewed-by: David Marchand <david.march...@redhat.com> > > -- > > v6: Changed testcase order > > v5: Corrected unit test case for -l option > > v4: Used RTE_MAX_LCORE for max core check > > v3: Added unit test cases for invalid core number range > > v2: Replace strtoul with strtol > > Modified log message > > --- > > lib/librte_eal/common/eal_common_options.c | 9 +++- > > test/test/test_eal_flags.c | 61 ++++++++++++++-------- > > 2 files changed, 45 insertions(+), 25 deletions(-) > > > Is this patch related to, or does it fix Bugzilla #19? > > https://bugs.dpdk.org/show_bug.cgi?id=19 Separate issue, from my pov. I would say the issue happens with a dpdk process that has no cpu available wrt CONFIG_RTE_MAX_CORES. eal_auto_detect_cores() then removes all cores from cfg->lcore_role[], then eal_adjust_config() an incorrect master lcore is chosen at cfg->master_lcore = rte_get_next_lcore(-1, 0, 0); ? -- David Marchand