[dpdk-dev,3/4] examples/ipsec-secgw: use ipsec fcn to access private area
diff mbox series

Message ID 20180607235634.28023-1-dg@adax.com
State Superseded, archived
Delegated to: Thomas Monjalon
Headers show
  • mbuf: Add new private data area accessor function.
Related show


Context Check Description
ci/Intel-compilation success Compilation OK
ci/checkpatch success coding style OK

Commit Message

Dan Gora June 7, 2018, 11:56 p.m. UTC
In inbound_sa_check(), use the application's get_priv() function to
access the private area in the mbuf.

Signed-off-by: Dan Gora <dg@adax.com>
 examples/ipsec-secgw/sa.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff mbox series

diff --git a/examples/ipsec-secgw/sa.c b/examples/ipsec-secgw/sa.c
index d9dcc0e06..4ab8e098a 100644
--- a/examples/ipsec-secgw/sa.c
+++ b/examples/ipsec-secgw/sa.c
@@ -939,7 +939,7 @@  inbound_sa_check(struct sa_ctx *sa_ctx, struct rte_mbuf *m, uint32_t sa_idx)
 	struct ipsec_mbuf_metadata *priv;
-	priv = RTE_PTR_ADD(m, sizeof(struct rte_mbuf));
+	priv = get_priv(m);
 	return (sa_ctx->sa[sa_idx].spi == priv->sa->spi);