From mboxrd@z Thu Jan 1 00:00:00 1970 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) Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailout.nyi.internal (Postfix) with ESMTP id 2279621B9E; Fri, 13 Jul 2018 17:10:10 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute1.internal (MEProxy); Fri, 13 Jul 2018 17:10:10 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=monjalon.net; h= cc:content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-sender :x-me-sender:x-sasl-enc; s=mesmtp; bh=1YkNGij/lt50Uoba9FrKO7TUIv pMG6lnXqmSYqVnSi0=; b=o0SjiV+uOElQAOUSj4y+ngZPbdKSpC1KeVjcxjtefO 0YkULEi+ZMTCyqBlEY9LD6YZmMKF1a9cTSlcMyodhDvwlYA1qOgS6yahHewDSufO 3hGirIfiPAvdck5nLGvTPRP6zAVpgxwaft8RxBFAfcj/p0wGmbaPZaMdhaEcVgfG c= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-sender:x-me-sender:x-sasl-enc; s=fm3; bh=1YkNGi j/lt50Uoba9FrKO7TUIvpMG6lnXqmSYqVnSi0=; b=e/TPDj4VFRbwnJSPqqEvHE F+f+LYO7LEncRmNHbJ56wZtlad2xEdJK1lawTtL6o7LOi6XECiswh3FHEZ8gIJul F6ip9BbrMI+/HF/uaEeG/CKjBucgzSr+zcq4ilh8p+rxd9l2sXIPP6LlXhqUw7ao 497AbbFIphZSs04SD5V5SDhOA3nskP63G+pitU9Cs9K66i5Ri1ikrKfJBNGy4jBn 3C4XMe+iSIeZqSl2uqtdAe2+l0p+X2JiRImsc6o3LJUawZV0hQ+E+9OSGlLmDsLq d5M0/1DVLqZjYGpCI3lPyizcVnRaL7OB92bH0gWCYLbzWMqcbUy3w2ni9qwo5htA == X-ME-Proxy: X-ME-Sender: Received: from xps.localnet (184.203.134.77.rev.sfr.net [77.134.203.184]) by mail.messagingengine.com (Postfix) with ESMTPA id 5263610273; Fri, 13 Jul 2018 17:10:08 -0400 (EDT) From: Thomas Monjalon To: Dan Gora Cc: dev@dpdk.org, Remy Horton , Ori Kam , Bruce Richardson , Pablo de Lara , Radu Nicolau , Akhil Goyal , Tomasz Kantecki Date: Fri, 13 Jul 2018 23:10:06 +0200 Message-ID: <2130840.OQuRDGvn39@xps> In-Reply-To: <20180618233618.21729-1-dg@adax.com> References: <20180618233618.21729-1-dg@adax.com> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" Subject: Re: [dpdk-dev] [PATCH v2 2/4] examples/ipsec-secgw: use rte fcn to access private area X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 13 Jul 2018 21:10:11 -0000 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.