From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 645FD45FE4; Mon, 6 Jan 2025 17:45:57 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 03EDF406BB; Mon, 6 Jan 2025 17:45:57 +0100 (CET) Received: from linux.microsoft.com (linux.microsoft.com [13.77.154.182]) by mails.dpdk.org (Postfix) with ESMTP id D2B6140687 for ; Mon, 6 Jan 2025 17:45:54 +0100 (CET) Received: by linux.microsoft.com (Postfix, from userid 1213) id EDCA4206AB90; Mon, 6 Jan 2025 08:45:53 -0800 (PST) DKIM-Filter: OpenDKIM Filter v2.11.0 linux.microsoft.com EDCA4206AB90 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.microsoft.com; s=default; t=1736181953; bh=ZVF8A7JNl96eAz9xfir5a4XWoJhrYZH/TefpuWjiM7k=; h=From:To:Cc:Subject:Date:From; b=PquBLlP/AQNDoLovLPGndPfQ/V7PjUUhZXEnWSWS8mRd50e6qzqS0bbOcHKGVHnc+ uctSxVl7f1QmIKQv1/u065jXZ6gY/qv5JQUEuK3nA4lbtNQ/i/Jpgnon55yqz6VV31 EyyBCp2j7h38lD3cAiYKtLv0QTxz1gS8ws2j6c/Q= From: Andre Muezerie To: Cc: dev@dpdk.org, Andre Muezerie Subject: [PATCH 0/2] compile ipsec on Windows Date: Mon, 6 Jan 2025 08:45:46 -0800 Message-Id: <1736181948-8907-1-git-send-email-andremue@linux.microsoft.com> X-Mailer: git-send-email 1.8.3.1 X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org 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