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 882D6A0C40; Wed, 28 Apr 2021 14:31:31 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 56E5E40697; Wed, 28 Apr 2021 14:31:31 +0200 (CEST) Received: from mail-wr1-f53.google.com (mail-wr1-f53.google.com [209.85.221.53]) by mails.dpdk.org (Postfix) with ESMTP id DA5BA40147 for ; Wed, 28 Apr 2021 14:31:29 +0200 (CEST) Received: by mail-wr1-f53.google.com with SMTP id e5so34197346wrg.7 for ; Wed, 28 Apr 2021 05:31:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=6wind.com; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=Zz54rDIVqBVaYhPY2xkokCbUC73ed2UzJ9ryBmRzJ/c=; b=FKfvllMayOmA9R5OXbPeIIF59GfzV1Toobxtb+1FPTcbDLGV/XxfbHbj8ezFUZBQKr p0bz/7+UXQ8uoWsTWjb8cpVsPg5+yw3CFPW1fnuW6VHqvKlHhjbZtM9PzS+rwyAIPd0T 9XqYRHa/9jEPlRHR6+H17SVhFoGVkZvEOwZ6mItEtLa6IcQQ34V37ZIEHrLh6tDN8ntY DBvs3ufqWYN/4u71OHANPt2RdWhzzSj49gjR6AJq+ArA7UTgGqNgMRC0/NnB/iRJuhBL Za7JE/1xDbbZyBDsiNV0wTaLZY/jN2Ue8WBiGbaJj1HRc493xYL/0SoKArOAkGpwB+mi ltow== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=Zz54rDIVqBVaYhPY2xkokCbUC73ed2UzJ9ryBmRzJ/c=; b=LhKsrsnNd1cADn0H5+fRBX+9o3Hqt5WGLm3snGFDAbjz2S4T92r25Wwh958vMrgoZY xLhCrVoUOoyf5xMRVTF9Y9OwkBcUTChzZMPWpaqGrVKkQnMI4xiVBkJUpnr6tnR8LLmT XUG8a2C4LZdObwcLmvrXKvh75jjxzaTPekzrlaM9jcZ/KKrzT1SZXnttQlniidmihH4c 1lcExZIyC3P8pHv71ELM3HsrEriL2gNp0THfxVN4+J2PrLJqisDYg3r8SJAodCMd5OcR lAjBWmwShxCA5wOuVvE1SN58BhVySjTG0GAMZywoRzqfAk0GUR/xBgcC5/cH5KLLGwcG wn9w== X-Gm-Message-State: AOAM532e9i8ZTHARBmyIf/RsPFbWuSayo9Dy/wE2FgjMPZ4/Q6bgwXUU SfPPer+lyPaf+rrXmzPykHuVyo99+oJc+Q== X-Google-Smtp-Source: ABdhPJx2XS20ce5tTA2Ej6E2YUReMGBEMauVCeQMfQBup+s7NTjdWRbs3ETGp/ykziCxZnCEGpXRMg== X-Received: by 2002:a5d:43c1:: with SMTP id v1mr17499485wrr.248.1619613089659; Wed, 28 Apr 2021 05:31:29 -0700 (PDT) Received: from 6wind.com ([2a01:e0a:5ac:6460:c065:401d:87eb:9b25]) by smtp.gmail.com with ESMTPSA id j22sm7841109wra.46.2021.04.28.05.31.29 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 28 Apr 2021 05:31:29 -0700 (PDT) Date: Wed, 28 Apr 2021 14:31:28 +0200 From: Olivier Matz To: "Min Hu (Connor)" Cc: dev@dpdk.org, ferruh.yigit@intel.com, thomas@monjalon.net Message-ID: <20210428123128.GV1726@platinum> References: <1619165464-7545-1-git-send-email-humin29@huawei.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1619165464-7545-1-git-send-email-humin29@huawei.com> User-Agent: Mutt/1.10.1 (2018-07-13) Subject: Re: [dpdk-dev] [PATCH] mbuf: check mbuf dyn shared memory validity 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" Hi Chengwen, On Fri, Apr 23, 2021 at 04:11:04PM +0800, Min Hu (Connor) wrote: > From: Chengwen Feng > > Because mbuf dyn shared memory was allocated runtime, so it's > necessary to check validity when dump mbuf dyn info. > > Also this patch adds an error logging when init shared memory fail. > > Fixes: 4958ca3a443a ("mbuf: support dynamic fields and flags") > Cc: stable@dpdk.org > > Signed-off-by: Chengwen Feng > Signed-off-by: Min Hu (Connor) Acked-by: Olivier Matz