From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id DFE53A046B for ; Tue, 23 Jul 2019 20:38:46 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 036051C0C1; Tue, 23 Jul 2019 20:38:45 +0200 (CEST) Received: from mail-pg1-f194.google.com (mail-pg1-f194.google.com [209.85.215.194]) by dpdk.org (Postfix) with ESMTP id 2C4F61C0B3 for ; Tue, 23 Jul 2019 20:38:43 +0200 (CEST) Received: by mail-pg1-f194.google.com with SMTP id l21so19843416pgm.3 for ; Tue, 23 Jul 2019 11:38:43 -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=KDj79DyUvnbHp6OU9LtPYGIavTN/OGO37z/a83MuPkY=; b=HZT7Mmtjct7xlgNBNgK71lvaeleqOJZT6GcwGtq2OtFZkrclhoHqXnIlR6PMeYOZZf 6t7Q1To6gxFqcmDDUicPbblfmCY+gdzwD/A6mDfLh2eSJp3DTnXdVYabosmfaTosbwNy ijOCwPLrXdanezsKvaFJragplSnydOBEdT6ZmntaZkIwy2HMemSpiPerRm/LBwsHK6Xl EJnoNTEQmUH0DzvBeev61Xr1upziGFbd7Ngdg/zPoUuyMBcmYuHx6FDZmHj2FuLaoKdV JwYEq8Ct0Afk910NBBdeFm+fj6yGhd7QoDsOPFChK7M9xRwmAqm1Ehx8J0XLdKvOTl2t Y3Fg== 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=KDj79DyUvnbHp6OU9LtPYGIavTN/OGO37z/a83MuPkY=; b=QqCnAzP1M+HRP9uqKILlQdMuSU2E+DClhmbNnVlrzbOIaKnwLwdgKsCnU6iqljEyxh IFFe0wOAHwW6VQuHAVvrHn+Uy172Sop6qusK24hyCg51NgBpx3bU4hH7SM3WshHbCE7o EC7gWYxC3HPoPOd1ezFGN1o4O8k+E6AsXV8s7GGq3rVFGGN/E9fFRuPoX02FukA1EGd2 86HlYbrvJ9dTOZ2aIu/kR17LryD5m5/XH+ygP39bIIbic94z9xcDLO2TxfMtFlg9usYQ ipcI0l1UJ/r3OyTxKPkLiT0j46t2lkCyu43egFVzcX6X/0wbWTHb/ZK3ZRdwqJnaIXVo FvmA== X-Gm-Message-State: APjAAAXeICzu69XneIGtsZFEztwSDb7zpkoaWmGyo574fsE/dGsrYKYN lPXmtsCfHLog0wAbpNuSVhaFoPf9 X-Google-Smtp-Source: APXvYqwS44zRArwNfNovxtZEszdl8bTI/sPdQyfWjILvi55N++I9AJ3VJ4DszBDSU4QruwGU13QzTA== X-Received: by 2002:a63:5048:: with SMTP id q8mr76805460pgl.446.1563907122249; Tue, 23 Jul 2019 11:38:42 -0700 (PDT) Received: from hermes.lan (204-195-22-127.wavecable.com. [204.195.22.127]) by smtp.gmail.com with ESMTPSA id q144sm44053433pfc.103.2019.07.23.11.38.41 (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Tue, 23 Jul 2019 11:38:42 -0700 (PDT) Date: Tue, 23 Jul 2019 11:38:35 -0700 From: Stephen Hemminger To: Anatoly Burakov Cc: dev@dpdk.org, stable@dpdk.org Message-ID: <20190723113835.3cbe5dd5@hermes.lan> In-Reply-To: <6613e2fb817959e0a1230810b2b0c5b93738f1b8.1563887988.git.anatoly.burakov@intel.com> References: <6613e2fb817959e0a1230810b2b0c5b93738f1b8.1563887988.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] eal: fix proc type auto detection 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 Tue, 23 Jul 2019 14:19:53 +0100 Anatoly Burakov wrote: > diff --git a/lib/librte_eal/linux/eal/eal.c b/lib/librte_eal/linux/eal/eal.c > index 34db78753..54feb24a3 100644 > --- a/lib/librte_eal/linux/eal/eal.c > +++ b/lib/librte_eal/linux/eal/eal.c > @@ -83,6 +83,13 @@ static struct flock wr_lock = { > .l_len = sizeof(early_mem_config.memsegs), > }; > > +static struct flock rd_lock = { > + .l_type = F_RDLCK, > + .l_whence = SEEK_SET, > + .l_start = offsetof(struct rte_mem_config, memsegs), > + .l_len = sizeof(early_mem_config.memsegs), > +}; > + Indentation (whitespace) of both flock structures is wrong. Should be single tab.