From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM01-BY2-obe.outbound.protection.outlook.com (mail-by2nam01on0064.outbound.protection.outlook.com [104.47.34.64]) by dpdk.org (Postfix) with ESMTP id 35F181BB35 for ; Fri, 8 Jun 2018 19:10:27 +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=4dnJCgCmvFi0yewXkRp8UqBpNZ8ucfhe5+7Ptbti1Ok=; b=T2v9XJsYLeIY3/5Sfs8Gb1vJj+97lGeGr7Gj6bXesp6eIQORRNIH82jV60JdrBI3Rky0+hqRD1GNsIknfQBZ3q4E5BvWJdG+j1WDBVL4pc9r29UK2mr7xUhzUAANpFmu36sD5usvvfzfSbyWA7sh+NOXCHGJAZFs1jjn029/63o= 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:23 +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:14 +0530 Message-Id: <1528477766-15788-4-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: 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:7ho0ts5lrjtQrywhEIDPDj+1B6fSGsOyqr/xUpRgUbsayn+uSWleN5VLXtL169Xc/DrQbFcB+8knel4joiHNlRFJBAlaEGhYsWhnLCHEFjnTWfrKaPi1dGxnvFMjnXhiL2M3vNHJ1ugK+ejQTttsBoaxNCmJ8ljNTRWJUgaVj2naXYDK5zRcAlBBOi4NBZCK/lihmRL8aFoYFNVo5exwFFKyGVBZzVeYQiKn3l3treIukfn2DpiAsQWAyKzXxjkv; 25:+1ddByU4SIQniBSv2EG26jWFc4eObiAKiNxMFBvje5DOWOFwQeTEj6D8vcu1x3tADbMAd981SyLB9O9azfVCV93wp1ipKEajg8lqgvMsJXKLyXcb5zuDpLkUl8fhKMNbYOYeq6HIOKrjrEwaMugXEd0uR28FYmGqrmHYPN61DqlcFmDkKUj+HnurbtTrklyZvMTSBJWg76zotPzP36kXwehvT77dtQYB+GE4mWAm29+ahB9P+nSPLbs5cE75pajsJaDGz72NiXDPo/X9iZQ01GotVmYKkKd5SVZ1pUsmSmuMoH2jlhoOEVY8xtrCgNVjC7zES2fOhE++gLFiEd3H/A==; 31:xFONoEF4A0SQzpMTce0YUOFrRVK+gL+FqZsrZuQBIzDydRXNAL4kt0Y2wNCeF/gkxV5tPK44+E171xDmJ9ZGGKAjnrsAbpk8hQ990nEk95buGwMRwptxJR4ss3905chsfGsoZ9yapkg94bIJVxdLSvhIv5Druh7dx0N3DUkJPF9IzlQUCTvHvdHsZAufgNi/JQirnqSioRcMzRRkeAAtY7tLmGN753sxGuLg3kMSwG0= X-MS-TrafficTypeDiagnostic: SN6PR07MB4911: X-Microsoft-Exchange-Diagnostics: 1; SN6PR07MB4911; 20:R0k4tp/mVEInS2QGRQDr2IHAKp1mnRfJhgurV+iPeKdYAvzY0wMbc4twuK1fbml1IMT9bIybCH7HW7IEeC4hGVdSX/+TusL74puCxAFcxa+DbnJiNN4Ft1UQ4xvQ/KmSf57+d6UHvcMWEOHf0i5+SjJTzPxTZeUDDPXRHVOWO0cKts+vDb6SfBdLjxOphSspgaEcce/kccFib6kiAEuhdsixZPib1QRwDx9N8kCJtE3gWCBjtzn9qLPFPtrzNNIiOYTB+InM1+9Qja+nTPdo6vVg1AXFcCop3fJlaobiSjgzCDOZIOT1tZA6ltqahCx3NVNW5VjOBxXmtQ8glsUA73nroOTpgBuUCmoybg+ODcSSmd6L7AnlQwCNQ6IsuP09ckdC5e8rgkB2G6dxIMIU0Qlige84kLdsrbgzNWi19PQ1Rjr9dFnN+i0FbQfdVcUrbSfDcdYe8RMGGXWSGiVInK8o5q9rtQfiZvUmWy9o2DKPMC4lvEM5t723sdm0BVtXDrdl4qKBi70mo51g2joVx0a2P9EksPjtLcfffJSxuc2SVWtg05Kwn6BhJdaMyQ7MYLmhO2nTvl5/La4BwyYUFfgBolIfjxl8r6TNZMaTHgA=; 4:XzjqEwdpwHWJPJ1l4Hdf8gZ4Lcf4tAcqPWsSw4Is1tT9V6dkcnk6b6rnMzNlEch0hP4LzVuQdELt0P/urUIbFQrxmP/ggV89NJOleCDhQHpAZVRp3rMGb4PFfR0kyIWVVnaUrQ+H1PM6QFmeSyWuHq+ubYhwmsEY1Z626SorTyHGGn31R1uQ6O3rb1FCHCwiBHu4jNdzZicYRyvXBsYKILMWYWqiox98KjUbbqS+rrRUfQnMSmbkFRd1+5P3VKuj/aceREzw9i7ozJL5IFQW0A== 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)(76176011)(5660300001)(25786009)(48376002)(50466002)(446003)(386003)(186003)(11346002)(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:R8M5Uo4MmTPO3w72aiURHZF2VHs/XITjpqg58FWjk?= =?us-ascii?Q?3WyL6z9dSmN8abfwrMCz+hHMb6ucAlgjO4a0/ChoFsZrTahRVpVl7T8d3J8o?= =?us-ascii?Q?K+xFYQlPLzWelFXsMrVjKR4YaSv8ROY71hy4EH5MakpvbZ1E9g2vJgnuoZu+?= =?us-ascii?Q?Hnr/VUr7gcqLyaLiPJIrchBZ9/8LLbsD/42qlA2r9SyWYxW8WmNkOr3X4CAB?= =?us-ascii?Q?CZ7KSW23o3FeLqTDne+59cZ0+0DD9xKCK29sAjg+UMxRoIvziZ1c9swQ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4q9Q8kp/3r/fnEhFPtoG/lI1y8uI9TmEGhrwC5ow2zWYTB3BD3+NjlW0aSnwoTlxV73txVUrpfRg1nAeeRv1QAhN8yi2fFO+KJjilnDxfls= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; SN6PR07MB4911; 7:3KPhFgJJ9n+IiEqyoF39hgUzltbtN6mdT1Vpsv3hLxhPB/NmQxbqCbe7OkSJ06NXUhQoZd3mrs1YDZaYx9At2x7Ha9e6VzaKn4VHtiyVwolsIac9Ok8QwoUaBgubHRWzi5+B94GNU7YSY7X1M2hq+TY+tkba4iCB/z7uQdXn1laznRrBWdpu8sJZvXT3KWtUZGMNsJIOXQzXSqbGaKBRZgWfBWRXgSaJUvY54TyIDkxE0UBVwDqah1j0/u+1ECrc X-MS-Office365-Filtering-Correlation-Id: c3819747-778d-4f73-a418-08d5cd62ba1f X-OriginatorOrg: caviumnetworks.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 08 Jun 2018 17:10:23.3692 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: c3819747-778d-4f73-a418-08d5cd62ba1f 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 03/15] examples/l2fwd: move structure definitions to common header 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:27 -0000 Signed-off-by: Anoob Joseph --- examples/l2fwd/l2fwd_common.h | 12 ++++++++++++ examples/l2fwd/main.c | 10 ---------- 2 files changed, 12 insertions(+), 10 deletions(-) diff --git a/examples/l2fwd/l2fwd_common.h b/examples/l2fwd/l2fwd_common.h index fe354cf..40979fd 100644 --- a/examples/l2fwd/l2fwd_common.h +++ b/examples/l2fwd/l2fwd_common.h @@ -21,4 +21,16 @@ #define MAX_TIMER_PERIOD 86400 /* 1 day max */ +struct lcore_queue_conf { + unsigned n_rx_port; + unsigned rx_port_list[MAX_RX_QUEUE_PER_LCORE]; +} __rte_cache_aligned; + +/* Per-port statistics struct */ +struct l2fwd_port_statistics { + uint64_t tx; + uint64_t rx; + uint64_t dropped; +} __rte_cache_aligned; + #endif /* _L2FWD_COMMON_H_ */ diff --git a/examples/l2fwd/main.c b/examples/l2fwd/main.c index 9f873c7..11ca170 100644 --- a/examples/l2fwd/main.c +++ b/examples/l2fwd/main.c @@ -60,10 +60,6 @@ static uint32_t l2fwd_dst_ports[RTE_MAX_ETHPORTS]; static unsigned int l2fwd_rx_queue_per_lcore = 1; -struct lcore_queue_conf { - unsigned n_rx_port; - unsigned rx_port_list[MAX_RX_QUEUE_PER_LCORE]; -} __rte_cache_aligned; struct lcore_queue_conf lcore_queue_conf[RTE_MAX_LCORE]; static struct rte_eth_dev_tx_buffer *tx_buffer[RTE_MAX_ETHPORTS]; @@ -81,12 +77,6 @@ static struct rte_eth_conf port_conf = { struct rte_mempool * l2fwd_pktmbuf_pool = NULL; -/* Per-port statistics struct */ -struct l2fwd_port_statistics { - uint64_t tx; - uint64_t rx; - uint64_t dropped; -} __rte_cache_aligned; struct l2fwd_port_statistics port_statistics[RTE_MAX_ETHPORTS]; /* A tsc-based timer responsible for triggering statistics printout */ -- 2.7.4