From: NĂ©lio Laranjeiro Date: Wed, 14 Sep 2016 11:53:53 +0000 (+0200) Subject: net/mlx5: force inline for completion function X-Git-Tag: spdx-start~5878 X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=a6ca35aa74339cdd1596c9ba897097b2d2ba77ce;p=dpdk.git net/mlx5: force inline for completion function 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 --- diff --git a/drivers/net/mlx5/mlx5_rxtx.c b/drivers/net/mlx5/mlx5_rxtx.c index 37573668e4..5c39cbb569 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;