]> git.droids-corp.org - dpdk.git/blobdiff - drivers/net/mlx5/mlx5_rxtx.c
net/mlx5: force inline for completion function
[dpdk.git] / drivers / net / mlx5 / mlx5_rxtx.c
index 37573668e43ed258824d1566134b22be6503b0f1..5c39cbb569a630e6215fccb01682ebcb1c81bbc3 100644 (file)
@@ -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;