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 B9E30A0C4C for ; Wed, 22 Sep 2021 22:51:25 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id A92AF41215; Wed, 22 Sep 2021 22:51:25 +0200 (CEST) Received: from mga14.intel.com (mga14.intel.com [192.55.52.115]) by mails.dpdk.org (Postfix) with ESMTP id 819D5411A8; Wed, 22 Sep 2021 22:51:22 +0200 (CEST) X-IPAS-Result: =?us-ascii?q?A2E+BADalkth/x0Y/QpagmIChGKWaZp4gXwLAQEBAQEBA?= =?us-ascii?q?QEBCUEEAQGEfYJJJjQJDgECBAEBAQEDAgMBAQEBAQEDAQEBBQEBAQEBAQUCA?= =?us-ascii?q?QEBAQKBIIUvRkABEAGBYyKEIgsBRoFRgnG0IzKBAYgVgWOBOgGJDYUugVVEg?= =?us-ascii?q?RWCc3WEC4EGhTAEiRB7EzCXMot2nHItB4MvgTEGC50EGjGnBAG2TAtXhEeBY?= =?us-ascii?q?YIVMxojgzlRGQ+dEFQ4AgYLAQEDCYhrhEeCRgEB?= IronPort-PHdr: A9a23:cLaxcBdBthWByx4OjdxR8NvllGM+jt7LVj580XLHo4xHfqnrxZn+J kuXvawr0AWRG9yFtLkd1rOempujcFRI2YyGvnEGfc4EfD4+ouJSoTYdBtWYA1bwNv/gYn9yN s1DUFh44yPzahANS47xaFLIv3K98yMZFAnhOgppPOT1HZPZg9iq2+yo9JDffRlEiCCgbb5zL hi6ohjdu8kLjYB/Nqs/1xzFr2dSde9L321oP1WTnxj95se04pFu9jlbtuwi+cBdT6j0Zrw0Q rNEAjsoNWA1/9DrugLYTQST/HscU34ZnQRODgPY8Rz1RJbxsi/9tupgxCmXOND9QL4oVTi+6 apgVRnlgzoFOTEk6mHaksx+grxGrhyvpBJxxIHbbo6OOfZifa7QZ88WSHBdUspNU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xpn/BPuiYfoPTKSXmdJaJZFTT1SAGM0SVqkMqSiQais7XPReHAKtdo23hc9tZk b2huXErIOuA02KldOk1CnFl/y9C0aJu3pDoelqNl8+pwBeXYUW94tp1JmMtBNhNkgp3KTkmG f0wBhU2Sz+q37rthry+DOhqmsknasLsOevzuFk5lXeDUK1gG8yFGfSiCdxwhV/cguhWFPLab tQYLzlmYB3FSxxJJloTTpk5mY9Eg1GlKWYD9A7P//dfD2777gpp25zRLObpRfuYGd9JwBqmr GTX8DGsav0dHJnFodafyVq3mubFmS7TVJoeF/u/7PECqFGe2EQfEBEVE1yhrpGEZlWWVddEL kMdonJ166Y3sk2tUtT5GRa/pRZooyIhZjaZKMVigCnl90Yey1rGboTYZlatsOAbifI= IronPort-HdrOrdr: A9a23:mUG4b6s//EcorZzylECe2Ezv7skDYdV00zEX/kB9WHVpmwKj+f xG+85rsSMc5wxwZJhNo7y90cq7MBbhHOBOkOos1N6ZNWGKhILCFuBfBOXZrAEIXBeUygda78 1dmtBFeb/NMWQ= X-IronPort-AV: E=McAfee;i="6200,9189,10115"; a="223344225" X-IronPort-AV: E=Sophos;i="5.85,315,1624345200"; d="scan'208";a="223344225" Received: from fmsmga003.fm.intel.com ([10.253.24.29]) by fmsmga103.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 22 Sep 2021 13:51:04 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.85,315,1624345200"; d="scan'208";a="550413120" Received: from win-dpdk-pallavi.jf.intel.com (HELO localhost.localdomain) ([10.166.188.111]) by FMSMGA003.fm.intel.com with ESMTP; 22 Sep 2021 13:51:04 -0700 From: Pallavi Kadam To: dev@dpdk.org Cc: stable@dpdk.org, thomas@monjalon.net, ranjit.menon@intel.com, dmitry.kozliuk@gmail.com, talshn@nvidia.com, Narcisa.Vasile@microsoft.com, Vipin.Varghese@intel.com, pallavi.kadam@intel.com Date: Wed, 22 Sep 2021 14:19:06 -0700 Message-Id: <20210922211906.2135-1-pallavi.kadam@intel.com> X-Mailer: git-send-email 2.31.1.windows.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [dpdk-stable] [PATCH] bus/pci: fix numa node return value X-BeenThere: stable@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: patches for DPDK stable branches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: stable-bounces@dpdk.org Sender: "stable" On older CPUs, currently numa_node returns value only for socket 0. Instead, application should be able to make correct decision and also to keep consistent with the Linux code, replace the return value to -1. Fixes: ac7c98d04f2c ("bus/pci: ignore missing NUMA node on Windows") Cc: talshn@nvidia.com Cc: stable@dpdk.org Reported-by: Vipin Varghese Signed-off-by: Pallavi Kadam --- drivers/bus/pci/windows/pci.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/bus/pci/windows/pci.c b/drivers/bus/pci/windows/pci.c index d39a7748b8..343ef6f33b 100644 --- a/drivers/bus/pci/windows/pci.c +++ b/drivers/bus/pci/windows/pci.c @@ -5,6 +5,7 @@ #include #include #include +#include #include "private.h" #include "pci_netuio.h" @@ -243,7 +244,7 @@ get_device_resource_info(HDEVINFO dev_info, DWORD error = GetLastError(); if (error == ERROR_NOT_FOUND) { /* On older CPUs, NUMA is not bound to PCIe locality. */ - dev->device.numa_node = 0; + dev->device.numa_node = SOCKET_ID_ANY; return ERROR_SUCCESS; } RTE_LOG_WIN32_ERR("SetupDiGetDevicePropertyW" -- 2.31.1.windows.1