From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga07.intel.com (mga07.intel.com [134.134.136.100]) by dpdk.org (Postfix) with ESMTP id 561611B790 for ; Wed, 7 Feb 2018 10:58:39 +0100 (CET) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga007.fm.intel.com ([10.253.24.52]) by orsmga105.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 07 Feb 2018 01:58:37 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.46,473,1511856000"; d="scan'208";a="15963316" Received: from irvmail001.ir.intel.com ([163.33.26.43]) by fmsmga007.fm.intel.com with ESMTP; 07 Feb 2018 01:58:37 -0800 Received: from sivswdev01.ir.intel.com (sivswdev01.ir.intel.com [10.237.217.45]) by irvmail001.ir.intel.com (8.14.3/8.13.6/MailSET/Hub) with ESMTP id w179wa8X018854 for ; Wed, 7 Feb 2018 09:58:36 GMT Received: from sivswdev01.ir.intel.com (localhost [127.0.0.1]) by sivswdev01.ir.intel.com with ESMTP id w179waCL025911 for ; Wed, 7 Feb 2018 09:58:36 GMT Received: (from aburakov@localhost) by sivswdev01.ir.intel.com with LOCAL id w179waoW025907 for dev@dpdk.org; Wed, 7 Feb 2018 09:58:36 GMT From: Anatoly Burakov To: dev@dpdk.org Date: Wed, 7 Feb 2018 09:58:35 +0000 Message-Id: X-Mailer: git-send-email 1.7.0.7 In-Reply-To: <750e30c6dcc7a22a87df9c56fb824042b1db984f.1517848624.git.anatoly.burakov@intel.com> References: <750e30c6dcc7a22a87df9c56fb824042b1db984f.1517848624.git.anatoly.burakov@intel.com> Subject: [dpdk-dev] [PATCH 18.05 v4] Add function to return number of detected sockets 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: , X-List-Received-Date: Wed, 07 Feb 2018 09:58:39 -0000 This patch is for 18.05 and implements changes referenced in the deprecation notice[1]. (not yet merged as of this writing) This patchset breaks the EAL ABI and bumps its version. This is arguably OK as memory changes will change a lot in EAL and thus likely break ABI anyway. However, two other alternative implementations are possible: 1) local static variable recording number of detected sockets. This is arguably less clean approach, but will not break the ABI and will have relatively little impact on the codebase. 2) keeping ABI compatibility, as shown in v3 of this patch [2]. My preference would be to keep this one. [1] http://dpdk.org/dev/patchwork/patch/33853/ [2] http://dpdk.org/dev/patchwork/patch/34994/ Anatoly Burakov (1): eal: add function to return number of detected sockets lib/librte_eal/bsdapp/eal/Makefile | 2 +- lib/librte_eal/common/eal_common_lcore.c | 37 +++++++++++++++++++++---------- lib/librte_eal/common/include/rte_eal.h | 1 + lib/librte_eal/common/include/rte_lcore.h | 8 +++++++ lib/librte_eal/linuxapp/eal/Makefile | 2 +- lib/librte_eal/rte_eal_version.map | 9 +++++++- 6 files changed, 44 insertions(+), 15 deletions(-) -- 2.7.4