From: NĂ©lio Laranjeiro Date: Thu, 24 Nov 2016 16:03:34 +0000 (+0100) Subject: net/mlx5: move static prototype X-Git-Tag: spdx-start~4871 X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=61b09ae45a977eceb16b0d4511e12fc4888ef89d;p=dpdk.git net/mlx5: move static prototype Gather function prototypes at the beginning of the file. Signed-off-by: Nelio Laranjeiro Acked-by: Adrien Mazarguil --- diff --git a/drivers/net/mlx5/mlx5_rxtx.c b/drivers/net/mlx5/mlx5_rxtx.c index 2fdb9b186a..46fb252fd7 100644 --- a/drivers/net/mlx5/mlx5_rxtx.c +++ b/drivers/net/mlx5/mlx5_rxtx.c @@ -74,6 +74,9 @@ check_cqe(volatile struct mlx5_cqe *cqe, unsigned int cqes_n, const uint16_t ci) __attribute__((always_inline)); +static inline void +txq_complete(struct txq *txq) __attribute__((always_inline)); + static inline uint32_t txq_mp2mr(struct txq *txq, struct rte_mempool *mp) __attribute__((always_inline)); @@ -190,9 +193,6 @@ tx_mlx5_wqe(struct txq *txq, uint16_t ci) return (uintptr_t *)((uintptr_t)txq->wqes + ci * MLX5_WQE_SIZE); } -static inline void -txq_complete(struct txq *txq) __attribute__((always_inline)); - /** * Manage TX completions. *