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 AB2FDA0524; Wed, 2 Jun 2021 22:46:35 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 3069E4069F; Wed, 2 Jun 2021 22:46:35 +0200 (CEST) Received: from mail-pj1-f41.google.com (mail-pj1-f41.google.com [209.85.216.41]) by mails.dpdk.org (Postfix) with ESMTP id B8B9A40689 for ; Wed, 2 Jun 2021 22:46:33 +0200 (CEST) Received: by mail-pj1-f41.google.com with SMTP id h16so2349547pjv.2 for ; Wed, 02 Jun 2021 13:46:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20150623.gappssmtp.com; s=20150623; h=date:from:to:cc:subject:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=shzP/mohPhDnrtJT+Fdx07iK/B4xsKJvlDB8PVGUhXo=; b=pNwkeRPd7mqzaCBSdqVEK1AUMfRk821zQ+BBiY1yr8VP3RWE8x1dORJXoRy6ngxn9c zgTFlE+vcjBkmuMg37Rv3LV26VAm+6r8cG0HpTeyad/7PlcL8Hv3fiWxR0mcsS7sBgvr S3v6BiGTHl0WUTS+EIHld1hYlnXgVPZkSNYyIrd9xQdn7Q4Zty9cVCM8wJ73gpgLRSUZ zEIbO5hF1bqScOJwtVjH12Lh6WLdlDyA542hYbr59n+lSD5H5+zZ5zPQ8g+MqbrcYM0P W2qurzv5x6aZSwrHhdzbj0iNahnYyr0q6v6Khl1cfJ2s8GxBCg5ujpAwQPo6g6c0ARdg Sfhw== 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:in-reply-to :references:mime-version:content-transfer-encoding; bh=shzP/mohPhDnrtJT+Fdx07iK/B4xsKJvlDB8PVGUhXo=; b=rLdKtORNeg4BOivhW2hMNBQfGTvdAOTxhSno3M20riOU4MRJYLRKvKeOXbGHeJrdAy gZ/8gP2mB2RoYVGHz83PImouPdJ+aSmuXxUeCU28sVlEMkrvZiqy5CIZHpkcduhBahMP HROhQF9nzgezY1MwwsPG97bVNRprn04aihsQVD0dN6Wry8eRvq2ULAAiQXdDp8YsQxmC jBavh8ZJ5+2r030DstYkLfdZtEUvAOHeKXG9PadAiQcNw6LcitAicdTF7OgRtA2Ll28y WVVfaOb4X7ipSHHfdIn4U9P4ezzjuMt+T0GyUxq5FkzygPTvFm+FfPkaXmaV2wAgyek6 hsiw== X-Gm-Message-State: AOAM533D6Zne9K/0njcPFhDZwfUKYEKVeqXgfnYGPSr4T9uemD4jPCh3 1205J1XslBdSeESjCK/FKrbwJA== X-Google-Smtp-Source: ABdhPJzjvyeGBY2YckW6ahfI0ZdtDEmGHDfcVFj/buCEelkHKau4JWlnBiatfyC4+5dSyBzTxn9EiA== X-Received: by 2002:a17:90a:5995:: with SMTP id l21mr7162715pji.79.1622666792765; Wed, 02 Jun 2021 13:46:32 -0700 (PDT) Received: from hermes.local (76-14-218-44.or.wavecable.com. [76.14.218.44]) by smtp.gmail.com with ESMTPSA id 35sm531700pgq.91.2021.06.02.13.46.31 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 02 Jun 2021 13:46:32 -0700 (PDT) Date: Wed, 2 Jun 2021 13:46:24 -0700 From: Stephen Hemminger To: Thomas Monjalon Cc: dev@dpdk.org, Elena Agostini Message-ID: <20210602134624.177d19ff@hermes.local> In-Reply-To: <20210602203531.2288645-1-thomas@monjalon.net> References: <20210602203531.2288645-1-thomas@monjalon.net> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit 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" 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.