replace no-inline attributes

There is a macro __rte_noinline, preventing function to be inlined,
which is now used where appropriate for consistency.

Signed-off-by: Thomas Monjalon <thomas@monjalon.net>
This commit is contained in:
Thomas Monjalon 2020-02-09 18:32:42 +01:00
parent 33011cb3df
commit d0ac7bb577
3 changed files with 4 additions and 4 deletions

View File

@ -60,7 +60,7 @@
#define __packed __rte_packed
#endif
#ifndef noinline
#define noinline __attribute__((noinline))
#define noinline __rte_noinline
#endif
#define L1_CACHE_BYTES 64
#define ____cacheline_aligned __rte_aligned(L1_CACHE_BYTES)

View File

@ -363,7 +363,7 @@ eth_fd_to_mbuf(const struct qbman_fd *fd,
return mbuf;
}
static int __attribute__ ((noinline)) __attribute__((hot))
static int __rte_noinline __attribute__((hot))
eth_mbuf_to_sg_fd(struct rte_mbuf *mbuf,
struct qbman_fd *fd, uint16_t bpid)
{
@ -434,7 +434,7 @@ static void
eth_mbuf_to_fd(struct rte_mbuf *mbuf,
struct qbman_fd *fd, uint16_t bpid) __attribute__((unused));
static void __attribute__ ((noinline)) __attribute__((hot))
static void __rte_noinline __attribute__((hot))
eth_mbuf_to_fd(struct rte_mbuf *mbuf,
struct qbman_fd *fd, uint16_t bpid)
{

View File

@ -185,7 +185,7 @@ static void __attribute__((destructor(RTE_PRIO(prio)), used)) func(void)
/**
* Force a function to be noinlined
*/
#define __rte_noinline __attribute__((noinline))
#define __rte_noinline __attribute__((noinline))
/*********** Macros for pointer arithmetic ********/