From patchwork Sun Feb 19 23:14:12 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stephen Hemminger X-Patchwork-Id: 124160 X-Patchwork-Delegate: david.marchand@redhat.com Return-Path: X-Original-To: patchwork@inbox.dpdk.org Delivered-To: patchwork@inbox.dpdk.org Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 970FC41CE4; Mon, 20 Feb 2023 00:14:50 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id E02E042DAA; Mon, 20 Feb 2023 00:14:32 +0100 (CET) Received: from mail-pl1-f172.google.com (mail-pl1-f172.google.com [209.85.214.172]) by mails.dpdk.org (Postfix) with ESMTP id 5A9FD42D8A for ; Mon, 20 Feb 2023 00:14:25 +0100 (CET) Received: by mail-pl1-f172.google.com with SMTP id w10so1577023ply.11 for ; Sun, 19 Feb 2023 15:14:25 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20210112.gappssmtp.com; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=WGyFr6jmzcgM1aDdQp/EBErjnXov/ZmiUN0fVa/gzjE=; b=LjLGZAIaXzEaYYYQtf3ShQW8dL7vx1dYHRhM+d/3wquVgixga0JPVV58igHN+g/Wr5 QZBPhvclQDYlgcek7j2X6KY7VamC7a6VA7g1UcwAvvY94Tce5GkPVnvPHCStcQ2OnPfA 8kH7EuC2utP4S1VpyHiZstXhMVfluDGm0ue7PFJHnIaaKCKu6IfzCYDi4VwZ62Us7UE/ cyz7FGfm0hxV+V8xdEOpALfD7PAqmViZ+04ur2W8Le82P1jzeHJP00aajoFZl212/TVt LqM32JV3DMHbBSGJQhHIoK8bkBhjab+27p8d7b5bPN6KHfXINeEX20Hs/eedrpgeV6jm NDSQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=WGyFr6jmzcgM1aDdQp/EBErjnXov/ZmiUN0fVa/gzjE=; b=ltabn7/d/wzRADS9ZuyHXGvOl/exJccvKleqbgEyXFOqdWRQa3C1J1x9x4+ZD6nNzw f73eVet/VT2MctquY6zvjEK5VTVT7/Ffde2xk67le01zPDVq45pM57rp7nUjmj41+Whu Mqlzddl+LSde9YYHaxUVEYtMohSLXGPiDzcjX7KNOQShjOHde80ekyZaS1EFw0+EeNCO BEXkO9qMzXUVNnkJWiolPMevwz/4K4Y1+f+4oRBBFzVeDL9YaFl3+ayMgO8i0juoq1Gn phnsVae329DtydCxwMnzNQgdHrwF7Mvgryu9H+Cr0n2cZfvCoeLASN3ZHCP0QPXvyXR+ YBng== X-Gm-Message-State: AO0yUKUGIEMvkssi4N/2vqQxtl7bk/s5USrgv6RLqLefS5vnBCxPhj0B IC+5ICza/lV7q4XlmD1h68xjR4wJGQr5+MdIIFs= X-Google-Smtp-Source: AK7set9hek6pkodVT5kZ2YR9Ptx88wYZCFOOxaD1iEsiVwu4we4nh1dAzi7y1vT3eudlKskzwH9Q2A== X-Received: by 2002:a17:902:ce91:b0:19a:82f0:7b0f with SMTP id f17-20020a170902ce9100b0019a82f07b0fmr1031664plg.30.1676848464346; Sun, 19 Feb 2023 15:14:24 -0800 (PST) Received: from hermes.local (204-195-120-218.wavecable.com. [204.195.120.218]) by smtp.gmail.com with ESMTPSA id l10-20020a170902d34a00b00192fe452e17sm683336plk.162.2023.02.19.15.14.23 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 19 Feb 2023 15:14:23 -0800 (PST) From: Stephen Hemminger To: dev@dpdk.org Cc: Stephen Hemminger , Tyler Retzlaff , Konstantin Ananyev Subject: [PATCH v4 5/9] ip_frag: enable build on Windows Date: Sun, 19 Feb 2023 15:14:12 -0800 Message-Id: <20230219231416.22524-6-stephen@networkplumber.org> X-Mailer: git-send-email 2.39.1 In-Reply-To: <20230219231416.22524-1-stephen@networkplumber.org> References: <20230207001937.875608-1-stephen@networkplumber.org> <20230219231416.22524-1-stephen@networkplumber.org> MIME-Version: 1.0 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 This build works on Windows if sys/queue.h is included. Signed-off-by: Stephen Hemminger Acked-by: Tyler Retzlaff --- app/test/test_ipfrag.c | 12 ------------ lib/ip_frag/ip_frag_common.h | 2 ++ lib/ip_frag/meson.build | 6 ------ 3 files changed, 2 insertions(+), 18 deletions(-) diff --git a/app/test/test_ipfrag.c b/app/test/test_ipfrag.c index 88cc4cdeea8d..402ce361c1a2 100644 --- a/app/test/test_ipfrag.c +++ b/app/test/test_ipfrag.c @@ -10,17 +10,6 @@ #include #include #include - -#ifdef RTE_EXEC_ENV_WINDOWS -static int -test_ipfrag(void) -{ - printf("ipfrag not supported on Windows, skipping test\n"); - return TEST_SKIPPED; -} - -#else - #include #include #include @@ -520,6 +509,5 @@ test_ipfrag(void) return unit_test_suite_runner(&ipfrag_testsuite); } -#endif /* !RTE_EXEC_ENV_WINDOWS */ REGISTER_TEST_COMMAND(ipfrag_autotest, test_ipfrag); diff --git a/lib/ip_frag/ip_frag_common.h b/lib/ip_frag/ip_frag_common.h index 9c0dbdeb6eb9..0f4ad72a90d9 100644 --- a/lib/ip_frag/ip_frag_common.h +++ b/lib/ip_frag/ip_frag_common.h @@ -8,6 +8,8 @@ #include "rte_ip_frag.h" #include "ip_reassembly.h" +#include + /* logging macros. */ #ifdef RTE_LIBRTE_IP_FRAG_DEBUG #define IP_FRAG_LOG(lvl, fmt, args...) RTE_LOG(lvl, USER1, fmt, ##args) diff --git a/lib/ip_frag/meson.build b/lib/ip_frag/meson.build index 3a252bdaf6a4..ea2de09f7528 100644 --- a/lib/ip_frag/meson.build +++ b/lib/ip_frag/meson.build @@ -1,12 +1,6 @@ # SPDX-License-Identifier: BSD-3-Clause # Copyright(c) 2017 Intel Corporation -if is_windows - build = false - reason = 'not supported on Windows' - subdir_done() -endif - sources = files( 'rte_ipv4_fragmentation.c', 'rte_ipv6_fragmentation.c',