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 D37E3A04DD; Wed, 28 Oct 2020 12:51:58 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 230834C94; Wed, 28 Oct 2020 12:51:57 +0100 (CET) Received: from shelob.oktetlabs.ru (shelob.oktetlabs.ru [91.220.146.113]) by dpdk.org (Postfix) with ESMTP id 42CDE1D9E for ; Wed, 28 Oct 2020 12:51:54 +0100 (CET) Received: from [192.168.38.17] (aros.oktetlabs.ru [192.168.38.17]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by shelob.oktetlabs.ru (Postfix) with ESMTPSA id 959D37F50A; Wed, 28 Oct 2020 14:51:52 +0300 (MSK) DKIM-Filter: OpenDKIM Filter v2.11.0 shelob.oktetlabs.ru 959D37F50A DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=oktetlabs.ru; s=default; t=1603885912; bh=PUq9spW0c6njUKlZWsOypAk0owAwZpdC822yywRQ0Zc=; h=Subject:To:Cc:References:From:Date:In-Reply-To; b=uUQdzRktRno2rTnLBvAnoAPxxBRmSdIbCuJ+WEti34rzOmD8X0lHg+UsXIQv7JDaG UYqQ15K4HUSDisQQGSMAJcxA9HUF3Uyo8TTyAl6DWsU5dUrMmU+9dO+B3vij80BYcR Z4dN6xY7GWwxWMEFQcPanx+kDB4PssDX8lcDpY2I= To: Thomas Monjalon , dev@dpdk.org Cc: ferruh.yigit@intel.com, david.marchand@redhat.com, bruce.richardson@intel.com, olivier.matz@6wind.com, akhil.goyal@nxp.com, Nicolas Chautru References: <20201026052105.1561859-1-thomas@monjalon.net> <20201028102640.3191964-1-thomas@monjalon.net> <20201028102640.3191964-14-thomas@monjalon.net> From: Andrew Rybchenko Organization: OKTET Labs Message-ID: Date: Wed, 28 Oct 2020 14:51:52 +0300 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.4.0 MIME-Version: 1.0 In-Reply-To: <20201028102640.3191964-14-thomas@monjalon.net> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Subject: Re: [dpdk-dev] [PATCH v4 13/15] examples/bbdev: switch 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" On 10/28/20 1:26 PM, Thomas Monjalon wrote: > The example used the deprecated mbuf field udata64 as input mbuf pointer. > It is moved to a dynamic field in order to allow removal of udata64. > > Signed-off-by: Thomas Monjalon Reviewed-by: Andrew Rybchenko I like the approach with inline function(s) more than approach with macros. Not sure that get/set is needed. Approach in David's patches looks a bit simpler to me - less duplicated code (i.e. just one function which returns pointer of correct type to a dynamic field and allow to get and set it).