From patchwork Mon Jun 29 21:04:42 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Thomas Monjalon X-Patchwork-Id: 72438 X-Patchwork-Delegate: thomas@monjalon.net Return-Path: X-Original-To: patchwork@inbox.dpdk.org Delivered-To: patchwork@inbox.dpdk.org Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id E25BDA0350; Mon, 29 Jun 2020 23:04:58 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 26B581BF5A; Mon, 29 Jun 2020 23:04:58 +0200 (CEST) Received: from out1-smtp.messagingengine.com (out1-smtp.messagingengine.com [66.111.4.25]) by dpdk.org (Postfix) with ESMTP id 989261BF46 for ; Mon, 29 Jun 2020 23:04:56 +0200 (CEST) Received: from compute7.internal (compute7.nyi.internal [10.202.2.47]) by mailout.nyi.internal (Postfix) with ESMTP id 30D3F5C015A; Mon, 29 Jun 2020 17:04:56 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute7.internal (MEProxy); Mon, 29 Jun 2020 17:04:56 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=monjalon.net; h= from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; s=fm1; bh=rpT+E+/iByY4Ll1eNUkpiiJBhF vvK8MoTrpKsqdFsMg=; b=ML/JFTadeAOMFQd2tEcG8dlHZCyFepnAcWQoPFdH7C nXESP76SVINVuIRrR+4jA2kgjSFmeF7LjSE0lIGr5Fyp7GW6vxHvzZ1+j1jt++Ty FuCc0So/W2E8t2qRzPjEphXe1JuOZxOESnXK7oRt/O44mPMm2QHFOtRI+euE60Ed HXm5Q5ulSMPQ1HAoIMnZIHeiiw6SPUKX8/UmkqG7RBvzNosmKNQPctiPDHTu5MoW YQ4qMzgMoC2/tkPtd2smcHiPyHPpyEPXxWNoZs5r/bwa897rw7/cWkmRyeR0NPqM jgftitkFr3TMG+SgqFIwlw+qgG4Au51rYNf84/c374AQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:date:from :message-id:mime-version:subject:to:x-me-proxy:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm3; bh=rpT+E+/iByY4Ll1eN UkpiiJBhFvvK8MoTrpKsqdFsMg=; b=LwRw/SjyVc7d5lEyrOg60/XYNbaOCDQc8 lVM0FUCFPlFnHwXLhEfiYEdVyJix72/XXuB2WDPKsmnxM1zEsBNGWAKb80u5ZAr5 LABHpMqaw2C2dsfRciPhrCD4E+LHB9+vs8Cykz9qpTp2INq2Cx4+xe3wctkT6FSK xSnh1dMZY4jtLdGvcOPNy324SfXeZCT+ptRQ94GYTkIU0h3+3xwQlZFSon/BBvea vlb1Em+/lI35BjOOrn+eU/HlZ2RsRuJaNdBc8sAMSE697TiBR1lnqPk8P3erHAkM P2R+MAUOdhHv3qVLIjiTVnFe3Myw7mNywDCaan9a14x0RAPi6DyGg== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduhedrudelledgkeegucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhephffvufffkffoggfgsedtkeertdertddtnecuhfhrohhmpefvhhhomhgrshcu ofhonhhjrghlohhnuceothhhohhmrghssehmohhnjhgrlhhonhdrnhgvtheqnecuggftrf grthhtvghrnhepvdelvdduhedvudduveeuvdevheegudelgeeigfejheduhedttdegudff jeeihffgnecukfhppeejjedrudefgedrvddtfedrudekgeenucevlhhushhtvghrufhiii gvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpehthhhomhgrshesmhhonhhjrghlohhn rdhnvght X-ME-Proxy: Received: from xps.monjalon.net (184.203.134.77.rev.sfr.net [77.134.203.184]) by mail.messagingengine.com (Postfix) with ESMTPA id 3E3EE3280069; Mon, 29 Jun 2020 17:04:55 -0400 (EDT) From: Thomas Monjalon To: dev@dpdk.org Cc: david.marchand@redhat.com, Wisam Jaddo , Xiaoyu Min Date: Mon, 29 Jun 2020 23:04:42 +0200 Message-Id: <20200629210443.371664-1-thomas@monjalon.net> X-Mailer: git-send-email 2.26.2 MIME-Version: 1.0 Subject: [dpdk-dev] [PATCH] app/flow-perf: use macro for cache alignment 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: , Errors-To: dev-bounces@dpdk.org Sender: "dev" The macro __rte_cache_aligned is better suited for aligning a structure on a cache line (of any size). Fixes: 15c431864000 ("app/flow-perf: add packet forwarding support") Signed-off-by: Thomas Monjalon Acked-by: Wisam Jaddo --- app/test-flow-perf/main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/test-flow-perf/main.c b/app/test-flow-perf/main.c index e155e49c37..1ae2856556 100644 --- a/app/test-flow-perf/main.c +++ b/app/test-flow-perf/main.c @@ -84,7 +84,7 @@ struct lcore_info { uint64_t tx_drops; uint64_t rx_pkts; struct rte_mbuf *pkts[MAX_PKT_BURST]; -} __attribute__((__aligned__(64))); /* let it be cacheline aligned */ +} __rte_cache_aligned; static struct lcore_info lcore_infos[MAX_LCORES];