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 D5C1C41CE2; Sun, 19 Feb 2023 18:50:48 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 4A97042D51; Sun, 19 Feb 2023 18:50:27 +0100 (CET) Received: from mail-pj1-f48.google.com (mail-pj1-f48.google.com [209.85.216.48]) by mails.dpdk.org (Postfix) with ESMTP id C08E942D39 for ; Sun, 19 Feb 2023 18:50:21 +0100 (CET) Received: by mail-pj1-f48.google.com with SMTP id a5-20020a17090a70c500b00236679bc70cso1452675pjm.4 for ; Sun, 19 Feb 2023 09:50:21 -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=rPOmrWNR8RsYVm/iYms+qdvTa1NzkQXHkzdjmQQi7OJKks0K7HxSbYXznsIMgBEySy tQRjbcJwXkDw8tEzTz3TgLq1aZE8/5WAL1FrWfmQH/Ov7OAJyzRhxRX7Bb5sYbS2r3HY zPlMgRLVt2fTfXktyVEnQ9BGrnZ2b6O2zvK0BqY95myom/NFM8/HyGUj6SSfXE7+knbT zh9U6LQ/MsiPiEuKXq+dt+LucLymBG4lf4tklgAvFN2BOr40u2khe5xBqtWWW/173slj ajat/UfgRz67TXTereRcNY7HIi9k2aiYX0nx0caNwh9JOpCUfq4DfzDcEXvglvdKi9mm v5Ww== 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=V1nI6gLKzBPC3JttQXL3sAPuygCpsEwIKcCIqFaQqQdwzCs+NbRBJgrpJuODHVFqbK KpLjYOSjcIOV1wBsJsgX8k6UjmwHhrg11lw1CYpfqKKBG1qpijcwZzaIi6BOStAZfBqz d6zvKCKJLSH4fbrdSFkAidrUbXlL/7FZvTVJ83iRCAJK/STueXvs6q05+wLoQQJqsoMw D7AqqKoY369uH0MBZ+296KsCMSyQL3ul/dSncCSQrWN0LAiSYeN3rsJjCPyXU8xV4Wuk onWRYgQJbO4EhQgHUNRQAwaW5AJIvjdKmA/6ORC6OLmAYa938BNgF0hxFn8oTDot9oey FfAw== X-Gm-Message-State: AO0yUKWiYSehqaRoJBIOK+jqhn2WTH0/A5xw3jmk1aoiSZ1QNrspwVX4 Iqi2n/cxyRbXfwVixzX+zNGERRta+WvjPnqL4FI= X-Google-Smtp-Source: AK7set9SpT/Dmb4esqwOJtcx0fZKfDkq9Wul+ZBIsgFpyLVOYQcXjqjF8ByyUwQDDix4Badbh+N/dg== X-Received: by 2002:a17:903:2289:b0:19b:33c0:4091 with SMTP id b9-20020a170903228900b0019b33c04091mr1593457plh.52.1676829020625; Sun, 19 Feb 2023 09:50:20 -0800 (PST) Received: from hermes.local (204-195-120-218.wavecable.com. [204.195.120.218]) by smtp.gmail.com with ESMTPSA id a13-20020a170902b58d00b001991e4e0bdcsm6238408pls.233.2023.02.19.09.50.19 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 19 Feb 2023 09:50:20 -0800 (PST) From: Stephen Hemminger To: dev@dpdk.org Cc: Stephen Hemminger , Tyler Retzlaff , Konstantin Ananyev Subject: [PATCH v3 5/8] ip_frag: enable build on Windows Date: Sun, 19 Feb 2023 09:50:10 -0800 Message-Id: <20230219175013.10057-6-stephen@networkplumber.org> X-Mailer: git-send-email 2.39.1 In-Reply-To: <20230219175013.10057-1-stephen@networkplumber.org> References: <20230207001937.875608-1-stephen@networkplumber.org> <20230219175013.10057-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