net/mlx5: fix missing inline attributes
These functions must be forced inline for better performance. Fixes:99c12dcca6
("net/mlx5: handle Rx CQE compression") Fixes:1d88ba1719
("net/mlx5: refactor Tx data path") Fixes:67fa62bc67
("mlx5: support checksum offload") CC: stable@dpdk.org Signed-off-by: Nelio Laranjeiro <nelio.laranjeiro@6wind.com> Acked-by: Adrien Mazarguil <adrien.mazarguil@6wind.com>
This commit is contained in:
parent
9a7fa9f76d
commit
ff1807a3f1
@ -69,6 +69,31 @@
|
||||
#include "mlx5_defs.h"
|
||||
#include "mlx5_prm.h"
|
||||
|
||||
static inline int
|
||||
check_cqe(volatile struct mlx5_cqe *cqe,
|
||||
unsigned int cqes_n, const uint16_t ci)
|
||||
__attribute__((always_inline));
|
||||
|
||||
static inline uint32_t
|
||||
txq_mp2mr(struct txq *txq, struct rte_mempool *mp)
|
||||
__attribute__((always_inline));
|
||||
|
||||
static inline void
|
||||
mlx5_tx_dbrec(struct txq *txq) __attribute__((always_inline));
|
||||
|
||||
static inline uint32_t
|
||||
rxq_cq_to_pkt_type(volatile struct mlx5_cqe *cqe)
|
||||
__attribute__((always_inline));
|
||||
|
||||
static inline int
|
||||
mlx5_rx_poll_len(struct rxq *rxq, volatile struct mlx5_cqe *cqe,
|
||||
uint16_t cqe_cnt, uint32_t *rss_hash)
|
||||
__attribute__((always_inline));
|
||||
|
||||
static inline uint32_t
|
||||
rxq_cq_to_ol_flags(struct rxq *rxq, volatile struct mlx5_cqe *cqe)
|
||||
__attribute__((always_inline));
|
||||
|
||||
#ifndef NDEBUG
|
||||
|
||||
/**
|
||||
@ -98,11 +123,6 @@ check_cqe_seen(volatile struct mlx5_cqe *cqe)
|
||||
|
||||
#endif /* NDEBUG */
|
||||
|
||||
static inline int
|
||||
check_cqe(volatile struct mlx5_cqe *cqe,
|
||||
unsigned int cqes_n, const uint16_t ci)
|
||||
__attribute__((always_inline));
|
||||
|
||||
/**
|
||||
* Check whether CQE is valid.
|
||||
*
|
||||
@ -264,10 +284,6 @@ txq_mb2mp(struct rte_mbuf *buf)
|
||||
return buf->pool;
|
||||
}
|
||||
|
||||
static inline uint32_t
|
||||
txq_mp2mr(struct txq *txq, struct rte_mempool *mp)
|
||||
__attribute__((always_inline));
|
||||
|
||||
/**
|
||||
* Get Memory Region (MR) <-> Memory Pool (MP) association from txq->mp2mr[].
|
||||
* Add MP to txq->mp2mr[] if it's not registered yet. If mp2mr[] is full,
|
||||
|
Loading…
Reference in New Issue
Block a user