From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM02-SN1-obe.outbound.protection.outlook.com (mail-sn1nam02on0058.outbound.protection.outlook.com [104.47.36.58]) by dpdk.org (Postfix) with ESMTP id C46531D93F for ; Thu, 14 Jun 2018 13:49:57 +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=sNMA2dXlS27WAl444EVh9wE5QUmrVRvKjhlZgx9NbOQ=; b=UHJmALNSVZI8uFa9riNGfOWOGm+vbur4O74RKhaA4YBaWLAh0bQQvZv0xVOdSWQ7rWVNb0cRfjKb2URiuYcnaeVLbLIZHbZOu4siqaWM7cw0his+eSwTZvg3ehhol6iYIMoV08638sIsXK8djY9swY1Ar8cAIcJw438FEyFSowM= 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 BN7PR07MB4898.namprd07.prod.outlook.com (2603:10b6:406:ef::27) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.863.16; Thu, 14 Jun 2018 11:49:54 +0000 From: Anoob Joseph To: Bruce Richardson , Pablo de Lara Cc: Anoob Joseph , Jerin Jacob , Narayana Prasad , dev@dpdk.org Date: Thu, 14 Jun 2018 17:18:51 +0530 Message-Id: <1528976946-14396-1-git-send-email-anoob.joseph@caviumnetworks.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1528477766-15788-1-git-send-email-anoob.joseph@caviumnetworks.com> References: <1528477766-15788-1-git-send-email-anoob.joseph@caviumnetworks.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [115.113.156.2] X-ClientProxiedBy: PN1PR01CA0095.INDPRD01.PROD.OUTLOOK.COM (2603:1096:c00::11) To BN7PR07MB4898.namprd07.prod.outlook.com (2603:10b6:406:ef::27) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: f5d30844-8d45-41d3-0f60-08d5d1ecf343 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(7020095)(4652020)(5600026)(711020)(4534165)(7168020)(4627221)(201703031133081)(201702281549075)(2017052603328)(7153060)(7193020); SRVR:BN7PR07MB4898; X-Microsoft-Exchange-Diagnostics: 1; BN7PR07MB4898; 3:dauf+r+MErfLenLMOT2CLIl225csSKnewcE/kPDDV/TQunBL8pWxazMOtyalGbYe4dwp3t5IrmrrZo0LSY39SGKzN8i5/ZLuXJdUUWbImGbUYMoMrHA83pxtfZJJOqiQ7rdsDad0RJZeMI9pZ/HanEiLT/eWfrhikcg+qiPnj0kQTSYEWfP9p5hPHkwO76aVo9zAWMPk2cSITCQninSFLtbt18MQ1/xCukOGaOdDiXtAtKPvG29ztVMqt3CIzWos; 25:wgsDZ8r/ko28ozVQaePgyHZbGxQ5v8dzdkDTJ+anfyJW5JjhgZZY7SASyxf9C5sNBMtaJJ3emLkan8NUfYC5rsTC3PB6IyZBti/bV/XOYmZvMOpWUabJTJg8gGYKieZs4ElyoG5fL+RCNAsUzA1uii5YBsTBCCUMdmoQszD/DiqjV1+WdDoULa/x18l+INHAtX+T1+lPaooXrJTciuvLOKmlFIe4fK5ScjOsE8wqD186LsbCqY0AtSyhhSLxuJsrFUB8hbF36IJezuQx1EZg2DbLb4xJK7Ax6mIh+VuUZTFxcXqn/d+GQObihgeMI/EpYPm/3qfPPeHIMjgiY68IlQ==; 31:DJPAqGo4anxm3rSKqjwID/NP1SgLmbXM/BNoXS8wERUgOBKdg3cdFsarw83HGvCByZ9KOeAHe+7IpSgVZds95gs5c9qcjRBiNzG1CFZ0GMyS/wrFpAwCJYMIVPbM8kcbbJl7jb/AelwP/28gR3arAndw9Np8BayPGyVczPVE2A+bD28LJlW402pbpGepE07QFBkAeXD0U15cBYj78903d6uni/0IvrcyeXj6KescsZw= X-MS-TrafficTypeDiagnostic: BN7PR07MB4898: X-Microsoft-Exchange-Diagnostics: 1; BN7PR07MB4898; 20:eeLMxkIR6bwW0tuhDH5w8HjAtIf824z0MdbtxjzWFw23Aefd+zXkiJXAaNuhoxxtyEucUFoYREAlQMnZzCxlFCaDfmIo6OqaoSljxDe1n9xd2T6mx4Ojb4roUYNN9oYF9SYyM1Yuu2FjzqhY7E/ZX5xgWlBKRAyZLYZMQzMu6T0/jhtwG6olOXeLUAhh426TW7Ew/bLczPH5+zH9kP+a4kGSMg4bTQZQcaVlSqVCwQcojliGVY4tY52WAYR4IlYaoDDG17mweVl8AzYOvJ1RiRJge+YwKU56D8DYwc6pf6ZcrYfAAlJr2m10zflUsn4oz5G9lq6i0t318LovVlAg9oESzj3gV0rV5+8z14Alj6PK6KT1DOaCTT5oi2xzV8YRZAYa6W2PxwrAb2aLgh4Fi05ULn6lQoRfmhJ6eUdNhCJo6czxzINegWTyX/bgTPe673WCZQ/5Etz0iNmw1KWBgXCSsYz/iyJ2WpPpMSFhSvzmmvWhQ7ZPKjSZzTgAXmV1edpOtjCF1wPZ/bVdCNxHVPi/0g1/wZ+plDjy4DlJW6wN+spEIdB02Db4tpZhObuvhk3OtmkiNhHRAH1yKycYRVveociODgKY5blHIFiiQWk=; 4:T8DEBTatRkyvaz/ZHaPoPgrHxgZUC+NYEs9/xVtvUJ33rxgoGijIcoLojMezvvzNV2pGeYsv2F36qbaAQFP1Sfj5K7mMuqghBY/UCU3dP32bI3vSTs/Ce6TJFUa1x2JffifdZfYpb05+vgaEGpAQ/o9SohalvmkQoLMeUS262EuZlz66Xp5SfSwwW+NffbHw7fn0fAl/nQfbm2IDeXN17NcZJH4I6PYq3gbeYGTVU8uWnaTyspbs1UN4CYCY+D2rbqirj8lLktTXthYcws/fOg== 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)(8121501046)(5005006)(10201501046)(3231254)(944501410)(52105095)(93006095)(3002001)(149027)(150027)(6041310)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123560045)(20161123562045)(20161123558120)(20161123564045)(6072148)(201708071742011)(7699016); SRVR:BN7PR07MB4898; BCL:0; PCL:0; RULEID:; SRVR:BN7PR07MB4898; X-Forefront-PRVS: 0703B549E4 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(39860400002)(39380400002)(396003)(376002)(346002)(366004)(199004)(189003)(446003)(956004)(2616005)(305945005)(6666003)(47776003)(476003)(54906003)(44832011)(53936002)(68736007)(486006)(110136005)(8936002)(8676002)(81156014)(16586007)(316002)(81166006)(25786009)(4326008)(7736002)(6116002)(3846002)(11346002)(97736004)(36756003)(106356001)(478600001)(105586002)(42882007)(52116002)(51416003)(26005)(16526019)(186003)(59450400001)(50226002)(66066001)(72206003)(6486002)(2906002)(55236004)(50466002)(6512007)(386003)(6506007)(5660300001)(76176011)(48376002); DIR:OUT; SFP:1101; SCL:1; SRVR:BN7PR07MB4898; 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; BN7PR07MB4898; 23:XZZ87rCAmq4b+qfzj/wsIRPJ9SVj1GFQaYNgMkjsL?= =?us-ascii?Q?ySYuaQTP1NJCDUCxJo+CuaATOR8DlZJYuhiWYPyd4bkfeLFFN9sjayGEZgih?= =?us-ascii?Q?0bgPlk6SHNhaMzHWsbanycvScKPXxTF6YmHD/o8ZTPWUM/Alnm2xLKEda91t?= =?us-ascii?Q?qL/5iNjIV6Yj2xVl4JywMFZyei24Ubx4fOQlhJoU3MT5M+GxTYofTrvj6Zkc?= =?us-ascii?Q?QwdFW9EuGrSMwVz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7iuj4c2jnhl+UT9MAHOhqR+pbgK+1gAVCUQnOZ2dtBL933U8=; 24:BpslQTUdyQu4/PoRkOrisZ+cB0kU2wG8z5nVzdPQ9F8UnxFyJvvYYQZwRvGEgIZC52uEKvzTtV1z/vyWR8hwYfOgafAGbNBQXyhJIhEPELc= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; BN7PR07MB4898; 7:C97/L4MUEtqyEXtAbL3FGzYlw3Tdgjk0mtRSkbt0+gxlmgIwsB38rkVqmaIt1d96jY7bhTjg//43Hmn0RZ+vGxVjUMBh8dlxSalXQOFatWfuxnEWoXeSyGTLNhZouPf8HfgT3jmNl166/kFQEnNrkjPxJkRsjPQhCmNLG+AL9858AyZb9GamQbgFy/3lOyK6hlmBl5VCQ7W+qdvwRvVa36m6KRXiHMcv+1hGJu19PBjFCfxhX5S83829brB8qivV X-OriginatorOrg: caviumnetworks.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 14 Jun 2018 11:49:54.9166 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: f5d30844-8d45-41d3-0f60-08d5d1ecf343 X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 711e4ccf-2e9b-4bcf-a551-4094005b6194 X-MS-Exchange-Transport-CrossTenantHeadersStamped: BN7PR07MB4898 Subject: [dpdk-dev] [PATCH v1 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: Thu, 14 Jun 2018 11:49:58 -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. v1: * Fix all checkpatch reported issues 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 | 63 ++++++++++ examples/l2fwd/l2fwd_worker.c | 249 +++++++++++++++++++++++++++++++++++++ examples/l2fwd/l2fwd_worker.h | 16 +++ examples/l2fwd/main.c | 276 ++++++------------------------------------ 5 files changed, 364 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