From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by dpdk.space (Postfix) with ESMTP id 9367AA045E for ; Wed, 29 May 2019 18:41:34 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 64C981B956; Wed, 29 May 2019 18:41:34 +0200 (CEST) Received: from mail-pg1-f196.google.com (mail-pg1-f196.google.com [209.85.215.196]) by dpdk.org (Postfix) with ESMTP id C582D1B956 for ; Wed, 29 May 2019 18:41:33 +0200 (CEST) Received: by mail-pg1-f196.google.com with SMTP id 196so221897pgc.6 for ; Wed, 29 May 2019 09:41: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=Qdo7i+UelTSZoYCvBOY7p20Z4lsaR280hHG3iD3+fdo=; b=b6sHG5lbr2vslW03Y+JWktJryPgCv40ECOKq4arqNv+OYds3TzID4ompvamG5T7ksx zPXOU1/eON/xLcPFjbuqC2+0GAGI61jugGGEKCNlnZ11AcGx/iBq006Ta1wfc4xvqwlA +cGjbEPGbZ2dYYrqaAG99EFEBxPb5twb346o8gOsIOJu3ULQ6AgCZxNKeqGpjQoU2YFz SdhtEgbVDY/EKYh21/A2CgxHL7w44HMSZ2qPyBkGBv6hteED2WhTrhvx4ew2+ylk3OEu MbMrsxdXyXIyufw0FG9DzMSdGQ72YKBBg/Z8txTz3I2px3UwiMQb15w7FNWkGWxFpYt3 2pmQ== 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=Qdo7i+UelTSZoYCvBOY7p20Z4lsaR280hHG3iD3+fdo=; b=sTF16yXu8SsH0AfsNnd9e0Ve8Szu722JUtQccrm5l4LnPIUnUnbWeQzgnZI1BuBzxc rjhhh2lOTJWBVMCkOrtipiC8IwrcWGd0WMtXc5DIYUnm3zadXwr+y4a/ebUpjLJOZxci iyYE1Hf1GJBCzMXNcyDrz2Eqy2cDUhDRtltRB43zey3htAkMw5wXaHPO+QWU1YHe9u7p ACjgq6eZ970Oj4hFJS+DdSlzdCkERWbv+GoPR209r9t7B+KatpAJd9jqg/89p5j1KKtX ekcX47qU0xkM19gMmDEdJo1qyVr5F3FE0fwwfiBbnpzUtQWwk438XiUW8Nq6ApNM/poK eujQ== X-Gm-Message-State: APjAAAWcXG9U3LTWv/jAggq2C+2PDwc92rOh38MCNa33N45ap0XmgZMS YJUeiA4m4VZVNH7VD1zYGhWUVQ== X-Google-Smtp-Source: APXvYqyjf3e4R7YvrrVPIBIFw8SIt63JZqhqV0ZYHTiC1s7s4nThIk3xoRPKRgjbl2ivWOORiSIk8g== X-Received: by 2002:a65:41c5:: with SMTP id b5mr1114523pgq.128.1559148092887; Wed, 29 May 2019 09:41:32 -0700 (PDT) Received: from hermes.lan (204-195-22-127.wavecable.com. [204.195.22.127]) by smtp.gmail.com with ESMTPSA id k14sm33497035pga.5.2019.05.29.09.41.32 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 29 May 2019 09:41:32 -0700 (PDT) Date: Wed, 29 May 2019 09:41:30 -0700 From: Stephen Hemminger To: Anatoly Burakov Cc: dev@dpdk.org, thomas@monjalon.net, david.marchand@redhat.com Message-ID: <20190529094130.2087b323@hermes.lan> In-Reply-To: <6473125811ac8ed499079652b7f3c32907155fc9.1559147228.git.anatoly.burakov@intel.com> References: <6473125811ac8ed499079652b7f3c32907155fc9.1559147228.git.anatoly.burakov@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Subject: Re: [dpdk-dev] [PATCH 01/25] eal: add API to lock/unlock memory hotplug X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 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, 29 May 2019 17:30:47 +0100 Anatoly Burakov wrote: > +rte_eal_mcfg_mem_read_lock(void) > +{ > + struct rte_mem_config *mcfg = rte_eal_get_configuration()->mem_config; > + rte_rwlock_read_lock(&mcfg->memory_hotplug_lock); > +} > + We should also make eal configuration private but that is another battle.