[PATCH 0/2] compile ipsec on Windows
Andre Muezerie
andremue at linux.microsoft.com
Mon Jan 6 17:45:46 CET 2025
Removed VLA for compatibility with MSVC (which does not support VLAs).
Used alloca when a constant fixed length that can be used instead is
not known.
Implementation for rte_ipsec_pkt_crypto_group and
rte_ipsec_ses_from_crypto was moved to new file
lib\ipsec\ipsec_group.c because these functions get exported in a
shared library (lib\ipsec\version.map).
Implementation for rte_ipsec_pkt_crypto_prepare and
rte_ipsec_pkt_process was moved to new file lib\ipsec\ipsec.c because
these functions get exported in a shared library
(lib\ipsec\version.map).
Removed logic which was skipping ipsec on Windows.
Andre Muezerie (2):
lib/ipsec: compile ipsec on Windows
app/test: enable ipsec-related tests
app/test/test_ipsec.c | 17 +----
app/test/test_ipsec_perf.c | 13 ----
app/test/test_ipsec_sad.c | 13 ----
app/test/test_security_inline_proto.c | 26 --------
lib/ipsec/esp_inb.c | 57 +++++++++++-----
lib/ipsec/esp_outb.c | 48 ++++++++++----
lib/ipsec/ipsec.c | 19 ++++++
lib/ipsec/ipsec_group.c | 93 +++++++++++++++++++++++++++
lib/ipsec/ipsec_sad.c | 1 +
lib/ipsec/ipsec_telemetry.c | 1 +
lib/ipsec/meson.build | 10 +--
lib/ipsec/misc.h | 10 ++-
lib/ipsec/rte_ipsec.h | 15 ++---
lib/ipsec/rte_ipsec_group.h | 84 ++----------------------
lib/ipsec/sa.c | 4 +-
15 files changed, 210 insertions(+), 201 deletions(-)
create mode 100644 lib/ipsec/ipsec.c
create mode 100644 lib/ipsec/ipsec_group.c
--
2.47.0.vfs.0.3
More information about the dev
mailing list