git.droids-corp.org
/
dpdk.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
4dc11c2
)
mbuf: force inlining
author
Intel
<intel.com>
Mon, 3 Jun 2013 00:00:00 +0000
(
00:00
+0000)
committer
Thomas Monjalon
<thomas.monjalon@6wind.com>
Tue, 17 Sep 2013 12:09:22 +0000
(14:09 +0200)
Signed-off-by: Intel
lib/librte_mbuf/rte_mbuf.h
patch
|
blob
|
history
diff --git
a/lib/librte_mbuf/rte_mbuf.h
b/lib/librte_mbuf/rte_mbuf.h
index
5d610cb
..
d914562
100644
(file)
--- a/
lib/librte_mbuf/rte_mbuf.h
+++ b/
lib/librte_mbuf/rte_mbuf.h
@@
-409,7
+409,8
@@
static inline struct rte_mbuf *__rte_mbuf_raw_alloc(struct rte_mempool *mp)
* @param m
* The mbuf to be freed.
*/
* @param m
* The mbuf to be freed.
*/
-static inline void __rte_mbuf_raw_free(struct rte_mbuf *m)
+static inline void __attribute__((always_inline))
+__rte_mbuf_raw_free(struct rte_mbuf *m)
{
#ifdef RTE_MBUF_SCATTER_GATHER
RTE_MBUF_ASSERT(rte_mbuf_refcnt_read(m) == 0);
{
#ifdef RTE_MBUF_SCATTER_GATHER
RTE_MBUF_ASSERT(rte_mbuf_refcnt_read(m) == 0);
@@
-668,7
+669,8
@@
static inline void rte_pktmbuf_detach(struct rte_mbuf *m)
* @param m
* The packet mbuf segment to be freed.
*/
* @param m
* The packet mbuf segment to be freed.
*/
-static inline void rte_pktmbuf_free_seg(struct rte_mbuf *m)
+static inline void __attribute__((always_inline))
+rte_pktmbuf_free_seg(struct rte_mbuf *m)
{
__rte_mbuf_sanity_check(m, RTE_MBUF_PKT, 0);
{
__rte_mbuf_sanity_check(m, RTE_MBUF_PKT, 0);