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 6DBADA0C47; Wed, 3 Nov 2021 19:15:24 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id E849040E0F; Wed, 3 Nov 2021 19:15:23 +0100 (CET) Received: from mail-pl1-f180.google.com (mail-pl1-f180.google.com [209.85.214.180]) by mails.dpdk.org (Postfix) with ESMTP id B310D40689 for ; Wed, 3 Nov 2021 19:15:22 +0100 (CET) Received: by mail-pl1-f180.google.com with SMTP id t11so3005137plq.11 for ; Wed, 03 Nov 2021 11:15:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20210112.gappssmtp.com; s=20210112; h=date:from:to:cc:subject:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=mOyr0AYQbz1uI5cv0G7UtA1/c4piozLE+m6ff9Lbwao=; b=RTJjRiiTmFXdUO4d8BX2Uny7UBELYG0qC93SzaDGorBeNfpgW2L5I1vBUsy/A6jxMW MAthwFw9ePD0pGDhDeXfKacxoBMZAIu6QWdFrHAKhfOYYmQTNzpwBdhQw8sw+KM1SWPL 20XtPbJ772xRsivMOfxrkiVvcD5OZD/3IVqxz/JKclTEBpzhOI/L/fFKwSTJCyKvMU53 LohJHQmWdRSKJrrRqxPlCL6ZsnEh9Ayn5rIf+7JxvqphRNiV3o7x+2dVNpainlaQM2tw yr0weSzTE6novNF3xIhBBVTVwpV3HUo4kk2QFx5CKIw9B07QxVSSsdw6K7bsE0w2l8t5 TEMw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:cc:subject:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=mOyr0AYQbz1uI5cv0G7UtA1/c4piozLE+m6ff9Lbwao=; b=f0Svv9KuBjd4HLo4LJRUBMxTR0ByaE6QYzfPnxWb6w2LZ+7OyxQBDfHMi6DDvm8155 p6trPCrUFZLIw9evb41Dw0dAEyNRVc14L8wllxlsjxCHtCwY2/oj4f7O7tKAdok/9cqH qzPqAbdWWJvg64ufAcw5pqzpxQaogMNCC2v9EiYunFBqcgDKeCJV7i7jqxtpSYFRsr8i EfbS2JAAbyXxfxOsBDp9K+nDepYTb4JMsn6IYRzcKT7SeJOR7hqpXBeQzFaV8zkJQNPq lJ0tW5vRaYoFvu72b9AfBYvM0m5cE0SQkFxgphFOvaaGQeqRR8TvFp7xte8iJpYXDC1d 61zw== X-Gm-Message-State: AOAM531xq2h4pkEiP9fNGJErYitlZ8WKGniTktSQEQZPaQm1SXZNslGc 0M1wnvXi/BNLAMFay2H+f/Lu7w== X-Google-Smtp-Source: ABdhPJya4MQZj/6lCwxYD01ASOazySzCEzkQyrPHXErJKm4kRE2HnAllwgyzgnE6eb1jxMhFtpeCjw== X-Received: by 2002:a17:90b:1c81:: with SMTP id oo1mr16223244pjb.97.1635963321810; Wed, 03 Nov 2021 11:15:21 -0700 (PDT) Received: from hermes.local (204-195-33-123.wavecable.com. [204.195.33.123]) by smtp.gmail.com with ESMTPSA id y4sm3217689pfi.178.2021.11.03.11.15.20 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 03 Nov 2021 11:15:21 -0700 (PDT) Date: Wed, 3 Nov 2021 11:15:18 -0700 From: Stephen Hemminger To: Cc: Message-ID: <20211103111518.2bb9b21f@hermes.local> In-Reply-To: <20211104020128.13165-2-eagostini@nvidia.com> References: <20211005224905.13505-1-eagostini@nvidia.com> <20211104020128.13165-1-eagostini@nvidia.com> <20211104020128.13165-2-eagostini@nvidia.com> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Subject: Re: [dpdk-dev] [PATCH v2 1/1] gpu/cuda: introduce CUDA driver 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 Thu, 4 Nov 2021 02:01:28 +0000 wrote: > + > +#define CUDA_MAX_ALLOCATION_NUM 512 > + > +#define GPU_PAGE_SHIFT 16 > +#define GPU_PAGE_SIZE (1UL << GPU_PAGE_SHIFT) > + > +RTE_LOG_REGISTER_DEFAULT(gpu_logtype, NOTICE); Use static before this RTE_LOG_REGISTER_DEFAULT. You don't need to export gpu_log_type as global do you? > +struct mem_entry *mem_alloc_list_head = NULL; > +struct mem_entry *mem_alloc_list_tail = NULL; > +uint32_t mem_alloc_list_last_elem = 0; These should be static since specific to this driver.