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 A6E2D41E23; Thu, 9 Mar 2023 22:32:00 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 35BB642C24; Thu, 9 Mar 2023 22:31:39 +0100 (CET) Received: from mail-pl1-f180.google.com (mail-pl1-f180.google.com [209.85.214.180]) by mails.dpdk.org (Postfix) with ESMTP id 1228C41611 for ; Thu, 9 Mar 2023 22:31:36 +0100 (CET) Received: by mail-pl1-f180.google.com with SMTP id i3so3448578plg.6 for ; Thu, 09 Mar 2023 13:31:36 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20210112.gappssmtp.com; s=20210112; t=1678397495; 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=v/dt36NPWWZZ4AlnDFouurL11CojFt/zfwF15tmsEHY=; b=EPes2OcRmR5A9zrPV4VXyvwX0YEF1D9WXAiMXa0y0Xb8XIyfV7eCQGrjzYV6WHl0NN yVh8LiXtFLEulIT3rbhu6sqxgWaoxuhisxRLxhkOpADWR/ishyB0JhnWaMOcPjCYcVId lQm87CDZ6ZEU4Nn7le14XANmgdRKz/TQ9PlrHULnliUrFPIUIOw2cfq3ZfB1UpRSknko RwFQlT5pzeQ2oCLSOfkYgCbbadIlG7sWLqA4Bqo51Wrxx/Lq0th8R3C0vWUxpjNb58G2 reBcLfY+8Dh4nQSwiFnTfJBhYcNHFyz/nOIEwsYv0v68SrKx5QplnG0K0ly5F0KTHJpy xNNg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1678397495; 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=v/dt36NPWWZZ4AlnDFouurL11CojFt/zfwF15tmsEHY=; b=BQbOdFqlw5ELYvEVSerjP/j/Os7EX5JiHQMrATysuzuBlmphVyZl7HPiBy0iwMUSAB qI7uTIvYl0Ydwl5e/hsyxVzpnFsBS7pZtIU2wLAwK0sI+yaRAIhQlAbVRbYW49UQCvRg 4mKkUPWIImz/4O2VW1mJqvL06W3ZiIGDc4i6zv5mRHoOqRSk0a8EVf9AwK0LLwX+uAl0 xVNBlyE9IjIg6UgSBciJv2dk7n5M4G99v+8v3Fmbi9ReBDNUEoLLTLurf8FVkCGJTdyq +GqNqonvyjmmAjizJK0sLIbWfVXEIzoqC1x1RsSEpg/QgTe0hFgA5Y9f/owTMyfh2y1S QWHQ== X-Gm-Message-State: AO0yUKVK9jp5HKpbDyNFxFVF5n7fNOfFCxY9QPsVj5SpA4thE5qIRpyq c3844BQX0d89Meo49AqJpzVmERgTXsNopdnYE8iiVw== X-Google-Smtp-Source: AK7set9RRIV+wgEkb8nYbDlqQ5e9ddl7EJBSo4+9z8fxLN4fJ4WED/yQgr3WmmYCUbnnFs4RMGzjOA== X-Received: by 2002:a05:6a20:6d86:b0:cc:add4:1b60 with SMTP id gl6-20020a056a206d8600b000ccadd41b60mr20414390pzb.53.1678397495015; Thu, 09 Mar 2023 13:31:35 -0800 (PST) Received: from hermes.local (204-195-120-218.wavecable.com. [204.195.120.218]) by smtp.gmail.com with ESMTPSA id q3-20020a63cc43000000b00502e4015ff7sm64225pgi.23.2023.03.09.13.31.34 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 09 Mar 2023 13:31:34 -0800 (PST) From: Stephen Hemminger To: dev@dpdk.org Cc: Stephen Hemminger , Tyler Retzlaff Subject: [PATCH v5 5/9] ip_frag: enable build on Windows Date: Thu, 9 Mar 2023 13:31:24 -0800 Message-Id: <20230309213128.34146-6-stephen@networkplumber.org> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20230309213128.34146-1-stephen@networkplumber.org> References: <20221201014440.11896-1-stephen@networkplumber.org> <20230309213128.34146-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.2