[dpdk-dev,2/4] examples/ipsec-secgw: use rte fcn to access private area
Checks
Commit Message
Update get_priv() to use rte_mbuf_to_priv() to access the private
area in the mbuf.
Signed-off-by: Dan Gora <dg@adax.com>
---
examples/ipsec-secgw/ipsec.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
@@ -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 (ipsec_mbuf_metadata *)rte_mbuf_to_priv(m);
}
static inline void *