From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id 85585A04B3; Mon, 10 Feb 2020 17:22:34 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id AD59D1BFE5; Mon, 10 Feb 2020 17:21:12 +0100 (CET) Received: from out5-smtp.messagingengine.com (out5-smtp.messagingengine.com [66.111.4.29]) by dpdk.org (Postfix) with ESMTP id 122941BFA5 for ; Mon, 10 Feb 2020 17:21:11 +0100 (CET) Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailout.nyi.internal (Postfix) with ESMTP id A4DB221AFB; Mon, 10 Feb 2020 11:21:10 -0500 (EST) Received: from mailfrontend1 ([10.202.2.162]) by compute1.internal (MEProxy); Mon, 10 Feb 2020 11:21:10 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=monjalon.net; h= from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; s=mesmtp; bh=qqwAI2yJaP yGP10EzcBN/Bkq4l9OpZ+1Q2rnR95x674=; b=A6Fk4CU9n7+jE6BRqaKrYa998K ofNYrTWC9jckU17X4S4RaOCS6QUPaayMqz68hemXgvnFRf/i3dx0q6I6PjT4h8pY zPbItSb2mKDlKe/2SF2cj5iY28r/AxlznQlmPheASPR4TIwu7PntiRhp//gkhnBw aCMGWuhtrATy4l6hM= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:date:from :in-reply-to:message-id:mime-version:references:subject:to :x-me-proxy:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s= fm2; bh=qqwAI2yJaPyGP10EzcBN/Bkq4l9OpZ+1Q2rnR95x674=; b=Ob5Tdc0V ZLtF6PBGk74dOWICMyJzadCntxK+PLFGX/DmI5aNVyoTSIfZka71qqRh9lp/M4KS eoY3c0CTBak3j3AT/g6cD2xIA3+RdOButo+Fv0o1DAlEY80UonB65bhWTURMZP0p OBQxN1SVzto9ObO6iq1qYkKsUaWbZdDCdJFBwaCHfDaCM1xzBlYXnUSxpy3+2joc mCGQm3Vjuj0Cg6Q7lj8Vc8leaVtH7F8wcMQCGt9TcMJzdLAb0k+3rs/LVi8ANJWh 7oBpSvuOpANTYDIIi3hqAiNb7BNkCPHLiFj4Rv9Wr5aitr1LN10Ay4Sen1weTyjN rEETcC9e4bdIXw== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedugedriedugdektdcutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenuc fjughrpefhvffufffkofgjfhgggfestdekredtredttdenucfhrhhomhepvfhhohhmrghs ucfoohhnjhgrlhhonhcuoehthhhomhgrshesmhhonhhjrghlohhnrdhnvghtqeenucfkph epjeejrddufeegrddvtdefrddukeegnecuvehluhhsthgvrhfuihiivgepheenucfrrghr rghmpehmrghilhhfrhhomhepthhhohhmrghssehmohhnjhgrlhhonhdrnhgvth 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 F1FB7328005A; Mon, 10 Feb 2020 11:21:09 -0500 (EST) From: Thomas Monjalon To: dev@dpdk.org Cc: Hemant Agrawal , Sachin Saxena Date: Mon, 10 Feb 2020 17:20:25 +0100 Message-Id: <20200210162032.1177478-9-thomas@monjalon.net> X-Mailer: git-send-email 2.25.0 In-Reply-To: <20200210162032.1177478-1-thomas@monjalon.net> References: <20200210162032.1177478-1-thomas@monjalon.net> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [dpdk-dev] [PATCH 20.05 08/15] replace no-inline attributes 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" There is a macro __rte_noinline, preventing function to be inlined, which is now used where appropriate for consistency. Signed-off-by: Thomas Monjalon --- drivers/common/dpaax/compat.h | 2 +- drivers/net/dpaa2/dpaa2_rxtx.c | 4 ++-- lib/librte_eal/common/include/rte_common.h | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/common/dpaax/compat.h b/drivers/common/dpaax/compat.h index 5b11c2d927..90db68ce76 100644 --- a/drivers/common/dpaax/compat.h +++ b/drivers/common/dpaax/compat.h @@ -60,7 +60,7 @@ #define __packed __rte_packed #endif #ifndef noinline -#define noinline __attribute__((noinline)) +#define noinline __rte_noinline #endif #define L1_CACHE_BYTES 64 #define ____cacheline_aligned __rte_aligned(L1_CACHE_BYTES) diff --git a/drivers/net/dpaa2/dpaa2_rxtx.c b/drivers/net/dpaa2/dpaa2_rxtx.c index 52d913d9ea..23d48035d5 100644 --- a/drivers/net/dpaa2/dpaa2_rxtx.c +++ b/drivers/net/dpaa2/dpaa2_rxtx.c @@ -363,7 +363,7 @@ eth_fd_to_mbuf(const struct qbman_fd *fd, return mbuf; } -static int __attribute__ ((noinline)) __attribute__((hot)) +static int __rte_noinline __attribute__((hot)) eth_mbuf_to_sg_fd(struct rte_mbuf *mbuf, struct qbman_fd *fd, uint16_t bpid) { @@ -434,7 +434,7 @@ static void eth_mbuf_to_fd(struct rte_mbuf *mbuf, struct qbman_fd *fd, uint16_t bpid) __attribute__((unused)); -static void __attribute__ ((noinline)) __attribute__((hot)) +static void __rte_noinline __attribute__((hot)) eth_mbuf_to_fd(struct rte_mbuf *mbuf, struct qbman_fd *fd, uint16_t bpid) { diff --git a/lib/librte_eal/common/include/rte_common.h b/lib/librte_eal/common/include/rte_common.h index 1677a0147a..5145473415 100644 --- a/lib/librte_eal/common/include/rte_common.h +++ b/lib/librte_eal/common/include/rte_common.h @@ -155,7 +155,7 @@ static void __attribute__((destructor(RTE_PRIO(prio)), used)) func(void) /** * Force a function to be noinlined */ -#define __rte_noinline __attribute__((noinline)) +#define __rte_noinline __attribute__((noinline)) /*********** Macros for pointer arithmetic ********/ -- 2.25.0