Skip to content

RFC fix import/export MSVC data variables

Tyler Retzlaff dpdk-dev 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest3 patches 1 replyIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3buildtools: ignore exports for MSVCbuildtools/map_to_win.py lib/meson.build+11 -60 replies
2/3eal: import and export data variables for MSVClib/eal/include/meson.build lib/eal/include/rte_common.h lib/eal/include/rte_eal.h +4 more+41 -30 replies
3/3ethdev: import and export data variables for MSVClib/ethdev/meson.build lib/ethdev/rte_ethdev_core.h lib/ethdev/rte_ethdev_export.h +1 more+28 -11 reply

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/3] RFC fix import/export MSVC data variables

MSVC requires that data variables within DPDK to be explicitly exported and when consumed by applications be explicitly imported. Further, MSVC and the Microsoft Linker need additional information when exporting data variables that are thread local storage that cannot be conveyed through the version.map -> exports.def generation. The generation script has been updated to allow data exports to be excluded during a build with MSVC where the intent is to export them via the macros.

This RFC series proposes per-library macro that can be used to mark the data variables for export so that when processed appropriate declaration of import or export is achieved either within the dpdk build or by a consuming application.

I have only supplied an example series that uses the macro on a handful of variables to demonstrate their use, after feedback on the RFC all libs will have whatever method is arrived at applied to exported data variables.

Thanks!

Tyler Retzlaff (3):
buildtools: ignore exports for MSVC
eal: import and export data variables for MSVC
ethdev: import and export data variables for MSVC

 buildtools/map_to_win.py         | 13 +++++++++----
 lib/eal/include/meson.build      |  1 +
 lib/eal/include/rte_common.h     |  8 ++++++++
 lib/eal/include/rte_eal.h        |  2 ++
 lib/eal/include/rte_eal_export.h | 23 +++++++++++++++++++++++
 lib/eal/include/rte_errno.h      |  2 ++
 lib/eal/version.map              |  6 +++---
 lib/ethdev/meson.build           |  1 +
 lib/ethdev/rte_ethdev_core.h     |  3 +++
 lib/ethdev/rte_ethdev_export.h   | 23 +++++++++++++++++++++++
 lib/ethdev/version.map           |  2 +-
 lib/meson.build                  |  6 ++++--
 12 files changed, 80 insertions(+), 10 deletions(-)
 create mode 100644 lib/eal/include/rte_eal_export.h
 create mode 100644 lib/ethdev/rte_ethdev_export.h
Signature · 1 line
1.8.3.1