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 58F05A09E5; Tue, 8 Dec 2020 11:06:32 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 0025AC970; Tue, 8 Dec 2020 11:06:18 +0100 (CET) Received: from mail-lj1-f182.google.com (mail-lj1-f182.google.com [209.85.208.182]) by dpdk.org (Postfix) with ESMTP id CACA8C962 for ; Tue, 8 Dec 2020 11:06:16 +0100 (CET) Received: by mail-lj1-f182.google.com with SMTP id j10so18423071lja.5 for ; Tue, 08 Dec 2020 02:06:16 -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=T/NpdfUTaj5Kp3VXbR7cE5JDiFeI/7bWB0voeUJpKmI=; b=i0nxfdyaGwmyEhSeolNGqKtehIg/H4mQ4QCDHmx++CW4LfYWbYxezGOoUaG8fdiz32 n2WUqyxnwr7/uFVGdBn/qifv3XY6IqAItuTnPaVawVQ9KI3zSS9qrAhpS69BAcRbyBVr GI9AuzizKfZr49tmS1PQbsk96U7TW3RZCMS89UjSwGTBeWsJJBa6xnybVaeCMixCmH8A hyjZdIcq2ZwXy9cwqBEJlTkQUBPsEEw0eMnlC/OayNtmfQ6KLqLQTmiOFyJ5uuxZqhS6 5lsSEmIoMnEtDCycgbaBVAgwur6w8omkilpJbS5ChNFOuXKu8WxK9xS5Q8hkZ/jWyiJ7 eqBw== 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=T/NpdfUTaj5Kp3VXbR7cE5JDiFeI/7bWB0voeUJpKmI=; b=K5qhw5e0Ix2kO1wedmW4qDSdhi4ylMmmY5wifNDJxLq3oCApQrhepWZYDZzwi5fiV5 1EOBp5B7rkYOGnpsj4qh+0rzp4MqG7tTN/Iwjwm/Sv7G4PpPKHgC4VR3vjrEhqQcLUHn xj9dvct0sombEeXmvIf1SHUWflwLjF0z01MfhKyuz7qh9KtB0KTrwR5nZ0vkPMgRExME 3jkaLxIWn8Ei0oLWV3GUicmRB1HlqjBmtSgBjuQxDPcqgDy114oyMcNaXBqXAqn7Xig2 WmnArpoSqqOfQG1MIVU1wzf/wo31jU2Zh/bGYqqnhJSDfmZT2sV+VA5yJEy2t+IrZqYA Ohzw== X-Gm-Message-State: AOAM5329w5fFn50au/0njP8R0iizit+hDyixtNdpH0LVmA0vqXBMqBWT c11rOeVgVrKITw0qohnDH5A= X-Google-Smtp-Source: ABdhPJyj4kIjCZj9Os+OL4LHWaLye+y53a9evp9GY3AXPsJR/Rz/Mn8STJNT8soCs1w7Ookd1dXvvQ== X-Received: by 2002:a05:651c:10d4:: with SMTP id l20mr9835431ljn.389.1607421975268; Tue, 08 Dec 2020 02:06:15 -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 1sm3166930lfq.129.2020.12.08.02.06.14 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 08 Dec 2020 02:06:14 -0800 (PST) Date: Tue, 8 Dec 2020 13:06:13 +0300 From: Dmitry Kozlyuk To: Thomas Monjalon Cc: Narcisa Ana Maria Vasile , "dev@dpdk.org" , "Kadam, Pallavi" , "Dmitry Malloy (MESHCHANINOV)" , Omar Cardona , Harini Ramakrishnan , Khoa To , Jie Zhou , Tal Shnaiderman , "ranjit. menon" , Tyler Retzlaff Message-ID: <20201208130613.1fb8d6f8@sovereign> In-Reply-To: <3322289.gH0BhIt9ao@thomas> References: <3322289.gH0BhIt9ao@thomas> X-Mailer: Claws Mail 3.17.6 (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] Importing DATA into the application 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, 08 Dec 2020 08:47:15 +0100, Thomas Monjalon wrote: > 08/12/2020 08:03, Narcisa Ana Maria Vasile: [...] > > However, there are a few issues to consider: > > * We cannot add __declspec(dllimport) when declaring per_lcore__lcore_id for example. We cannot have both __thread and __declspec(dllimport) (can't import thread local variables). > > We cannot export a TLS variable? It looks to be a serious issue. > > > > Have you discussed/run into these issues before? Let me know what you think. > > Curiously it has never been discussed in 2 years of DPDK porting to Windows. > Thanks for raising. Oh, it has been discussed. I've even made a demo about TLS variables in DLLs with GCC, which supports them, albeit with a penalty, and Clang, which doesn't support them. At the time, we agreed that having static linking would be enough as a first step, now we're past it.