git.droids-corp.org
/
dpdk.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
malloc: allow detaching from external memory
[dpdk.git]
/
examples
/
ipsec-secgw
/
ipsec.h
diff --git
a/examples/ipsec-secgw/ipsec.h
b/examples/ipsec-secgw/ipsec.h
index
9b87278
..
c998c80
100644
(file)
--- a/
examples/ipsec-secgw/ipsec.h
+++ b/
examples/ipsec-secgw/ipsec.h
@@
-191,7
+191,7
@@
ipsec_metadata_size(void)
static inline struct ipsec_mbuf_metadata *
get_priv(struct rte_mbuf *m)
{
- return
RTE_PTR_ADD(m, sizeof(struct rte_mbuf)
);
+ return
rte_mbuf_to_priv(m
);
}
static inline void *