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 200F5A04DD; Wed, 28 Oct 2020 13:55:43 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id EF281CA8F; Wed, 28 Oct 2020 13:55:41 +0100 (CET) Received: from shelob.oktetlabs.ru (shelob.oktetlabs.ru [91.220.146.113]) by dpdk.org (Postfix) with ESMTP id E3225CA87 for ; Wed, 28 Oct 2020 13:55:40 +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)) (No client certificate requested) by shelob.oktetlabs.ru (Postfix) with ESMTPSA id 926EF7F4AC; Wed, 28 Oct 2020 15:55:39 +0300 (MSK) DKIM-Filter: OpenDKIM Filter v2.11.0 shelob.oktetlabs.ru 926EF7F4AC DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=oktetlabs.ru; s=default; t=1603889739; bh=tRFLRdIeAvDMoYWYJdFWx+nUNDa8/GQPLhR4Ffq/ZTw=; h=Subject:To:Cc:References:From:Date:In-Reply-To; b=mWDvkCgbEGaXcfufz3lMfcSLKw0NZ4XassEl/NXUw7yjZf1sZ3ICKsh9ByNbQfJqd F1xyGrF40BHffrvaJ+tD4Qrh7o4oKE9ct3znQtNnaRyHI3pIqueaVcgjKfLdQEa3NY 4vzrMam4OSi2G6a70KYkbeBiLfoxhFCuSGcxRu6E= To: Thomas Monjalon Cc: dev@dpdk.org, 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-14-thomas@monjalon.net> <1714689.AnfboGAeF5@thomas> From: Andrew Rybchenko Organization: OKTET Labs Message-ID: <029dd146-e4cf-84d6-6fb3-d05c52d6f6a5@oktetlabs.ru> Date: Wed, 28 Oct 2020 15:55:39 +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: <1714689.AnfboGAeF5@thomas> 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 3:21 PM, Thomas Monjalon wrote: > 28/10/2020 12:51, Andrew Rybchenko: >> 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). > > Yes I tend to agree with you. > Olivier was asking for more functions, > especially if it has a semantic meaning. > Here get/set has no real added value but I don't have strong opinion, > and I don't think it deserves a respin :) > Agreed.