From patchwork Mon Feb 3 04:46:18 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Pavan Nikhilesh Bhagavatula X-Patchwork-Id: 65480 X-Patchwork-Delegate: jerinj@marvell.com Return-Path: X-Original-To: patchwork@inbox.dpdk.org Delivered-To: patchwork@inbox.dpdk.org Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id 2A44BA04B3; Mon, 3 Feb 2020 05:46:30 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 69FF61BFC1; Mon, 3 Feb 2020 05:46:29 +0100 (CET) Received: from mx0b-0016f401.pphosted.com (mx0b-0016f401.pphosted.com [67.231.156.173]) by dpdk.org (Postfix) with ESMTP id 89BFD1BF9B; Mon, 3 Feb 2020 05:46:27 +0100 (CET) Received: from pps.filterd (m0045851.ppops.net [127.0.0.1]) by mx0b-0016f401.pphosted.com (8.16.0.42/8.16.0.42) with SMTP id 0134j2Fm032334; Sun, 2 Feb 2020 20:46:26 -0800 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=marvell.com; h=from : to : cc : subject : date : message-id : mime-version : content-transfer-encoding : content-type; s=pfpt0818; bh=GNq1tflcT8O4IiM2wKTZ3SkG+QvXVJyck3wb7K8AEpA=; b=yIqr68L91PXXaJqX8CllT7DycUNU1dRVvSkhTIDhOo9uu4DMLaB2TEUveGsKu5UrNg4E EnDgt7Vsmr5l5k2ZgvLGIZMrtoMPNh3KAX0cauc8eBSlDs9dJeAIzfzNRn7fLeFtKG9u h/285WsoYJiPKkX6Z5+Ip2fbD1NkumGZNcF3+N8XkHMFIL4k6SiojzFTbNwZE83r9qAs +HrAx+a7xbr+Rdcx8pSaid8g+q8tMCvA2+53lA2iVBzh/m7SxHcLzVo3vC2aNPFVARvI K2Io+nBilarcuhuHbbLOT/hAd3zLyaSxgqS1KodcCqtgF1mPngDH0+C8NzoXinq7aCi/ Kg== Received: from sc-exch02.marvell.com ([199.233.58.182]) by mx0b-0016f401.pphosted.com with ESMTP id 2xw9qud762-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT); Sun, 02 Feb 2020 20:46:26 -0800 Received: from DC5-EXCH02.marvell.com (10.69.176.39) by SC-EXCH02.marvell.com (10.93.176.82) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Sun, 2 Feb 2020 20:46:24 -0800 Received: from SC-EXCH03.marvell.com (10.93.176.83) by DC5-EXCH02.marvell.com (10.69.176.39) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Sun, 2 Feb 2020 20:46:23 -0800 Received: from maili.marvell.com (10.93.176.43) by SC-EXCH03.marvell.com (10.93.176.83) with Microsoft SMTP Server id 15.0.1497.2 via Frontend Transport; Sun, 2 Feb 2020 20:46:23 -0800 Received: from BG-LT7430.marvell.com (bg-lt7430.marvell.com [10.28.20.184]) by maili.marvell.com (Postfix) with ESMTP id A2D483F703F; Sun, 2 Feb 2020 20:46:20 -0800 (PST) From: To: Marko Kovacevic , Ori Kam , Bruce Richardson , Radu Nicolau , Akhil Goyal , Tomasz Kantecki , Sunil Kumar Kori , "Pavan Nikhilesh" CC: , Date: Mon, 3 Feb 2020 10:16:18 +0530 Message-ID: <20200203044619.3944-1-pbhagavatula@marvell.com> X-Mailer: git-send-email 2.17.1 MIME-Version: 1.0 X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.138, 18.0.572 definitions=2020-02-02_09:2020-02-02, 2020-02-02 signatures=0 Subject: [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" 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 --- 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++;