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 B4E1BA2EFC for ; Thu, 19 Sep 2019 11:43:41 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 4EA611ED81; Thu, 19 Sep 2019 11:43:41 +0200 (CEST) Received: from mx0b-0016f401.pphosted.com (mx0a-0016f401.pphosted.com [67.231.148.174]) by dpdk.org (Postfix) with ESMTP id 03AA41ED6D for ; Thu, 19 Sep 2019 11:43:39 +0200 (CEST) Received: from pps.filterd (m0045849.ppops.net [127.0.0.1]) by mx0a-0016f401.pphosted.com (8.16.0.42/8.16.0.42) with SMTP id x8J9eX6J007676; Thu, 19 Sep 2019 02:43:39 -0700 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=marvell.com; h=from : to : cc : subject : date : message-id : references : in-reply-to : content-type : content-transfer-encoding : mime-version; s=pfpt0818; bh=hzjM/rUup7XYcGDFh5zxy9Q9/jORom+y76cq73kGpk4=; b=qSkKbLb8e8G1R6pYTZdVHsFrkgoN9AGW+N5W4YE+ha3xVYmFjYw/MmVuVajv6rF6L2qT DxqqRb+BIJbfz2NWlaxP5uanyZWDwajDnzSTjj5udEtTyuWPQd7n4NEWeXOFYPciekuy vNQQ05RoMJsk6Iw+2EpQlOq8m4EtDzn4sBsTTVsqIOlz8PHFZX6LYpCgVBv6Xi+lEnGG ziUkpUInqkx1g9Omuemq+D0UVpbgx2dBj6TqANzRnzWT4Hmwv/49e00eWcNYMOx91BIg IkJVO12cSqe8TNNI0fqwOZE4pHXoE6rwV+9AWNsPeH6OlTPumrrxmIFzvZzKbZnGFSFG QQ== Received: from sc-exch02.marvell.com ([199.233.58.182]) by mx0a-0016f401.pphosted.com with ESMTP id 2v3vcdt989-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT); Thu, 19 Sep 2019 02:43:39 -0700 Received: from SC-EXCH03.marvell.com (10.93.176.83) by SC-EXCH02.marvell.com (10.93.176.82) with Microsoft SMTP Server (TLS) id 15.0.1367.3; Thu, 19 Sep 2019 02:43:37 -0700 Received: from NAM03-BY2-obe.outbound.protection.outlook.com (104.47.42.51) by SC-EXCH03.marvell.com (10.93.176.83) with Microsoft SMTP Server (TLS) id 15.0.1367.3 via Frontend Transport; Thu, 19 Sep 2019 02:43:37 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Phjdfj4X4+3dY475DM95XOjH2S6ecLK+UAfXCwAb64OHS6E9VwoBxI5pb0kzShVtrdTiI8m5uiC9YGE9nErftXx0ac1rNPlQtXg5hFyjuIx1ReHB7sRdVDUVfIaoco6DYYDuQG8yNv8cVf+pZhO1JnT7DnYoM2tdzhFMk6i8f796cgRby+F4GFNcCU/8cJ5tvlJ/Nm/llty4IDOR1jRsrqdDnoF4xLS8zolw7UxRTTdEOftzMFPeODauZBFyfiy7mIYcxmqfKWUsoX84gGO4f1D35VL3J7veLM2XWY2ruEP8RLoxxUagATyB7IyB4KNx1t04Mukz79mmfdWaYxFqww== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=hzjM/rUup7XYcGDFh5zxy9Q9/jORom+y76cq73kGpk4=; b=cYydK44HSq3KcgWigxMqR3OC5m2r7topUUjA8MuHlOFm6fkaYe9f6EQmV0L5eqti4N4aQnM4UYcwT6uRKhWDyuLnk9uJjbyE5PODEi/M09/l6xnOQEMGEz7IlAJ3ODleYakHJ2yWIe4qWv4vymgSAo2tYfOpmjtAM+x/LeyxHhjYtN9XAw8a0KcJsiBqDBbUbsZZawe180A7MFcKSqElDmttlxsEAWLjg/VhBlTpHPjltgwVyZ+Scbz+Kx1v8DmNj1uOVTzmy/wf1JjYbdWwYUlHJ2dLzUsX8RbNBIPbmfP6yt5UsKDERFghgLyTT0W2txo99UZgAPf+oi+y6m61BA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=marvell.com; dmarc=pass action=none header.from=marvell.com; dkim=pass header.d=marvell.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=marvell.onmicrosoft.com; s=selector2-marvell-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=hzjM/rUup7XYcGDFh5zxy9Q9/jORom+y76cq73kGpk4=; b=IuYcxF5WZvcKF4negVuPto4fFPOWmsco8vLsCIL6J3qRougZZjMvxd01ye1gza5pZkvz+WkyckfwFrEMt17qwh4MTou/GR6CWVdil4T3QyYcVOz0dti78YOTpXImCSLVPUUloRb3Bq+R9lFVHE49wyIkKf0KXTmPcw/24YfOouI= Received: from BN8PR18MB3075.namprd18.prod.outlook.com (20.179.75.151) by BN8PR18MB2867.namprd18.prod.outlook.com (20.179.72.89) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2263.26; Thu, 19 Sep 2019 09:43:36 +0000 Received: from BN8PR18MB3075.namprd18.prod.outlook.com ([fe80::c087:8e94:50ba:e424]) by BN8PR18MB3075.namprd18.prod.outlook.com ([fe80::c087:8e94:50ba:e424%3]) with mapi id 15.20.2284.009; Thu, 19 Sep 2019 09:43:36 +0000 From: Sunil Kumar Kori To: Pavan Nikhilesh Bhagavatula , "Jerin Jacob Kollanukkaran" , "bruce.richardson@intel.com" , "akhil.goyal@nxp.com" , Marko Kovacevic , Ori Kam , Radu Nicolau , Tomasz Kantecki , Pavan Nikhilesh Bhagavatula CC: "dev@dpdk.org" Thread-Topic: [dpdk-dev] [PATCH v2 01/10] examples/l2fwd-event: add default poll mode routines Thread-Index: AQHVbsxPO6NR5cMsMke8JnaCsHffzqcyvtnA Date: Thu, 19 Sep 2019 09:43:35 +0000 Message-ID: References: <20190919092603.5485-1-pbhagavatula@marvell.com> <20190919092603.5485-2-pbhagavatula@marvell.com> In-Reply-To: <20190919092603.5485-2-pbhagavatula@marvell.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [14.140.231.66] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 22923cd2-292c-49ee-b083-08d73ce5d7c7 x-microsoft-antispam: BCL:0; PCL:0; RULEID:(2390118)(7020095)(4652040)(8989299)(4534185)(7168020)(4627221)(201703031133081)(201702281549075)(8990200)(5600167)(711020)(4605104)(1401327)(2017052603328)(7193020); SRVR:BN8PR18MB2867; x-ms-traffictypediagnostic: BN8PR18MB2867: x-ms-exchange-transport-forked: True x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:2958; x-forefront-prvs: 016572D96D x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(4636009)(366004)(39860400002)(376002)(346002)(396003)(136003)(199004)(189003)(13464003)(3846002)(486006)(25786009)(86362001)(7696005)(71190400001)(71200400001)(2501003)(6636002)(102836004)(76176011)(476003)(66066001)(446003)(99286004)(5660300002)(7736002)(74316002)(305945005)(6246003)(55236004)(6116002)(2201001)(256004)(478600001)(55016002)(9686003)(52536014)(110136005)(64756008)(6436002)(33656002)(8936002)(316002)(229853002)(8676002)(11346002)(76116006)(66556008)(81166006)(26005)(186003)(66476007)(6506007)(4326008)(2906002)(66446008)(66946007)(14454004)(81156014); DIR:OUT; SFP:1101; SCL:1; SRVR:BN8PR18MB2867; H:BN8PR18MB3075.namprd18.prod.outlook.com; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; A:1; MX:1; received-spf: None (protection.outlook.com: marvell.com does not designate permitted sender hosts) x-ms-exchange-senderadcheck: 1 x-microsoft-antispam-message-info: mD8Mq/ALXkThaKGndwV7OgoU5mGc0zDEbLahpsk+Xl4aon9h0IHiTJhkB3ZDb00BoLxCLAIOqpJDwdoNiMQ+f+LjmqIr/1X5FLvvPdPw3HUqwcj0LtLqvVGFJlCZTDLK3cqpu3LCAsokF7oFi8KqzmLlHwRAPTs9+JgZv8ekiRw6f+0qPg7CB+M90soET2AQ6pIl+ocKTbvZyoUvwjj8W6fVB6Egb6xn4pt1oChDWKpopgzlcvSIQfGwKokJtobULUOPH/LoRkQmhsENJ8CuYt2JTMkCeDKwMAcr848cWZbgUs5+/OLECQ9ekwDclgx8VStNpBBoFxETJibBE7LfMVJfy/BfFv13ho5bMMMeFH/Pm/MLEgdcbk4Q5jet1L4fuM4I/o2ym38ZxVNXIAGOeG/sG2IBsXIm1MYWGa3xEQo= Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-MS-Exchange-CrossTenant-Network-Message-Id: 22923cd2-292c-49ee-b083-08d73ce5d7c7 X-MS-Exchange-CrossTenant-originalarrivaltime: 19 Sep 2019 09:43:35.9491 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 70e1fb47-1155-421d-87fc-2e58f638b6e0 X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: hugYGGK3DKYMhbnnx0gUpo2GW0fHpT8ZKTSCsmEj+lb0Z4evE+EpHW6Gxb77qVkXfvv2ZJHXJ8LHQSVyBDPRNg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: BN8PR18MB2867 X-OriginatorOrg: marvell.com X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.70,1.0.8 definitions=2019-09-19_03:2019-09-18,2019-09-19 signatures=0 Subject: Re: [dpdk-dev] [PATCH v2 01/10] examples/l2fwd-event: add default poll mode routines 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" Regards Sunil Kumar Kori >-----Original Message----- >From: pbhagavatula@marvell.com >Sent: Thursday, September 19, 2019 2:56 PM >To: Jerin Jacob Kollanukkaran ; >bruce.richardson@intel.com; akhil.goyal@nxp.com; Marko Kovacevic >; Ori Kam ; Radu >Nicolau ; Tomasz Kantecki >; Sunil Kumar Kori ; Pavan >Nikhilesh Bhagavatula >Cc: dev@dpdk.org >Subject: [dpdk-dev] [PATCH v2 01/10] examples/l2fwd-event: add default pol= l >mode routines > >From: Sunil Kumar Kori > >Add the default l2fwd poll mode routines similar to examples/l2fwd. > >Signed-off-by: Sunil Kumar Kori >--- > examples/Makefile | 1 + > examples/l2fwd-event/Makefile | 57 +++ > examples/l2fwd-event/l2fwd_common.h | 26 + > examples/l2fwd-event/main.c | 737 ++++++++++++++++++++++++++++ > examples/l2fwd-event/meson.build | 12 + > examples/l2fwd/main.c | 10 +- > 6 files changed, 838 insertions(+), 5 deletions(-) create mode 100644 >examples/l2fwd-event/Makefile create mode 100644 examples/l2fwd- >event/l2fwd_common.h > create mode 100644 examples/l2fwd-event/main.c create mode 100644 >examples/l2fwd-event/meson.build > >+++ b/examples/l2fwd-event/l2fwd_common.h >@@ -0,0 +1,26 @@ >+/* SPDX-License-Identifier: BSD-3-Clause >+ * Copyright(C) 2019 Marvell International Ltd. >+ */ >+ >+#ifndef __L2FWD_COMMON_H__ >+#define __L2FWD_COMMON_H__ >+ >+#define MAX_PKT_BURST 32 >+#define MAX_RX_QUEUE_PER_LCORE 16 >+#define MAX_TX_QUEUE_PER_PORT 16 >+ >+#define RTE_LOGTYPE_L2FWD RTE_LOGTYPE_USER1 >+ >+#define RTE_TEST_RX_DESC_DEFAULT 1024 >+#define RTE_TEST_TX_DESC_DEFAULT 1024 >+ >+/* Per-port statistics struct */ >+struct l2fwd_port_statistics { >+ uint64_t dropped; >+ uint64_t tx; >+ uint64_t rx; >+} __rte_cache_aligned; >+ >+void print_stats(void); >+ >+#endif /* __L2FWD_EVENTDEV_H__ */ Comment needs to be updated /* __L2FWD_COMMON_H__ */ >diff --git a/examples/l2fwd/main.c b/examples/l2fwd/main.c index >1e2b14297..f6d3d2cd7 100644 >--- a/examples/l2fwd/main.c >+++ b/examples/l2fwd/main.c >@@ -294,11 +294,11 @@ l2fwd_usage(const char *prgname) > printf("%s [EAL options] -- -p PORTMASK [-q NQ]\n" > " -p PORTMASK: hexadecimal bitmask of ports to configure\n" > " -q NQ: number of queue (=3Dports) per lcore (default is 1)\n" >- " -T PERIOD: statistics will be refreshed each PERIOD >seconds (0 to disable, 10 default, 86400 maximum)\n" >- " --[no-]mac-updating: Enable or disable MAC addresses >updating (enabled by default)\n" >- " When enabled:\n" >- " - The source MAC address is replaced by the TX port >MAC address\n" >- " - The destination MAC address is replaced by >02:00:00:00:00:TX_PORT_ID\n", >+ " -T PERIOD: statistics will be refreshed each PERIOD seconds (0= to >disable, 10 default, 86400 maximum)\n" >+ " --[no-]mac-updating: Enable or disable MAC addresses updating >(enabled by default)\n" >+ " When enabled:\n" >+ " - The source MAC address is replaced by the TX port MAC >address\n" >+ " - The destination MAC address is replaced by >02:00:00:00:00:TX_PORT_ID\n", > prgname); > } > This change should not be part of l2fwd-event patch set. >-- >2.17.1