From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wm0-f52.google.com (mail-wm0-f52.google.com [74.125.82.52]) by dpdk.org (Postfix) with ESMTP id 19BEF8E5A for ; Wed, 14 Sep 2016 13:54:34 +0200 (CEST) Received: by mail-wm0-f52.google.com with SMTP id k186so1954678wmd.0 for ; Wed, 14 Sep 2016 04:54:34 -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:in-reply-to :references; bh=/TV5Xu3yOxwcd/WPiz4Exp3+3LtIHXB/2SVjI4rQPw8=; b=W4ASzpAxRMMJOqsmpjAl5NNZvNei51uE+aUoLxhbCXReZ7qLkfNbSQ3N8qFuC68Ok0 b2c/u3gL/1NvMRPRX30jEwXr3jl/QKIvGCcMUSC+ungFIE8xVz/zJD1cnvzdPgAG+Br2 6eBji9k/8d8mrVXHPZouHSNTS2uDffDt1IRj8tYm01znJ0eYSTqUOk+ttUZDLFjwDAiq nE81D7tUMZET7Pn9HmMWjmKb7JAtSpbWvTm2gwCSJJBRw2WUYYTQek6CsvAAHqrtLRhs hWFjP0MpqXohnLGp/ucWJKbn6l0qdGYIeXe7pwitvoUqRcD1ZgYQg/39K1+9WvevPPCS 4kwA== 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:in-reply-to:references; bh=/TV5Xu3yOxwcd/WPiz4Exp3+3LtIHXB/2SVjI4rQPw8=; b=IedsOU4UjkSbnRNmYW8h37xz19jPY3cik4tEJTT8tcREgNA6/z7RLt/57z/g2NnG/n qpWnbYnRoKy5zm7Qv4XaqwCXOQcQQA4SvUvlu2aUkz4Sy5GjjdZAaziLa0Etf9qja54B vO0iwpKrU0UR1nJJX8NC3NMiY1rCmMsWR4qQzli42M4rDwq8FyNfZMyI+8yjRpbsGJGB zRucNXDR764HvaTvVsrpffvfq8cBuGHtnlRxiS0PyW5lj40FEyZZ6WsApCCyzGfTmDwa T0H3X6wppHd5FAlQLEen1Rl6lvbHSNLideyoS2lUDf3J1wB+NbBBhngIiUVQgnOA9WI2 E/RQ== X-Gm-Message-State: AE9vXwNBiCucT3IV3UtVarAFRhOSOHdrD1C9DfsA6u2ZzNOIdmS1pbjtDvUY/3GNpg3TB9tQ X-Received: by 10.194.101.226 with SMTP id fj2mr2623828wjb.0.1473854073736; Wed, 14 Sep 2016 04:54:33 -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 m133sm10417332wmg.0.2016.09.14.04.54.33 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 14 Sep 2016 04:54:33 -0700 (PDT) From: Nelio Laranjeiro To: dev@dpdk.org Date: Wed, 14 Sep 2016 13:53:53 +0200 Message-Id: X-Mailer: git-send-email 2.1.4 In-Reply-To: References: In-Reply-To: References: Subject: [dpdk-dev] [PATCH V2 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, 14 Sep 2016 11:54:34 -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