From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM01-BY2-obe.outbound.protection.outlook.com (mail-by2nam01on0083.outbound.protection.outlook.com [104.47.34.83]) by dpdk.org (Postfix) with ESMTP id B894B1B44E for ; Wed, 11 Jul 2018 08:08:01 +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=ytxBpjsGMsqIwGuYEKQijK5nN8IFqGPDRSX3DFs1jyg=; b=EfSYOyVMdHxxXUw3XGEgckJZz+w+oMHzUcIE8kq9HznpEqiyVdF2Zju1hnlQQZv1pTDJ0ZeMgQnNrORNMb93LoeUfMUdG9uOwdrA0GGOif75v4qDtzCFCB+3A1HY2RyxJa2ONcz/mCBGVdeMivbqUfhqxk0fMumPPEuxaPTP8TQ= 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.930.21; Wed, 11 Jul 2018 06:07:58 +0000 From: Anoob Joseph To: Bruce Richardson , Pablo de Lara Cc: Anoob Joseph , Jerin Jacob , Narayana Prasad , dev@dpdk.org Date: Wed, 11 Jul 2018 11:37:16 +0530 Message-Id: <1531289248-20025-1-git-send-email-anoob.joseph@caviumnetworks.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1528976946-14396-1-git-send-email-anoob.joseph@caviumnetworks.com> References: <1528976946-14396-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: BMXPR01CA0027.INDPRD01.PROD.OUTLOOK.COM (2603:1096:b00:c::13) To BN7PR07MB4898.namprd07.prod.outlook.com (2603:10b6:406:ef::27) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: e7a8728d-ae4e-4087-607d-08d5e6f4a7b2 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(7020095)(4652040)(8989117)(5600053)(711020)(4534165)(7168020)(4627221)(201703031133081)(201702281549075)(8990107)(2017052603328)(7153060)(7193020); SRVR:BN7PR07MB4898; X-Microsoft-Exchange-Diagnostics: 1; BN7PR07MB4898; 3:atX+BXObA0/kRH5SsTsT0Qz9TrXkx7TwHlJ+OkdFD1EBPOKOUVBdVo0Pj8T0GMdjKPbTw4iYF2oF3dGAXRuIaPKwqsthpc5RxffZsYybzJMy3cwEAlH7luKHjIOjK0vSt/A1nA40kdixlQ9yhotcQF9JAgS8kEv6RgDDalpxxw2t8BxKT94O4xWnO+WJnA7sdHOv0W+Sf2LUqi8qhPxuVqR5YqzqG93IjW43U+20HuWIGayRsYFzsryAN3WgQ8cg; 25:r10UubC8qBrSgWNopdaSQMUku5744EpsOvm82wv+ZcmD3JMUKAEhr2IeOEsHTo0wzTUTK3vgelpjzn8GYXWFfkroI4tRxYOVvxyOGdojpnCpIFeBe1yuBPLV1t7rBqUNP+nSH6PeUZ1KUfKKdwWpwcyHRMr6c3CAzcztdPNcDk2SBgGZyKe/rhRZCGX+OB7tLmurIuMVm5Am0VPg8eScTZRG0iZkKPnH5nGDX8fk/JSBQLcN17+3OlaM2QzrjBzKxzsh+YSW8c6206JXFpjJoxFzQ0vljwtzHym0SQ9XTaG/amdwLr0CGQ8V04YXtvR8S0zal4Fi4wqPuCB+4dRy7g==; 31:UqOLq7hlO2TYtDkKgy6l4HGr7yJtFhHnbuq+dBg803XPWukvWJNxxOC6QvGsYQymKPPdkaAcTVDK/Y/EjxdSe9/wqa4jQHW1ZVfmxziwSob3QiDUNvZ2i8sFcSRnU4V7cqpOO2BFADYn5htyTHVp4ITdJOddjsawgU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-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)(3231311)(944501410)(52105095)(10201501046)(93006095)(3002001)(149027)(150027)(6041310)(20161123560045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123562045)(20161123564045)(20161123558120)(6072148)(201708071742011)(7699016); SRVR:BN7PR07MB4898; BCL:0; PCL:0; RULEID:; SRVR:BN7PR07MB4898; X-Forefront-PRVS: 0730093765 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(346002)(376002)(136003)(39860400002)(366004)(396003)(189003)(199004)(68736007)(81166006)(8676002)(81156014)(44832011)(50466002)(6666003)(25786009)(6512007)(7736002)(4326008)(6486002)(48376002)(8936002)(2906002)(3846002)(478600001)(72206003)(305945005)(6116002)(486006)(16586007)(2616005)(54906003)(110136005)(316002)(36756003)(476003)(956004)(446003)(11346002)(47776003)(26005)(42882007)(52116002)(105586002)(186003)(76176011)(16526019)(66066001)(106356001)(51416003)(97736004)(6506007)(55236004)(50226002)(53936002)(5660300001)(386003); DIR:OUT; SFP:1101; SCL:1; SRVR:BN7PR07MB4898; 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; BN7PR07MB4898; 23:qpzsqK/oPdLIdI/tt87UpFKDIxexcfvD0emCAQny4?= =?us-ascii?Q?poW5oK1KdWqFN7Q+SOBva4LiqGMndMUyjfC/P9DwfxEUK3+HpjDvK3v7IOxh?= =?us-ascii?Q?kF/ZSIbiwpYlTk0m1InJfWjWIF6I/dWheUkhH572MaZmn4aXilToZlYwqkdO?= =?us-ascii?Q?OcGkxhAG5zvqcQod/qgELNtQOa4x9ru6HzonRkBqaUEDj9gub76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n22CBQu59JgkEESyq1l3MvHLKx?= =?us-ascii?Q?cIjJFAHfiuGR7roVY8H/h8xkbZMueHQGUszX/th7XBABQpmyaCk6p2ekqIDW?= =?us-ascii?Q?krtnl8xarVZOeFWQEAVN2LWYbQdygzsV6PkSxHrOx7C3ALWbTiZts9FRYgap?= =?us-ascii?Q?jLKFrqOvHXM8z2yzMU=3D?= X-Microsoft-Antispam-Message-Info: GVEvLZoSUyqmCr0+d1nPjCU280qvkNle1i/+Fqow8M5V/fiXVNn5YMrf3Abed82/c8AL6HVVjk8oMGgMGYZxJWkV5OcGlYtTI8HpTYpYMpG2T2d2eALfNZ60Y+/YP63YCPrASyqyC+Ovzrh9JP3s18H0vjxr+zvA1zeOCIMdhi6YIpXJyakWaiWoMVvFuEeo9VHLfvjbJh9NOi8LB86EtLXiFtxLVk7/cZrWTeN2k2jUOffT8kNqUHIFyQNuJvKNA3daN38LWst1o+OljXhNh+ZoN8q7jK9wviDurcInH3GhubtK4t+fhNgMMOxhPRLo1Mk+jbFI1KHjnHweKBiEvcYs8o7nhg7jnTdPADw0ma0= X-Microsoft-Exchange-Diagnostics: 1; BN7PR07MB4898; 6:olyB/FSO1iCTOG7EqRX5/PpRRC3CVAg7kQiqzL7LQBH2lWb+iE6MxUyw+0eSPDN7WbMYR/fmeY3H26KLGH3b/uKMGZlBBQa+PVfzji0RVB6a6X3HvjBS34mkzjek68yOiUEWX7qWiq92NyPX4yhisPMQNatWKWLfVueccyZaMwI/BMFOJ2Gts5f2dHsCN8taN/qLJ0d5bEDm40gP2DHjzdFMcTy2xDJhK6i7xTVp7b9s3fG98kakl66jSG8apfAyPX80jFT0xUf2vlRS7mHW/XBkrCsBeM77av3NQize97woeeiMqY/swMStTu3K/yOQlZiZIQXgs+MqkoC0xCn6rB2r/6njizu8X9bHFKWmGInIe2x95I97a1Gh3+59+O5sI6ijqg+GNRrzmRysVeOizHzq7Q748CcRHAsqNLEOgbjMCER32PyIxI93EzPPpdSd1g2iGMzujxtG/EvYu2p5AA==; 5:Ied5UJgqeNjLx3nt/Wy0oX8aa/JDepThOCSffW+GWPBZ0eFx2UtRQeuL9lmNJWmS/FT1AY31D2L1DRfRMkQhUIqn6U6qxZ+LjjNNsv45cd/dLiKXqwr5YM+v26RQrfNGVAaHV+oWbQmcxGS/tk4jJ1N9lfEx2RYZhMDnkwv2qhc=; 24:hF8vVtf2jqZFNFRNIzzJO6hHVHu/jk5enfPDtTFxlp1DOOzHRcKKDwIPOCfUBHO6+aJEaUFKId4gW1qb+GyBA3HlfwWND8ZCLe597hgwyUw= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; BN7PR07MB4898; 7:y1H2IY3azu3rqgC6IRcLwarnF4UPrDNp6cj0VVFt7vtLxxjxINEMJGWt8NCOv2KCuJ3l6bF2yJPG5SHXxIRHddrcRXu2C7Wax8W0SVlevb8maG3nw2fALkvfBxE84rWF5c74CM5XqWbziFoOBX6jKHDzDP0eAIgb8mZ+2/hEPriu79lve0/ISDF2/eIfl3lEgUoT1tqTuf4SgLpEEEnDPHWrcFvAzaaSbgjS9K6Yo8/tek8kHBrhlPVsx8ut0436 X-OriginatorOrg: caviumnetworks.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 11 Jul 2018 06:07:58.5044 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: e7a8728d-ae4e-4087-607d-08d5e6f4a7b2 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 v2 00/12] 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: Wed, 11 Jul 2018 06:08:02 -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. v2: * Merged small patches with others as directed by Pablo v1: * Fix all checkpatch reported issues Anoob Joseph (12): 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: 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