From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id 13FAEA054E; Sat, 15 Feb 2020 09:08:28 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id EC2BBB62; Sat, 15 Feb 2020 09:08:26 +0100 (CET) Received: from mail-io1-f67.google.com (mail-io1-f67.google.com [209.85.166.67]) by dpdk.org (Postfix) with ESMTP id 778C83B5; Sat, 15 Feb 2020 09:08:25 +0100 (CET) Received: by mail-io1-f67.google.com with SMTP id n21so1009178ioo.10; Sat, 15 Feb 2020 00:08:25 -0800 (PST) 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=/xd967F7eLC3/dmiS7lMQ1OQJx88d0VMOnLJmn026gk=; b=gwYNLp1Imna8xEExX61BaU5S/KL5Cs1d2DJm/iNWQ9Ktr+punMhFCnraD6Yu6tW7Ft vdJ31TrbYftgeXFDGuzivJKenoH6tBZwhjw7OiQbfhIjFLBoKm+TUiZenWRhyeRtb08y FUURfQS5SJjkxGJacBdqjewubBlelwlCDIs/UglwD9rbK12bnrtG+LXwlIa49nDXhX62 75VtBY2Jw+Axi7XH7klkKH9HW4z4mzfkEuiDkoJnR7gjGRnOxmcpfZ30IA6stud22+LZ EvszPhV0v6+z7Rqetd5l/fQyVO/6baKucljPOVngGg9ynSn/EVMdGDilCyEiT/4QeV0s 2MXQ== 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=/xd967F7eLC3/dmiS7lMQ1OQJx88d0VMOnLJmn026gk=; b=ZuJ6xHsrzVu2pt7D83pDeamvrqrF185VLpas9YCgM0a+1lGTnoFsTFmuT52nrWNVSh x4Vo79f4obJsuENevg2jUmnwZ+4FIdXkveB7zpxdqnJiiVEnt1+oZrXCWtLIv/Q4LlCl qTimKPrCpwHPfqUZJsuvwjQLYM93ZWIKGM+Erf+ULL10JMu0bAP45VOKoyKTeCJ7MluF 0OT/7TEoo4PYvAhd8NFHuVGKZr5N0R/j+U0KKevz0jkTYQLVkKcbRLdnkXsOrBWVr11S Msr2UqaBe5Kajan4VcPRK1pr8A/AgC6hGR8OkN3WF7bbmJYe8+9UDaii3Hh1E9rLEs7J 8TqA== X-Gm-Message-State: APjAAAUbseN0uIRsf44gb/o3fb0AlD7taU+vGtfGAn/FpU+W7Ou2lttr XdCaMjtfokTiYjiOicDk24ct5OJbnGf37uShfaA= X-Google-Smtp-Source: APXvYqxebG+gtrZC7qksV9tL/QRdHEYIpJzrCybSR1g5ja1zdDBXVGh/35FP81nUfqYvo8SLGMi29Xx4SyL53n0ZvKQ= X-Received: by 2002:a02:c9c8:: with SMTP id c8mr5517107jap.133.1581754104733; Sat, 15 Feb 2020 00:08:24 -0800 (PST) MIME-Version: 1.0 References: <20200203044619.3944-1-pbhagavatula@marvell.com> In-Reply-To: <20200203044619.3944-1-pbhagavatula@marvell.com> From: Jerin Jacob Date: Sat, 15 Feb 2020 13:38:08 +0530 Message-ID: To: Pavan Nikhilesh Cc: Marko Kovacevic , Ori Kam , Bruce Richardson , Radu Nicolau , Akhil Goyal , Tomasz Kantecki , Sunil Kumar Kori , dpdk-dev , dpdk stable Content-Type: text/plain; charset="UTF-8" Subject: Re: [dpdk-dev] [PATCH] l2fwd-event: fix lcore allocation in poll mode X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 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 Mon, Feb 3, 2020 at 10:16 AM wrote: > > From: Pavan Nikhilesh > > Skip master lcore when assigning cores to rx_queues as it is only used > to print stats. > > Fixes: 4ff457986f76 ("examples/l2fwd-event: add default poll mode routines") > Cc: stable@dpdk.org > > Signed-off-by: Pavan Nikhilesh Applied to dpdk-next-eventdev/master. Thanks. > --- > examples/l2fwd-event/l2fwd_poll.c | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/examples/l2fwd-event/l2fwd_poll.c b/examples/l2fwd-event/l2fwd_poll.c > index a3a383558..2033c65e5 100644 > --- a/examples/l2fwd-event/l2fwd_poll.c > +++ b/examples/l2fwd-event/l2fwd_poll.c > @@ -116,6 +116,7 @@ l2fwd_poll_lcore_config(struct l2fwd_resources *rsrc) > > /* get the lcore_id for this port */ > while (rte_lcore_is_enabled(rx_lcore_id) == 0 || > + rx_lcore_id == rte_get_master_lcore() || > poll_rsrc->lcore_queue_conf[rx_lcore_id].n_rx_port == > rsrc->rx_queue_per_lcore) { > rx_lcore_id++; > -- > 2.17.1 >