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 952E6A00C2; Thu, 1 Dec 2022 02:45:13 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id DBA4C42D31; Thu, 1 Dec 2022 02:44:49 +0100 (CET) Received: from mail-pj1-f41.google.com (mail-pj1-f41.google.com [209.85.216.41]) by mails.dpdk.org (Postfix) with ESMTP id 3725B410DC for ; Thu, 1 Dec 2022 02:44:48 +0100 (CET) Received: by mail-pj1-f41.google.com with SMTP id mv18so515374pjb.0 for ; Wed, 30 Nov 2022 17:44:48 -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=+2PM1iTUkud1H+xo+a+WWokIIUeQGXc/jUtpofXLkVw=; b=teER8rq/UtvthaWpJLjcIRk9nLLL4iCmZMiAc0pbsRQW54S+3Y8pY3iq8qlrxranlM eYzVi7Aaq7nRQF2/k+Mcl3nNDk2ab95moO9XVPiKVttZCe++/XstmU/3DJaG/2BppHOp JCXjS1u6swyvxcWFnhP0BlCSj6MvkqAAjGCXgG6gQdOncA6jl+ml5cqd6hVcHY3ViSHj HaGNv/ju+OaFyJFenq2BIkiznNe3qq1NhEBdV8RRD1suuNzXjdBNIFftZr3kpSaBEnsK IZmeVAW+yMxYfPV1gzSL4YBbvVWWybT7SyYm/4rM1ZV2dj6Q2aikXM17W+EM6c+Szg6Y zdig== 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=+2PM1iTUkud1H+xo+a+WWokIIUeQGXc/jUtpofXLkVw=; b=3q08JSmO5O1qs6V4823g+HT+F9cY0HYjY4nsMVUuFeLjweX/7CN3AaTB3L+lxefZMs 0bEmTKHJJgNNMPB3EzR0az0k/ANuO+mt0SSUpINUD47mZ7pAD82efuuJw69vwyoTCRw+ gfuq0woYE3ZDWmdLOBIp38KptDCk1CmIv8BnraCVbG7OBVKRHbG4quYCCbd2qHbvqcDs ZGs8YDVHWvoD4Msbscrs1ysvRVTVb9bKG2mVff0gns1CulzZ6KrVoqU6/8GO/cUgzvjS jKSaVLrn/RAsjdc8N81jRBc17oW68dG2LvZjYzhCkGybZAa9EkwwJ8t6YWIMwyTBFhGk IEzw== X-Gm-Message-State: ANoB5pkg3AGz8upntYullVrBylrSegUk3zYo2evyXDGoUs5nxcUfP2Zv PtFHq2tqffb4DYOGBYieR8oG5s8lFm140k4v X-Google-Smtp-Source: AA0mqf7jDkEx39EhaFawneQfl10ZAJ+CVC41ZEJfTtvh09NuMuVaxAPsC3rn+hCnSYBhdL1AtNLYXg== X-Received: by 2002:a17:90b:507:b0:213:7030:f6c1 with SMTP id r7-20020a17090b050700b002137030f6c1mr72210172pjz.184.1669859087528; Wed, 30 Nov 2022 17:44:47 -0800 (PST) Received: from hermes.local (204-195-120-218.wavecable.com. [204.195.120.218]) by smtp.gmail.com with ESMTPSA id h14-20020a170902680e00b00186ffe62502sm2125014plk.254.2022.11.30.17.44.46 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 30 Nov 2022 17:44:47 -0800 (PST) From: Stephen Hemminger To: dev@dpdk.org Cc: Stephen Hemminger , Konstantin Ananyev Subject: [PATCH 5/8] ip_frag: enable build on Windows Date: Wed, 30 Nov 2022 17:44:36 -0800 Message-Id: <20221201014440.11896-6-stephen@networkplumber.org> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20221201014440.11896-1-stephen@networkplumber.org> References: <20221201014440.11896-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 --- 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.35.1