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 CAFB1A0524; Wed, 2 Jun 2021 22:48:42 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 4CD184069F; Wed, 2 Jun 2021 22:48:42 +0200 (CEST) Received: from wout5-smtp.messagingengine.com (wout5-smtp.messagingengine.com [64.147.123.21]) by mails.dpdk.org (Postfix) with ESMTP id BEC4140689 for ; Wed, 2 Jun 2021 22:48:40 +0200 (CEST) Received: from compute2.internal (compute2.nyi.internal [10.202.2.42]) by mailout.west.internal (Postfix) with ESMTP id 867BACAE; Wed, 2 Jun 2021 16:48:39 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute2.internal (MEProxy); Wed, 02 Jun 2021 16:48:39 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=monjalon.net; h= from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding:content-type; s=fm1; bh= wmWS12obYG3NkV0xiJtdFb1x6javQX+20y51AjeHbsM=; b=s/PSjyIu4vrqjJ3j NCrtx+MNcoTcpP/o1RrYLyhy+po76ZdjhoydrIiCgO4tdrQ1m8jDRZDBom1A5uQD +/ogAG5eYdW4PQ1oju5bZUhKVHE2twoEetB7frtJKXvfmqbgfBpW9iWL1fc8OcC+ EWtfUA2TRBXaHb22Vm4Vkap4Hu527y8IaT8edyH+5gJbCJ8YiVWmSZAwf6z9wOjh lWQiWn1jzk7ZgPO7FWZ9qkFrgkWh9sYZb7J/1drqBKdiEuaKdgVmpTqCrLLpErCN 9ikITfXoMjmf8fz1kJYB3TNT6KD34DV9+IPZeEb5IJcBSIHuA1Pp4e07skWgbcdC E4U5/w== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm2; bh=wmWS12obYG3NkV0xiJtdFb1x6javQX+20y51AjeHb sM=; b=poTggEZY4oCa8yn6Rz20HaUNNZZACu4zhTrgH+QmvR6jDqvXU2JsPzJ3L e7ya0ZLNGzfJX3Cbe8oNhlK+Hu/B/rjEMKFWCkp46W/BybNFTKrH11C8+zZufcFD rS6sUiubxxfy/jToiLXVm2ZTU1yYt9LS0t2zcQuyEfA8Wh3ffd1QAe0VF/maOXZV P+gms1S2aWpePw5+S1p4Uxexzoz+gPAj+9tsb4E9aLFbb7hLDJpuOF94vbwx+1lW Nu8aBLi2/cuzy7Ojpmn5xaSxkMibdlExMDp1KWStB5EzYzSwZoZIq4JhFM3DFzKW rvboA7WncyH0VUwUSVly1jdDvuXNQ== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduledrvdeljedgudehfecutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh necuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmd enucfjughrpefhvffufffkjghfggfgtgesthfuredttddtvdenucfhrhhomhepvfhhohhm rghsucfoohhnjhgrlhhonhcuoehthhhomhgrshesmhhonhhjrghlohhnrdhnvghtqeenuc ggtffrrghtthgvrhhnpedugefgvdefudfftdefgeelgffhueekgfffhfeujedtteeutdej ueeiiedvffegheenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfh hrohhmpehthhhomhgrshesmhhonhhjrghlohhnrdhnvght X-ME-Proxy: Received: by mail.messagingengine.com (Postfix) with ESMTPA; Wed, 2 Jun 2021 16:48:38 -0400 (EDT) From: Thomas Monjalon To: Stephen Hemminger Cc: dev@dpdk.org, Elena Agostini Date: Wed, 02 Jun 2021 22:48:37 +0200 Message-ID: <1998152.PATUndFXU9@thomas> In-Reply-To: <20210602134624.177d19ff@hermes.local> References: <20210602203531.2288645-1-thomas@monjalon.net> <20210602134624.177d19ff@hermes.local> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" Subject: Re: [dpdk-dev] [PATCH] gpudev: introduce memory API 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" 02/06/2021 22:46, Stephen Hemminger: > On Wed, 2 Jun 2021 22:35:31 +0200 > Thomas Monjalon wrote: > > > +/** Store a list of info for a given GPU. */ > > +struct rte_gpu_info { > > + /** GPU device ID. */ > > + uint16_t gpu_id; > > + /** Unique identifier name. */ > > + char name[RTE_GPU_NAME_MAX_LEN]; > > + /** Total memory available on device. */ > > + size_t total_memory; > > + /** Total processors available on device. */ > > + int processor_count; > > Nit: shouldn't processor_count be unsigned. Absolutely yes, thanks for the catch.