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 1531EA04FA; Wed, 5 Feb 2020 21:04:28 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 80FB01D147; Wed, 5 Feb 2020 21:04:27 +0100 (CET) Received: from mail-lf1-f66.google.com (mail-lf1-f66.google.com [209.85.167.66]) by dpdk.org (Postfix) with ESMTP id 5DF7E1C2F0 for ; Wed, 5 Feb 2020 21:04:25 +0100 (CET) Received: by mail-lf1-f66.google.com with SMTP id r14so2411120lfm.5 for ; Wed, 05 Feb 2020 12:04:25 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=MKt4lb95XExtt53wij+hEX+7lMFAXsCvXJj7p9boyWM=; b=JxsD/pW2yHx7sU6vDMZTzsw9Dam9Rd+ec3GdUAZErhxtdk27afK9xy3cbuC5g1/hg0 dtvMTJAlRuX1BIgkmqoz8tAsK44uCrVWQ9GOHieSCtttp0EhWGdBlqxBEZggfXe2QfKV SXMDi3VIdhmr4o02iRuI4cekvOlakOPZGM3y3FTg3gpZxnczvBJB7MavaZHJTO/Wva+V iYB9WyiRKE/OZy5rxAGdGGEqCADwLeVVf4MfbHajx+5Bal7Sv/dWQrZE++m+b0PMsukA rznQjgaxlmWA/0djsDZH6hKrvS9rS9/cZYwhOz8jV6NqNPESE987umPmE3tVS0gQzueH EaKA== 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=MKt4lb95XExtt53wij+hEX+7lMFAXsCvXJj7p9boyWM=; b=msq38F0DBnK2nH9KQyk/Tc6Hf8XZeB+y1lp24YJrmJD8GSnJDM3uriXK3p4vp+mh+M jReQy1CxD9MwXr8htoNc9gnS1/6wc4zRI2afTY8y5wg2I9g5DDrNfUZnJL90Ryskz94s I1YiqXAxl7anDNRT3E40eqMqe9q1RQe4xWm/vEHZyNO3ZlYvCldyu8hitQ5pvsnnobnW wPg8zfIOQBbLUEzPnDqRKwAoSKnnZ9o857s+0gnaWlm8sRohXIu/1lxGpihq5D0NA58p ExbZxlrfVH10bkPeC8wd04WQfIiP8wFLV5zzwNyWAinoy250h4b3Tv+d61p8BkzArTtC CNzg== X-Gm-Message-State: APjAAAXn7Ul35Yn0zqH0vBDHlzzDadGnM1cvh3lxwt7hL3NTvqTgZF9r PUn+Hb9O7xf1wG/aikFjUvE= X-Google-Smtp-Source: APXvYqwPUMnE7njnHoYIz/DqWTvE77OvnoOEPsKxCo3Rft2WQ1sbaRjj76ZGVgNIH1NynRbQhFu8IA== X-Received: by 2002:ac2:58c1:: with SMTP id u1mr18920102lfo.57.1580933064075; Wed, 05 Feb 2020 12:04:24 -0800 (PST) Received: from Sovereign (broadband-37-110-65-23.ip.moscow.rt.ru. [37.110.65.23]) by smtp.gmail.com with ESMTPSA id s22sm239779ljm.41.2020.02.05.12.04.23 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 05 Feb 2020 12:04:23 -0800 (PST) Date: Wed, 5 Feb 2020 23:04:22 +0300 From: Dmitry Kozlyuk To: Pallavi Kadam Cc: dev@dpdk.org, thomas@monjalon.net, Harini.Ramakrishnan@microsoft.com, keith.wiles@intel.com, bruce.richardson@intel.com, david.marchand@redhat.com, jerinjacobk@gmail.com, ranjit.menon@intel.com, antara.ganesh.kolar@intel.com Message-ID: <20200205230422.587934de@Sovereign> In-Reply-To: <20200201000406.11060-6-pallavi.kadam@intel.com> References: <20200131000307.10608-1-pallavi.kadam@intel.com> <20200201000406.11060-1-pallavi.kadam@intel.com> <20200201000406.11060-6-pallavi.kadam@intel.com> X-Mailer: Claws Mail 3.17.4 (GTK+ 2.24.32; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Subject: Re: [dpdk-dev] [PATCH v7 5/9] eal: add function to detect process type 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" > +/* Detect if we are a primary or a secondary process */ > +enum rte_proc_type_t > +eal_proc_type_detect(void) > +{ [...] > + OVERLAPPED sOverlapped = { 0 }; > + sOverlapped.Offset = sizeof(*rte_config.mem_config); > + sOverlapped.OffsetHigh = 0; > + > + HANDLE hWinFileHandle = (HANDLE)_get_osfhandle(mem_cfg_fd); [...] Identifiers don't follow naming conventions. -- Dmitry Kozlyuk