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 642AF41C26; Tue, 7 Feb 2023 01:20:13 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 3E22342D42; Tue, 7 Feb 2023 01:19:49 +0100 (CET) Received: from mail-pl1-f170.google.com (mail-pl1-f170.google.com [209.85.214.170]) by mails.dpdk.org (Postfix) with ESMTP id 2917D42B8C for ; Tue, 7 Feb 2023 01:19:45 +0100 (CET) Received: by mail-pl1-f170.google.com with SMTP id i2so577920ple.13 for ; Mon, 06 Feb 2023 16:19:45 -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=FisRYyhuKum0XPDU4JeQ5+9Y+FLnyMFltQ0xOCM8VIp5lOo0DV/UFrJNSeItaPxrNP rWuYRujcAvaV34iYKHb+a/Oecke/5jzCxtYbkYLlj3qPjluwkGH34bsoI6ZXu4Vm1Mz0 qxjCwJccizTf1cewDscoOr4qbJBUHjVmMUIKBrNepDqWrhklJMD+3EoYytP6YC2cP9n+ 4Ff2LmADhgArwPE1sRZ16RurAQkgD9ER8iCge890h/UGHe6o9vXdxo6OAEmWmKwkfhKE r5L0tgAIMtQ64BOPEWckO0w5ck0mt7yLPlElp8DrCGtIkKuVcRoVof5yTXlar81uNSCi ucRw== 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=ELG4JEBdzOc3CtfqoT0kBJHb/vRCoRe+FB4cPGSX3LbHfQovX5QGvWE0Y7HZOYvAKo cBe0zQcaViaHg+J4G3PSKEfJBfF8GHbI4/KmwIrh59sd8EXwqddPOk/J0DpqE6XATYEu C61EInci5IyxmklrB9Bxn0UirNQrGZ5ISHggdQN4P6lrQUh0xuL+A8QwFHbVwhh3O/VE 5DnBPwwrtGmtKFo54ml4LrXME7TRJ237QnXrdNFG89cj/p0tp5VtgutpXw4cw1XPhbU2 WtDo6tQwc18zDGWcWC3uUwgPudr/HQncEFE701JOuxNa9n+DmykcDIsqKVB8nH3oIhrQ TXhw== X-Gm-Message-State: AO0yUKUmy0LbmWgiCGHjI2ZTvMejrROs0H8Fitd159Vsq4kXA+cmSg2L NaXpo6KwI837wJhQxriNRn6uJkc0Z+8NHCaoD9A= X-Google-Smtp-Source: AK7set90SMPZG/6vYv0oNNLACvpHZFTfyP6ZaVQFzkiRPNBXVpUMZXeAQaMLpmDMb2O0BKeQSHssRw== X-Received: by 2002:a05:6a20:199b:b0:be:9142:737a with SMTP id bz27-20020a056a20199b00b000be9142737amr761271pzb.56.1675729184118; Mon, 06 Feb 2023 16:19:44 -0800 (PST) Received: from hermes.local (204-195-120-218.wavecable.com. [204.195.120.218]) by smtp.gmail.com with ESMTPSA id o11-20020a637e4b000000b0046ff3634a78sm6617393pgn.71.2023.02.06.16.19.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 06 Feb 2023 16:19:43 -0800 (PST) From: Stephen Hemminger To: dev@dpdk.org Cc: Stephen Hemminger , Tyler Retzlaff , Konstantin Ananyev Subject: [PATCH v2 5/8] ip_frag: enable build on Windows Date: Mon, 6 Feb 2023 16:19:34 -0800 Message-Id: <20230207001937.875608-6-stephen@networkplumber.org> X-Mailer: git-send-email 2.39.1 In-Reply-To: <20230207001937.875608-1-stephen@networkplumber.org> References: <20221201014440.11896-1-stephen@networkplumber.org> <20230207001937.875608-1-stephen@networkplumber.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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', -- 2.39.1