From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thomas Monjalon Subject: Re: [PATCH v2 2/4] examples/ipsec-secgw: use rte fcn to access private area Date: Fri, 13 Jul 2018 23:10:06 +0200 Message-ID: <2130840.OQuRDGvn39@xps> References: <20180618233618.21729-1-dg@adax.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7Bit Cc: dev@dpdk.org, Remy Horton , Ori Kam , Bruce Richardson , Pablo de Lara , Radu Nicolau , Akhil Goyal , Tomasz Kantecki To: Dan Gora Return-path: Received: from out2-smtp.messagingengine.com (out2-smtp.messagingengine.com [66.111.4.26]) by dpdk.org (Postfix) with ESMTP id 171A3292D for ; Fri, 13 Jul 2018 23:10:11 +0200 (CEST) In-Reply-To: <20180618233618.21729-1-dg@adax.com> List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" 19/06/2018 01:36, Dan Gora: > Update get_priv() to use rte_mbuf_to_priv() to access the private > area in the mbuf. > > Signed-off-by: Dan Gora > --- > - return RTE_PTR_ADD(m, sizeof(struct rte_mbuf)); > + return (ipsec_mbuf_metadata *)rte_mbuf_to_priv(m); The cast is wrong (struct is missing) and useless. I will remove it on apply.