From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 87124A0548; Sun, 9 May 2021 18:03:40 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 75311410F6; Sun, 9 May 2021 18:03:40 +0200 (CEST) Received: from mail-io1-f45.google.com (mail-io1-f45.google.com [209.85.166.45]) by mails.dpdk.org (Postfix) with ESMTP id A13B14003E; Sun, 9 May 2021 18:03:39 +0200 (CEST) Received: by mail-io1-f45.google.com with SMTP id t3so12483368iol.5; Sun, 09 May 2021 09:03:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=/kJEQS5s+2jrcdnlLugbHJJfVloEfz8YA75y7loBFtQ=; b=tDLeVEKi4WXZrE1AGeb/NRwNEDOWNtGESedH+sOZn5Fqkr/4sAFBJ94zF5gdbtiJTY +HvMysFE/b8i31nLMKgn0i5LITuEEsq85HM1dfH95nedgMLEFwvsD/C3/40zB/cMJR/Z qHfLnrVzz10Ym0a4aL4Rm+r2wNBLNlyY06hbqNqjb1qBuRRXAVv7DXhyW332rW3uTpqL MaJWBxWjVBH4AREH5HKfNxiM3jiwr52askd7KANlBi4mt3mfexWLQcFF8mRnX+JvJUvQ fGZ6AYb5im8eBwFv2Rlcuizys8vbPZLoCc2ivzBRu3UEFzxTPv0zGAe3K472kDj1Aow5 7lzg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=/kJEQS5s+2jrcdnlLugbHJJfVloEfz8YA75y7loBFtQ=; b=QYy7gN1IkGFGntnboM4OzjYlHDbK8rqIxxT2NOoh77LK8prOtVd4s0BjXKASUCC9dU 5gd/dtfArlLh5EgPvv6aAb/QlYXaoVZC7Y3aNqTJHDX1qFjkXNB5UUu1oYcWNxxclZCb WpB0o/dxHRHmxgTOQd3fo4lDbDOvCovlp1l03kv48BzAoOY76WTwVMOE7MFP/IYUF9B3 N6kJl+KrRkor1uaiyCO3CBoSWNxYGrarKNo6hI8x6UQepc6F8A1Q01p8WNiTAiOy9ctW 4Sl4qAEHQpKuqbJtrwS0pjrHvVzBMVfANETmRJl0T/bOYtCgh10VV7Q6Pw7KXiaMfXZ0 O2Kw== X-Gm-Message-State: AOAM530x67CfUKkc43mkxTNNIvi+HLlMiExXZG2OzOUHiJ652YVhWpjn h1oBfOZNmrthFUeHLSytKEhUWENHQJzmBLYjU7sWMneC0XLIcQ== X-Google-Smtp-Source: ABdhPJzp1+uhPH5+6F7SFG/TLoi6z+M7bMCBUziJemnehQQ03/+Yb739bvIMTrGvy+d+tJxriJOVnvY3cof4v4s5C6g= X-Received: by 2002:a05:6638:3c8:: with SMTP id r8mr17523461jaq.112.1620576219061; Sun, 09 May 2021 09:03:39 -0700 (PDT) MIME-Version: 1.0 References: <20210506210310.308-1-pbhagavatula@marvell.com> In-Reply-To: <20210506210310.308-1-pbhagavatula@marvell.com> From: Jerin Jacob Date: Sun, 9 May 2021 21:33:23 +0530 Message-ID: To: Pavan Nikhilesh Cc: Jerin Jacob , dpdk-dev , dpdk stable Content-Type: text/plain; charset="UTF-8" Subject: Re: [dpdk-dev] [PATCH] app/eventdev: fix lcore parsing skipping last core X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" On Fri, May 7, 2021 at 2:33 AM wrote: > > From: Pavan Nikhilesh > > The last lcore declared in the list is also a valid lcore in the list. > > Fixes: 32d7dbf269be ("app/eventdev: fix overflow in lcore list parsing") > Cc: stable@dpdk.org > > Signed-off-by: Pavan Nikhilesh Acked-by: Jerin Jacob Applied to dpdk-next-eventdev/for-main. Thanks. > --- > app/test-eventdev/parser.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/app/test-eventdev/parser.c b/app/test-eventdev/parser.c > index 7a973cbb23..8818c37ff8 100644 > --- a/app/test-eventdev/parser.c > +++ b/app/test-eventdev/parser.c > @@ -345,7 +345,7 @@ parse_lcores_list(bool lcores[], int lcores_num, const char *corelist) > max = idx; > if (min == RTE_MAX_LCORE) > min = idx; > - for (idx = min; idx < max; idx++) { > + for (idx = min; idx <= max; idx++) { > if (lcores[idx] == 1) > return -E2BIG; > lcores[idx] = 1; > -- > 2.17.1 >