From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM01-BY2-obe.outbound.protection.outlook.com (mail-by2nam01on0089.outbound.protection.outlook.com [104.47.34.89]) by dpdk.org (Postfix) with ESMTP id 0C13B5B32 for ; Fri, 8 Jun 2018 19:10:18 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=CAVIUMNETWORKS.onmicrosoft.com; s=selector1-cavium-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=a2VFvTFWKc1+kGyQrDabVIx1waMK0d/4ov0R9x6rfeQ=; b=RwjUfb7812Ty3vdSIhDfuTZhk+GwaYgIa+93IdAD5zFQPCgps0499Iu0kgYHv3w5hpc4PdU3zUBww/VO3vEFP5OzmGHJ+6TJulHd3BihrTkFQLxo/SywmFaPwPNvr//mLo1BwN8VQfkTISKuJeNfrxhPvEFMMIdLZr4vR2WDjUQ= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=Anoob.Joseph@cavium.com; Received: from ajoseph83.caveonetworks.com.caveonetworks.com (115.113.156.2) by SN6PR07MB4911.namprd07.prod.outlook.com (2603:10b6:805:3c::29) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.820.15; Fri, 8 Jun 2018 17:10:14 +0000 From: Anoob Joseph To: Bruce Richardson , Pablo de Lara Cc: Anoob Joseph , Jerin Jacob , Narayana Prasad , dev@dpdk.org Date: Fri, 8 Jun 2018 22:39:11 +0530 Message-Id: <1528477766-15788-1-git-send-email-anoob.joseph@caviumnetworks.com> X-Mailer: git-send-email 2.7.4 MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [115.113.156.2] X-ClientProxiedBy: BM1PR01CA0111.INDPRD01.PROD.OUTLOOK.COM (2603:1096:b00::27) To SN6PR07MB4911.namprd07.prod.outlook.com (2603:10b6:805:3c::29) X-MS-PublicTrafficType: Email X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(7020095)(4652020)(5600026)(4534165)(7168020)(4627221)(201703031133081)(201702281549075)(2017052603328)(7153060)(7193020); SRVR:SN6PR07MB4911; X-Microsoft-Exchange-Diagnostics: 1; SN6PR07MB4911; 3:dPFmDtdf82yvfBjzzrHeMC6dodWWxTJC1rSkqtLZpWHHGfRrrQCpfavI0m2JNm8hO8gVqqmswp1t6wrwJebavpnS0IBOSQtVl/JQDy87/auhc1n7bVcAZiPrcYHb8nMSXqHw2yzZ8bLNlkz0pYgLWcOHvg4m0DFPYETUrRQNdokAXUZd/EaSyjIPCFiuyUiZ6Ys+OGpJLD3z+qN0E+yF5To/qk1g9HUJeMCZbjx8ciOmOQtAZfM2EeGI+NP6pr+P; 25:L/5v7aQkVe9E3AHRp91visX3sVfsv+5M8ngf2dxNdKP/jNc+9UqcXmtde6ALjlPqoQHEelmNwioasuSrs4pv+McV10Ksw5hfavZQUI8c05bUanttUdQe792TMRwRlYeKD9QklUrRILP32LKopaU9nMnjpUbxsgw67Rd6ads1+yoeocpZa6TEsZM+HGuaidz2eIZFT6AqIGNq7M6Kbs/orfdMcodCdgWbXMiB9VQjuuQFq4iYwRCqPa6J8er1qNVmz55NoXCKDq0/SqGrTnglhoj3vc9YRO/Cp3DYf8ZhmcKxcn6KDhZjUlRIkjmTKw+YELrXD4PKFrko6+yghMcSaQ==; 31:nKYT2a0QzkD9Y9HwyS1nBDqz8+nIYoiICy8ZJW1e2Yju6jSbct2wM1ucIuLoiYST3xumoupOqu6l/0jav/2gm/v0ms+PnqYZ5gEl9o+IVQFKQegnTT9zLCwx4pO9oUxVqiq3K6Q5PZroTpotwR8RLAIbmpVD0m97AdjuSD2G3wXS5hbQKXmVA7rSiTXCwe0Zh0bMkZOJDCQMKFxCPeuTwpSxoq8kjWTaynpqtJKT7xA= X-MS-TrafficTypeDiagnostic: SN6PR07MB4911: X-Microsoft-Exchange-Diagnostics: 1; SN6PR07MB4911; 20:MbqG+t7fsJtOhEtNQQEl4iUbP9F1gcpIBV1i98mmvz7z8SzbvsmqwCXIrqJfZhpc6W7nCVeCsDicroCpAmqi0vLcklmK6amFw6f7oQkjkyBj7yi3roi9fazQtrtfWeCxkpF1/oM5isXRcYkWhrSzVrmkvOv8zEmTmi8Fs6uh1fsMo8uhaviak+IJLXUkClGrLPVa2COShjx4oIJPPbcAtOkApfNzqXAtAFB4xDOcJ7dojuPhtBve/+tmGVDhtliAiJ1f8a35QUBJkMUFFPS4f5A5CloyUTObCJJs2bilnUBKO2MZpnhU7hbL2cso8FQlF3tLp4N4XE/bTsMYgNH06tpXKOw/QTTrZFEbd0JoezXs3P/+tF0BraRkuntfObJjywTsXnrK/gvRimFhY9v7yMvp7wCzlzGBl+yIl7jgW/ffeqTNpMaH9wokX1iD8ZBgYAeQpPhr5kfY27jnxmQMCcq2/o7nUWYekQUXUsJYyGM6fEsRgeAHozWQElbvV1nsXcDWAGR5ER0RjP+R0uRXVkaz7Fb0Wpw5WOdN+WA3fTY4essBGqCBJYhisfEtvvgCKdnH2DmoAuVQKJwf2QZyedIBrtGe5P00IXhC9Wsxe3o=; 4:iDhL853P7sMxzXizr1G2b+Jet3vh2I9/2Qr3sDAuMFJqaNRf+qhBGTczAfOtXyKuHtd6vLxm9B2lzw6rW3RkuDqeYWrbPyQy4vXWZi9QfaC4KDWNtin/U7X2kiS+SbvVIjPyiWkqwB/CdMGXIuS3nzhTsuZQD4SGdszpH5CCaeU8L5CTtsFRvr+sVi8X1s7y0ogxFBdM3Pudr+HGsR4KO6aJvgSFwjZY58j5cVo+3rZklM+X0RvEFteCIojpLEiXdONbIzvQlr65R/UODb3J8g== X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-MS-Exchange-SenderADCheck: 1 X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(8211001083)(6040522)(2401047)(5005006)(8121501046)(3002001)(3231254)(944501410)(52105095)(10201501046)(93006095)(149027)(150027)(6041310)(20161123564045)(20161123558120)(20161123560045)(20161123562045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(6072148)(201708071742011)(7699016); SRVR:SN6PR07MB4911; BCL:0; PCL:0; RULEID:; SRVR:SN6PR07MB4911; X-Forefront-PRVS: 06973FFAD3 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(366004)(39380400002)(39860400002)(376002)(396003)(346002)(199004)(189003)(6666003)(4326008)(54906003)(5660300001)(25786009)(48376002)(50466002)(59450400001)(386003)(186003)(16526019)(2616005)(42882007)(44832011)(51416003)(476003)(66066001)(110136005)(36756003)(316002)(55236004)(2906002)(7736002)(81156014)(81166006)(8936002)(50226002)(106356001)(105586002)(68736007)(52116002)(26005)(956004)(8676002)(305945005)(53936002)(6512007)(47776003)(486006)(478600001)(6486002)(6116002)(72206003)(3846002)(16586007)(6506007)(97736004); DIR:OUT; SFP:1101; SCL:1; SRVR:SN6PR07MB4911; H:ajoseph83.caveonetworks.com.caveonetworks.com; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; A:1; MX:1; Received-SPF: None (protection.outlook.com: cavium.com does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; SN6PR07MB4911; 23:RpmxDsZ8Y+wBXzw/orlqMoKA66szHzSJmUQFzlIT/?= =?us-ascii?Q?sMbI1agTt+/6um7nkkC1PcCNv+cZDCVAwRvNcCjawKacQpkAaTsPUhMnOuSr?= =?us-ascii?Q?+dFw9koX/ZKfiyexn/xdxRmilPG8f+CzcrY/ySDvwx/FODzMVd2wqguFioM+?= =?us-ascii?Q?erB32638eUgF/loN+WFFPdFjWtXA6wXpqkbjSf5S9eyOwvx5Ou+36kf1tG6g?= =?us-ascii?Q?NliDGcACEGM/fGXpCOPEGKO+0J0yTzFc42vrCRI6TWarygTxLWHqH7S6akZO?= =?us-ascii?Q?fZHcLfuSRJkR0OZHsjNRw0SBU7i9B7cMqLmmvBhHocIBlwnBoDyVmN7mJzYN?= =?us-ascii?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Metadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; SN6PR07MB4911; 7:tkYwZnhdkDRxhF4pzLEhiBf/LpzdQxr5d8oAmzT+DLeTuCES9EMdmJEE7Chswo+cdfvMGgkB4e4tplxol3wtoHVvLfOTwQQVXNLdGuG7n+3m+6ESsvaVsn1Xu/3IflvZEAlSDlqdwD0bRaXEsL76VuH8U4az05GosOM6jjGnsaG04SvVCtErvGYoW5sSr0WyowQrlNLuyV1YGY1CwCy+DU+0U/DONTl5uQBGKCQuZhY//O1dfPBa/2nvbw5eezYG X-MS-Office365-Filtering-Correlation-Id: 4dd9adf3-e3e6-4013-8bd1-08d5cd62b4a0 X-OriginatorOrg: caviumnetworks.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 08 Jun 2018 17:10:14.1867 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 4dd9adf3-e3e6-4013-8bd1-08d5cd62b4a0 X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 711e4ccf-2e9b-4bcf-a551-4094005b6194 X-MS-Exchange-Transport-CrossTenantHeadersStamped: SN6PR07MB4911 Subject: [dpdk-dev] [PATCH 00/15] preparing l2fwd for eventmode additions 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: , X-List-Received-Date: Fri, 08 Jun 2018 17:10:19 -0000 This patchset modularizes l2fwd application to prepare it for eventmode additions. This patchset doesn't change the code flow or logic, except for few minor improvements. Some of the newly added functions are used in just one place, but is added for efficient usage with eventmode. Anoob Joseph (15): examples/l2fwd: add new header to move common code examples/l2fwd: move macro definitions to common header examples/l2fwd: move structure definitions to common header examples/l2fwd: move globally accessed vars to common header examples/l2fwd: add missing space examples/l2fwd: fix lines exceeding 80 char limit examples/l2fwd: move dataplane code to new file examples/l2fwd: remove unused header includes examples/l2fwd: move drain buffers to new function examples/l2fwd: optimize check for master core examples/l2fwd: move periodic tasks to new function examples/l2fwd: skip timer updates for non master cores examples/l2fwd: move pkt send code to a new function examples/l2fwd: use fprint instead of printf for usage print examples/l2fwd: improvements to the usage print examples/l2fwd/Makefile | 1 + examples/l2fwd/l2fwd_common.h | 62 ++++++++++ examples/l2fwd/l2fwd_worker.c | 249 +++++++++++++++++++++++++++++++++++++ examples/l2fwd/l2fwd_worker.h | 16 +++ examples/l2fwd/main.c | 276 ++++++------------------------------------ 5 files changed, 363 insertions(+), 241 deletions(-) create mode 100644 examples/l2fwd/l2fwd_common.h create mode 100644 examples/l2fwd/l2fwd_worker.c create mode 100644 examples/l2fwd/l2fwd_worker.h -- 2.7.4