From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wm0-f46.google.com (mail-wm0-f46.google.com [74.125.82.46]) by dpdk.org (Postfix) with ESMTP id 104CF8D3C for ; Wed, 7 Sep 2016 09:02:53 +0200 (CEST) Received: by mail-wm0-f46.google.com with SMTP id w207so38697317wmw.1 for ; Wed, 07 Sep 2016 00:02:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=6wind-com.20150623.gappssmtp.com; s=20150623; h=from:to:subject:date:message-id:in-reply-to:references; bh=/TV5Xu3yOxwcd/WPiz4Exp3+3LtIHXB/2SVjI4rQPw8=; b=ySV7jLr/y+Tq06e1R8gDVE8a3wbHRDUaDZGhRMWbroiem+Fmf5isANzXzNZlbl1VC6 6Ox4IvZ8yZjf2dLhkGsDDdLjaKxdP0ZERJLrcSeCpwn0wx8gM9etm7PiONuT8H/G3l/0 so45z2ydMfk5Em8K8pqecTc51V27XNc5LQiBpHrWcxWnp8xLKgY4vSC2KUAQKNEmAtJ2 Z6EnemqpqfwuDhaGlhD/IaFTqGqacJg2KprE1vNe07Q00yfvTHfgF2C8PBB0JqbQpY3P T/+zWaHSYp+I52dGgH0Awm1lnwGcJr0W6FEVc6WTJUuuBXRlryLFcu9Z0Xh7dxXNQMBq CwJA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:subject:date:message-id:in-reply-to :references; bh=/TV5Xu3yOxwcd/WPiz4Exp3+3LtIHXB/2SVjI4rQPw8=; b=WOhgQ8sgn1tZA6My+nMFlqY0lL4UbA12+npxvq60wCLUjvebXpwTw18UA/qYIe+8pV nB7RSAFhmw0/VSkE9XaASuqLjxmVNon4uxvYec0ql1hq6EB766vhEgnzTdVn3QFa/3VG Y1MapBHBPkjMYrzD1NROzr9SuQFGZueIvilUl4esYcfwgDjbwRgQXLIN/Df7ModdvPLt yvb68RJsUew633jsKpsUz1bVjhsEvptc0Z6NJMYpO8JTpCnFqh5UNfh+LsdzMDl72Tc1 kzU8CPbS5kA7oi0c69OpP/iWxM4Z1BLanWE/XUJ94OxwrgFRr5RHxyH6rRgCLNPnpSAB 5a6w== X-Gm-Message-State: AE9vXwOQXrbEwyQoaXLpUavzc9OhUVYSaPcf3+cPYcPgA1bpDqRWRPbZLLENjxOe99qCUS33 X-Received: by 10.194.173.168 with SMTP id bl8mr17340673wjc.136.1473231772466; Wed, 07 Sep 2016 00:02:52 -0700 (PDT) Received: from ping.vm.6wind.com (guy78-3-82-239-227-177.fbx.proxad.net. [82.239.227.177]) by smtp.gmail.com with ESMTPSA id z17sm2556475wmz.23.2016.09.07.00.02.51 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 07 Sep 2016 00:02:52 -0700 (PDT) From: Nelio Laranjeiro To: dev@dpdk.org Date: Wed, 7 Sep 2016 09:02:24 +0200 Message-Id: <63ee21ceb8fa5eeb570eae23e9c048bffc9cdd4d.1473230641.git.nelio.laranjeiro@6wind.com> X-Mailer: git-send-email 2.1.4 In-Reply-To: References: Subject: [dpdk-dev] [PATCH 6/8] net/mlx5: force inline for completion function X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 07 Sep 2016 07:02:57 -0000 This function was supposed to be inlined, but was not because several functions calls it. This function should always be inline avoid external function calls and to optimize code in data-path. Signed-off-by: Nelio Laranjeiro --- drivers/net/mlx5/mlx5_rxtx.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/drivers/net/mlx5/mlx5_rxtx.c b/drivers/net/mlx5/mlx5_rxtx.c index 3757366..5c39cbb 100644 --- a/drivers/net/mlx5/mlx5_rxtx.c +++ b/drivers/net/mlx5/mlx5_rxtx.c @@ -152,6 +152,9 @@ check_cqe64(volatile struct mlx5_cqe64 *cqe, return 0; } +static inline void +txq_complete(struct txq *txq) __attribute__((always_inline)); + /** * Manage TX completions. * @@ -160,7 +163,7 @@ check_cqe64(volatile struct mlx5_cqe64 *cqe, * @param txq * Pointer to TX queue structure. */ -static void +static inline void txq_complete(struct txq *txq) { const unsigned int elts_n = txq->elts_n; -- 2.1.4