Skip to contentSkip to conversation

examples/ipsec-secgw: use ipsec fcn to access private area

PATCH Superseded Dan Gora 1 participant 1 message Jun 7, 2018

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore

Dan Gora

author
#0 lore raw

PATCH 3/4 examples/ipsec-secgw: use ipsec fcn to access private area

In inbound_sa_check(), use the application's get_priv() function to access the private area in the mbuf.

---
 examples/ipsec-secgw/sa.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
examples/ipsec-secgw/sa.c +1 -1
index d9dcc0e06..4ab8e098a 100644
@@ -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);
 }
Signature · 1 line
2.17.0.582.gccdcbd54c4