All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/2] compile ipsec on Windows
@ 2025-01-06 16:45 Andre Muezerie
  2025-01-06 16:45 ` [PATCH 1/2] lib/ipsec: " Andre Muezerie
  2025-01-06 16:45 ` [PATCH 2/2] app/test: enable ipsec-related tests Andre Muezerie
  0 siblings, 2 replies; 6+ messages in thread
From: Andre Muezerie @ 2025-01-06 16:45 UTC (permalink / raw)
  Cc: dev, Andre Muezerie

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


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2025-01-14  1:32 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-01-06 16:45 [PATCH 0/2] compile ipsec on Windows Andre Muezerie
2025-01-06 16:45 ` [PATCH 1/2] lib/ipsec: " Andre Muezerie
2025-01-09 15:31   ` Konstantin Ananyev
2025-01-09 17:27   ` Konstantin Ananyev
2025-01-14  1:32     ` Andre Muezerie
2025-01-06 16:45 ` [PATCH 2/2] app/test: enable ipsec-related tests Andre Muezerie

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.