From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM04-CO1-obe.outbound.protection.outlook.com (mail-eopbgr690087.outbound.protection.outlook.com [40.107.69.87]) by dpdk.org (Postfix) with ESMTP id 494931E8BE for ; Thu, 14 Jun 2018 12:18:51 +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=UbkM33HHriw+5MFSm/87EeIx1uH0vCcRY3OE6oxvRjH8rCpqUD8t633mENaZ0PKAmMqN3nidnH1YweO1MrpvEXIja0JLYJ8+vkdNSt8AXIlwQmR/ujnAttw3rtG0Mosk9WoJHgnHo3anTyfrZBzjmdWecpJgrwk9fa+CPzoC1mw= 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 BYAPR07MB4902.namprd07.prod.outlook.com (2603:10b6:a02:ef::25) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.841.19; Thu, 14 Jun 2018 10:18:46 +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 15:47:42 +0530 Message-Id: <1528971477-14156-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: BM1PR0101CA0031.INDPRD01.PROD.OUTLOOK.COM (2603:1096:b00:1a::17) To BYAPR07MB4902.namprd07.prod.outlook.com (2603:10b6:a02:ef::25) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: acb83da2-40de-4371-40bd-08d5d1e0385e X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(7020095)(4652020)(5600026)(711020)(4534165)(7168020)(4627221)(201703031133081)(201702281549075)(2017052603328)(7153060)(7193020); SRVR:BYAPR07MB4902; X-Microsoft-Exchange-Diagnostics: 1; BYAPR07MB4902; 3:o+JIiJiIs8OuTrt7lN5vKAJJUr81aO2+2ObOZQ4yjVg1RdHVwUtF0Ux4fM87xtMIs9V4VRC2+pcPWdro87s6ueSa5k9xMtw0qcNYCGxaEr/3UcY/3sGLjBUEhieQfs+lcsG9pt/EvJLVQ0r/cI7S+Bf9a4WyFFwKRCThSlLyYY9pUoikvEA/tj4zoUquMPsjYWutTdhO2/5lXl+Xd5dJi8ZlMKMnyxKMUq9SJx7W8sL/zmag+8JecMozI1uWnzw5; 25:4a1NAia5M4pTzzgl/ylMBHVr/KylHaL1kbeqsb22NHApUehP+qdTbttqmQITF216iEjrkvdMHNy+cbPjERYdnuABCGIsKVRQVDm1qWEL93HDYg4LlMwy5FlvTMQjGrZ3EQKkk9ZV3bo7k1K3wa+7apgu7WbanOhn1BiBpRglkIMbjITrZaCROkBYspjTo1/s0J9OOX9T6Evf2fSjM6fuin09qlmdzwB2tAJzp0xeEnbPwAUCChWQqwXKNe5epYoEPkbAoVUjwGTOgPqOgRQxL58XU3nN5VaRUTJmAPj14+xotiaXqxgKxlgqpXhigQ/jO7Ph8guUP8At6Fka8i0rWA==; 31:I7JKUiDaxTl7VbBf2HwPNw6l4K9A+9Uxc7SCOPvLfU2MYVhFLTkl9v5yiHapk7D4bmXKWv13KtpCrVIkJfT3jpBPEurbBMzb0mj/WI2T4fuHE7soA6wbuSTJ/s89DrXXnGcJsMi33n9JjnULvQZ+ejKbsl1QInbEJeS+li1oIGtQ6bVxweXDku5AyRe2pS3nOkLmDMVg8rh69xdWDxsefi/PhILlYDMbOLS8HFyFzp8= X-MS-TrafficTypeDiagnostic: BYAPR07MB4902: X-Microsoft-Exchange-Diagnostics: 1; BYAPR07MB4902; 20:SxpMEM/lgNJYTd44zXtrpTq7YEPa9QGejGx6PT/uWnFiGdH00q6WVEzMgXyLpJ0O90mXvzRL0hXiE96S89i8X85nKSyofUDvzJfxvmckdoamwMQNtWhloleFVi7yD6Xqtze99KLIDj4N/GMSgHYbqyR+KuHorvOt9yS72NBHOwj8PoDXeM2ID/MNwFY+uRYQYKf4tMJ8TWIEUbI+uBXsuOW3tQjnCR5S9hwVITGbnCz0WpRo8EqV9R1tn02RpAqBLavyBxTH3wBgoEKY7Rn21OGkoxjyYbe5kChzotu090gqiUixrCnuXjW3rkC02PIfWlt4X/RStJKfMDv33YJr0WOIAlIUSdzCANG/1Rp4xXTfSnuan5qEmEYVG0JvmDR5nXNU2nalNZrWCQtSohrpAuI8OL891Fzzw3N9dmASKjcxrijeAzJMar5FyYJ1C929P+0REvBh6QOCjyl6l2ppj9bH5ajrUgqbzvRdvadUHxRXCtBmm23krGj63A2lTHVMJ00wYFgvxBc99xl4PuuE3Q0EaYN2DX5DVoZ7tKb5IOLtF/RnZ6J/YuXfoxfqfpazRxLK8iIscF8MlCvSDzOcyC20yLD+UJALUuMIX4IiDJU=; 4:VzAnXJ0sNVy1oa434EJR3M79zX8Bnfsb8gX845qfgzo/W7n2K/tLaMlBl/A6NGajZah1qcYdYcBg1AQWUK0Ucg2QP2FvMi1p8NxvW2NLBpvBGM4U403mZAYlyqXc0FOpiiE9D1ZnaFXo2LBnf2bLseVeZU8ANbJrKI7IoX8r53FV32bmvogOfz9HJIDwp6v2yEOc/cWE8Vd0MSbPcNGWbfhP9wB2jiUG6FAqS2Zn2hgdiQifAuf2cs7jMJ5t14oH3QbGQ2SC/k3LMIGoKjgsOw== 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)(3231254)(944501410)(52105095)(10201501046)(93006095)(3002001)(149027)(150027)(6041310)(20161123562045)(20161123564045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123560045)(20161123558120)(6072148)(201708071742011)(7699016); SRVR:BYAPR07MB4902; BCL:0; PCL:0; RULEID:; SRVR:BYAPR07MB4902; X-Forefront-PRVS: 0703B549E4 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(346002)(39860400002)(39380400002)(376002)(396003)(366004)(189003)(199004)(316002)(6666003)(110136005)(68736007)(2906002)(66066001)(54906003)(47776003)(6512007)(5660300001)(50466002)(72206003)(48376002)(97736004)(6116002)(3846002)(53936002)(16586007)(105586002)(478600001)(6486002)(106356001)(6506007)(36756003)(59450400001)(11346002)(956004)(25786009)(4326008)(50226002)(16526019)(186003)(81156014)(486006)(81166006)(8676002)(7736002)(26005)(8936002)(2616005)(476003)(386003)(44832011)(55236004)(52116002)(42882007)(51416003)(76176011)(446003)(305945005); DIR:OUT; SFP:1101; SCL:1; SRVR:BYAPR07MB4902; H:ajoseph83.caveonetworks.com.caveonetworks.com; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; MX:1; A:1; Received-SPF: None (protection.outlook.com: cavium.com does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; BYAPR07MB4902; 23:A3oRS21eHz7Dgr1RAnNAo8y8TX6QyaHfTVg2Dts1F?= =?us-ascii?Q?XFOdW8QwM1doVSzofziQY2Qufsi+bTo9QMnyJJBAmVzZQBl9QdEytkfbjfBz?= =?us-ascii?Q?l7gVzubGTM5o9ZUZNrkehKo4RvSuh/cP21oxBUgbXlMhcYjf2LsjyEW630t6?= =?us-ascii?Q?24HopRlH0sB6RDlOBLkVi05jKYJLvOceVlVqsUYphPK6FiqvT2HjotUZGAba?= =?us-ascii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lHbCoy3B?= =?us-ascii?Q?rNcGSci6zVd6z/n/5eDNKUPBNnC+o1qnfQCU82PElSMpLoVRvb+ZSAjGeNi3?= =?us-ascii?Q?By/E200/MCjvC5e7ZaNZuKKLj6gAcSzIZVh2bTJy1cNppXaAU8Ru9zsJfsoC?= =?us-ascii?Q?IDqTz0NRsxALwOgvTADMyHI4nGCjiJWDEgBcSiyj8dSpk5t+qj6Zgbrs/uqW?= =?us-ascii?B?QT09?= X-Microsoft-Antispam-Message-Info: eiWVUUWSYaJwEl1plVVRkZXsxqcuR64MCeJwKRpRRuja33DWGPppdBalczcw0MBd+sswhcCD9N/fY7gWGfLb5sdAAR0Pzsm3GMPmzmOMesPoR60XZg51VjvZI7xmHMxJ8oNkQ/NpzQMUC8yFgxQM77LChV71oKRfeDSqR6RTeHkO9c32DOlMDxalJYKTJduc X-Microsoft-Exchange-Diagnostics: 1; BYAPR07MB4902; 6:Z19roaX3WSX8KHfVg4+Qk2+4SJcS9H+BHvFSc3J7rU6W9Bveqla/SH5NJx8H7vUafQihe4en/6XGEz1crWeY64F01OBf58GW8M7LmQ3RKNr85yhmfnZHRI7untftpLDQlGh4zYzxNRNv51wtUY8q4OxR3YK15xjtkyXXZDfexvFrwrwa5x/eBlfN4h7hf+wzWEwrteBtAmCo3gNGATnxKqqKhsNRlKcjzHPC1wy7JLWfDt/sLpreaBzgeouEnWSNubmKpzsfBHWOVDHH+6rx5D0ZO3fbEclWydz5fN4vO8Mrhj4jYNcFqcnuSlDVzg18k5BqbvLEmcthRf+iR28ZH/JhTM76CuOwMxaCVrO9/rx2IJMUmRK4CL0VhuccCrCdG8eUHoQEdtI6ki008cCeGSfzrsuVxfeKJNaNC4nhk1Q9CVokllDkCVHbEo7s5d6Qty+AbZdn0/efPjnN17iyvA==; 5:5CXyKK06SP7IPv48slu9AtJN+54yP+GbxM3Le3FOfG61EukD1eCUBjtdc3O+kozOapU7GHSO3tqlfocZBnp5i9gB92ReA6jrJiwL/ysyGhqD+8++1Q5RR5V5TncLKo4D8JIZDzBSBHuqAYlach+G52xhPcVQkW8G46xKM4yQnaI=; 24:p+8IOdT3tjUSqOdZdA4xmg/R/ZEONyyQxlxf2M2ikoEpK0Vpd4HJgdTc+FLRJdCvyvS8zyhIE2L1q27C3BO+848gvMOdriJExDsPdFdVGhM= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; BYAPR07MB4902; 7:akOs3k+/KQFY6klEimz4UR1pYEDuMowFTSmtila3c9VkXwcsge6gzcb5uspMtaE5txJFH1R5U/xS4Iwq2qhcbS69t/PCo2Bt5YsylZlQW8uuEqWHy3PvXEqid4mOJ+IzDGlVzkfimJukUytQedsAMyMe/CnmeEbhTGPGBEsY+HJ6A4aG17r0HfZum0rpWecw5hsSShVelYj5O9c42EELvmS8cjXcUsxmp22Lad3V8JWQsTJv19QQ2mFU8ShuCd2M X-OriginatorOrg: caviumnetworks.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 14 Jun 2018 10:18:46.8087 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: acb83da2-40de-4371-40bd-08d5d1e0385e X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 711e4ccf-2e9b-4bcf-a551-4094005b6194 X-MS-Exchange-Transport-CrossTenantHeadersStamped: BYAPR07MB4902 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 10:18:51 -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