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 CE13345B04; Thu, 10 Oct 2024 16:52:22 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id BF9C340653; Thu, 10 Oct 2024 16:52:22 +0200 (CEST) Received: from mail-pl1-f173.google.com (mail-pl1-f173.google.com [209.85.214.173]) by mails.dpdk.org (Postfix) with ESMTP id 8CE26402F1 for ; Thu, 10 Oct 2024 16:52:20 +0200 (CEST) Received: by mail-pl1-f173.google.com with SMTP id d9443c01a7336-20c6f492d2dso10068725ad.0 for ; Thu, 10 Oct 2024 07:52:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20230601.gappssmtp.com; s=20230601; t=1728571939; x=1729176739; darn=dpdk.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:subject:cc:to:from:date:from:to:cc:subject:date :message-id:reply-to; bh=jDT1rDxEaCg9qY9m9e7OX6idYfCjCM9R0IId0FEyyOI=; b=xaRpegyyA7lLhej0bjjAs9lmhDWwcav1YCoXQs1/60eIVeKZqaaDT9Fq9dfGbhXohx CvlpYU7G6mgWu59AAwZoTzuLkKwr6jfyAMYFIR5SbLpr3HFWjREbnFyx7keOxwulvqV7 BRNy21t1o7QdWFCW+d2fW0ZyvT0Hi9fF5aD3PAxJFrO7hszF88ZwYqOzoiAlZrqm9u7G zlU/4QzGYYS19jZdk3jPoG8y2ucAwnc51+90c9ebU11FXFkEIKcRyGsItC/Ax4eRH4R4 viXKmxvqXGxKY+h8MhyrjDqgrwEXnGDm/Pv8D/W6HB+uPaHw4oc8hEpE/fsAYaGxyCrO 80ng== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1728571939; x=1729176739; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:subject:cc:to:from:date:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=jDT1rDxEaCg9qY9m9e7OX6idYfCjCM9R0IId0FEyyOI=; b=BxBk4YCEtRpEb/FL2O2FP49SPeDEqxUGQyPnTRHWCzw/gcFlJuQZQzbxw6RzpjxOlp zYRNIbnc3HvuKrJhw4dwDI0VbX0jbkJVcGwbuDSMVii6tR5kZDEhLQvTJYmIdbxcA6pw gC+l4GgSEULU5yQuG6OThV5rLT8F5pL+Ze/G4TTxpRNW+a3zzBGdtj4Sa7U2i/v3zZmq +Je8oI9vB4EvAs7IvkIRhUF3OMP2iDGvgB1ssCJBAb1A1SMLGXJaOZML696x2e/0JnYe 6wXdjMNEW8My8FQg0vhHjLJmz7vF1+kk6FWuTyUMe5YRehP7H6qneh3nGfgDdBf3h68k lTBQ== X-Gm-Message-State: AOJu0YwgPOqCKaw6oyuuBOK7cgZjFrfZIDumIaWLH5BMQg7TgOoFSxq9 tlIdbgO2q1sI2GUjw7hAmtA6BPJAdBW40EK0LAmLK9d7WhGOk/YdJMbsPUp9qg4= X-Google-Smtp-Source: AGHT+IFeL1HioxiKUhdfdWI8rH/BU+Uxfxg1DHAmEzfkT2ROBS1XsmRK9E1qWR3wqE/3K4RUH7JVuQ== X-Received: by 2002:a17:902:cec7:b0:20b:4f95:9335 with SMTP id d9443c01a7336-20c637f77c8mr121561185ad.43.1728571939369; Thu, 10 Oct 2024 07:52:19 -0700 (PDT) Received: from hermes.local (204-195-96-226.wavecable.com. [204.195.96.226]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-20c8c3134c1sm10292495ad.227.2024.10.10.07.52.18 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 10 Oct 2024 07:52:19 -0700 (PDT) Date: Thu, 10 Oct 2024 07:52:17 -0700 From: Stephen Hemminger To: Gagandeep Singh Cc: dev@dpdk.org, Anatoly Burakov , Tyler Retzlaff Subject: Re: [v3 2/2] eal: add total memory size in memory dump APIs Message-ID: <20241010075217.09d732ea@hermes.local> In-Reply-To: <20241010071621.2461383-2-g.singh@nxp.com> References: <20240730110313.2555473-2-g.singh@nxp.com> <20241010071621.2461383-1-g.singh@nxp.com> <20241010071621.2461383-2-g.singh@nxp.com> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit 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 On Thu, 10 Oct 2024 12:46:21 +0530 Gagandeep Singh wrote: > This patch add total memory size dump in memzone and > memsegments dump APIs. > > Signed-off-by: Gagandeep Singh Looks good, and acking it as is. But you could simplify this: + struct memzone_info info; + + memset(&info, 0, sizeof(info)); + info.f = f; As: struct memzone_info info = { .f = f };