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 0AB7FA09E0; Sat, 14 Nov 2020 23:22:04 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id ACD75C8A6; Sat, 14 Nov 2020 23:22:01 +0100 (CET) Received: from mellanox.co.il (mail-il-dmz.mellanox.com [193.47.165.129]) by dpdk.org (Postfix) with ESMTP id 983BFC87A for ; Sat, 14 Nov 2020 23:21:59 +0100 (CET) Received: from Internal Mail-Server by MTLPINE1 (envelope-from talshn@nvidia.com) with SMTP; 15 Nov 2020 00:21:58 +0200 Received: from nvidia.com (l-wincomp04-vm.mtl.labs.mlnx [10.237.1.5]) by labmailer.mlnx (8.13.8/8.13.8) with ESMTP id 0AEMLwBJ027471; Sun, 15 Nov 2020 00:21:58 +0200 From: Tal Shnaiderman To: dev@dpdk.org Cc: thomas@monjalon.net, dmitry.kozliuk@gmail.com, navasile@linux.microsoft.com, dmitrym@microsoft.com, pallavi.kadam@intel.com Date: Sun, 15 Nov 2020 00:21:29 +0200 Message-Id: <20201114222129.15760-1-talshn@nvidia.com> X-Mailer: git-send-email 2.16.1.windows.4 In-Reply-To: <20201114211156.17196-1-talshn@nvidia.com> References: <20201114211156.17196-1-talshn@nvidia.com> Subject: [dpdk-dev] [PATCH v2] eal/windows: definition for ETOOMANYREFS errno 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" The ETOOMANYREFS errno is missing from the Windows build. it is used in initialization of flow error structures. The commit will define it with the same error code used by WSAETOOMANYREFS. Signed-off-by: Tal Shnaiderman --- v2: log message fix, apply errno to both Windows builds and remove dependency on winsock2.h [DmitryK] --- --- lib/librte_eal/windows/include/rte_os.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/librte_eal/windows/include/rte_os.h b/lib/librte_eal/windows/include/rte_os.h index 569ed92d51..8300ea483a 100644 --- a/lib/librte_eal/windows/include/rte_os.h +++ b/lib/librte_eal/windows/include/rte_os.h @@ -51,6 +51,8 @@ extern "C" { /* as in */ typedef long long ssize_t; +#define ETOOMANYREFS 10059 /* WSAETOOMANYREFS */ + #ifndef RTE_TOOLCHAIN_GCC static inline int -- 2.16.1.windows.4