From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 6327BA0C4D; Wed, 13 Oct 2021 10:37:41 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 471EB4116C; Wed, 13 Oct 2021 10:37:41 +0200 (CEST) Received: from mail-108-mta107.mxroute.com (mail-108-mta107.mxroute.com [136.175.108.107]) by mails.dpdk.org (Postfix) with ESMTP id 34A1E41162 for ; Wed, 13 Oct 2021 10:37:39 +0200 (CEST) Received: from filter004.mxroute.com ([149.28.56.236] filter004.mxroute.com) (Authenticated sender: mN4UYu2MZsgR) by mail-108-mta107.mxroute.com (ZoneMTA) with ESMTPSA id 17c78ccb8d40000b55.002 for (version=TLSv1/SSLv3 cipher=ECDHE-RSA-AES128-GCM-SHA256); Wed, 13 Oct 2021 08:37:35 +0000 X-Zone-Loop: f343baa408cecc6f3189eedcf3eacdd60a7596851f79 X-Originating-IP: [149.28.56.236] DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=ashroe.eu; s=x; h=Content-Transfer-Encoding:Content-Type:In-Reply-To:MIME-Version:Date: Message-ID:From:References:Cc:To:Subject:Sender:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=clWlAONL9fy3MFjKptDqYaRCRP7Se+eAR8I1YK5IxYc=; b=kiQZRIKCv7WvCEVZBPwzIMNuLL Aq7v2JhC5tAp92XFzdcUMzRhcF4gUp9pO8hPRi/u6B4YugUhZtGTdzfgfm+ZvXsNzkVGx7H5iFs8A Qkj7TB9CrSM2M3AsHBJsvcRMfxosRqJi0ZqNMGp5upPQ1cGY4rL7LiQWa+IdqYl9PVF45niqXhIIF pK9Onr7m6rsrLV6u4Kk5pb0szs+rmm4/nXGFqDz79gGp8hXpcq4NwbPLphQAHsCTIzbePenW/BP3O RQIYuH3/4dG8+WGvkWvdHzFKtc4SaA7PiuQ3B7ngUAzGcySdNogqsX1JEABnAWJ9GY0aVtmipW6u0 txglL+nw==; To: David Marchand , dev@dpdk.org Cc: thomas@monjalon.net, Olivier Matz , Konstantin Ananyev References: <20211012193957.21972-1-david.marchand@redhat.com> From: "Kinsella, Ray" Message-ID: Date: Wed, 13 Oct 2021 09:37:31 +0100 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101 Thunderbird/78.14.0 MIME-Version: 1.0 In-Reply-To: <20211012193957.21972-1-david.marchand@redhat.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit X-AuthUser: mdr@ashroe.eu X-Zone-Spam-Resolution: no action X-Zone-Spam-Status: No, score=-0.1, required=15, tests=[ARC_NA=0, FROM_HAS_DN=0, TO_DN_SOME=0, MIME_GOOD=-0.1, FROM_EQ_ENVFROM=0, MIME_TRACE=0, RCVD_COUNT_ZERO=0, RCPT_COUNT_FIVE=0, MID_RHS_MATCH_FROM=0, NEURAL_SPAM=0] Subject: Re: [dpdk-dev] [PATCH] mbuf: enforce no option for dynamic fields and flags X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 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 12/10/2021 20:39, David Marchand wrote: > As stated in the API, dynamic field and flags should be created with no > additional flag (simply in the API for future changes). > > Fix the dynamic flag register helper which was not enforcing it and add > unit tests. > > Fixes: 4958ca3a443a ("mbuf: support dynamic fields and flags") > > Signed-off-by: David Marchand > --- > app/test/test_mbuf.c | 18 ++++++++++++++++++ > lib/mbuf/rte_mbuf_dyn.c | 4 ++++ > 2 files changed, 22 insertions(+) Acked-by: Ray Kinsella