From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id BE2DEA04B5; Tue, 27 Oct 2020 16:57:23 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 9D1E9AC8D; Tue, 27 Oct 2020 16:57:22 +0100 (CET) Received: from out3-smtp.messagingengine.com (out3-smtp.messagingengine.com [66.111.4.27]) by dpdk.org (Postfix) with ESMTP id 6B6DD72E3 for ; Tue, 27 Oct 2020 16:57:20 +0100 (CET) Received: from compute2.internal (compute2.nyi.internal [10.202.2.42]) by mailout.nyi.internal (Postfix) with ESMTP id 16C3F5C0175; Tue, 27 Oct 2020 11:57:20 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute2.internal (MEProxy); Tue, 27 Oct 2020 11:57:20 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=monjalon.net; h= from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding:content-type; s=fm2; bh= U6jHfHONpAzDKLPTJt80QRcvo364BreKvKwlHX6TMcA=; b=v29EfNdUiau+v16c 8Rh3XVB9aKGj/269Q1qD/aw/B0l3TQ7yFticdka6WW6KOMovuxUHh3OJHe7ih9Se OV8txk4AeeZ8ES6hF63Espo1WToOjOqJi74MemDO6Z8Vo1IXmz8QrFP9Za9XPcwb iaR23AaVq4Jz5Hm6r43fp3C2URZT8qUaMCFU+NUL3T96g1UPhZkkWggIGlWuVcuL SzBjO6UvpZNHfvzXj+5+8g92pYNtQwzTJeGXcn9BZOV/kg930C+QqJta94wBZQbl 5EWtNeWTFO520FGm/ih4Pleue+kq+6yk6a2DpZWi8xeGT0KfeSqtWURk6IH9xEJA U1A08Q== 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-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm1; bh=U6jHfHONpAzDKLPTJt80QRcvo364BreKvKwlHX6TM cA=; b=VwE+L/5umodKD3sUzKx9+KkNfjhwkc2UNlk26xB18hmo+YRFrud2vDECn EXFv9grQTB8hARY/gmBiGjkwqAcOFwLBJ0rXS7Nh5tTAz5y9Yj3bHeb8Ha4xWh29 /1jLXnMtbFJ7B8gIH4Hko2ML0VgfLsXqAgSO5LF9c5OdAkA5tof7Q+WTmV0Yapov dFJnCwj0nZaecu/qVjuKGUl8OA1njCBXMKxFbJf50ghGzFUtVHNRdsnjKVu6AMt0 R73HlefrIZEx50oKqSVHvT6syt7AsestsQYr7s8TKD41Sgl9HIoHqNjiEMfX1lsF vM59KGAKxpgBS/WxdxgSMXbalwBrw== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedujedrkeelgdekvdcutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenuc fjughrpefhvffufffkjghfggfgtgesthfuredttddtvdenucfhrhhomhepvfhhohhmrghs ucfoohhnjhgrlhhonhcuoehthhhomhgrshesmhhonhhjrghlohhnrdhnvghtqeenucggtf frrghtthgvrhhnpedugefgvdefudfftdefgeelgffhueekgfffhfeujedtteeutdejueei iedvffegheenucfkphepjeejrddufeegrddvtdefrddukeegnecuvehluhhsthgvrhfuih iivgeptdenucfrrghrrghmpehmrghilhhfrhhomhepthhhohhmrghssehmohhnjhgrlhho nhdrnhgvth X-ME-Proxy: Received: from xps.localnet (184.203.134.77.rev.sfr.net [77.134.203.184]) by mail.messagingengine.com (Postfix) with ESMTPA id 580F23064680; Tue, 27 Oct 2020 11:57:18 -0400 (EDT) From: Thomas Monjalon To: Nithin Dabilpuram Cc: dev@dpdk.org, ferruh.yigit@intel.com, david.marchand@redhat.com, bruce.richardson@intel.com, olivier.matz@6wind.com, andrew.rybchenko@oktetlabs.ru, akhil.goyal@nxp.com, Pavan Nikhilesh Date: Tue, 27 Oct 2020 16:57:16 +0100 Message-ID: <6053263.1sEcI2TILj@thomas> In-Reply-To: References: <20201026052105.1561859-1-thomas@monjalon.net> <3912863.aCUjeiqxCm@thomas> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" Subject: Re: [dpdk-dev] [PATCH v2 04/15] node: switch IPv4 metadata to dynamic mbuf field 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: , Errors-To: dev-bounces@dpdk.org Sender: "dev" 27/10/2020 16:33, Nithin Dabilpuram: > On Tue, Oct 27, 2020 at 03:33:35PM +0100, Thomas Monjalon wrote: > > 27/10/2020 15:23, Nithin Dabilpuram: > > > On Mon, Oct 26, 2020 at 11:20:02PM +0100, Thomas Monjalon wrote: > > > > The node_mbuf_priv1 was stored in the deprecated mbuf field udata64. > > > > It is moved to a dynamic field in order to allow removal of udata64. > > > > > > > > Signed-off-by: Thomas Monjalon > > > > --- > > > > --- a/lib/librte_node/ip4_lookup.c > > > > +++ b/lib/librte_node/ip4_lookup.c > > > > +int node_mbuf_priv1_dynfield_offset; > > > > + > > > > > > This change doesn't work in secondary as it is process local memory. > > > > Yes that's an issue. > > Can we copy the value when starting a secondary process? > > Currently there is no call back which will be called only in secondary. > > Can you move this value to node->ctx 8'th byte offset ? Node context is of size > 16 bytes and should be sufficient. > Currently first 8 B of node->ctx is used to store that socket's lpm pointer. Please would you be able to do such patch?