From patchwork Tue Oct 5 17:02:49 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: William Tu X-Patchwork-Id: 100535 X-Patchwork-Delegate: thomas@monjalon.net 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 36390A0C4C; Tue, 5 Oct 2021 19:03:30 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id BF5A04140B; Tue, 5 Oct 2021 19:03:22 +0200 (CEST) Received: from mail-pl1-f170.google.com (mail-pl1-f170.google.com [209.85.214.170]) by mails.dpdk.org (Postfix) with ESMTP id 1DF2A413DD for ; Tue, 5 Oct 2021 19:03:21 +0200 (CEST) Received: by mail-pl1-f170.google.com with SMTP id j4so2748400plx.4 for ; Tue, 05 Oct 2021 10:03:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=s0IlS3PurWK1BGbo4FzQpZOwN7bEGE4cmb/O8DbIMdE=; b=fRBBhieYhaLA/iH5ANNGyU8umffBdJKpxZb0DCfnFzQtmhDc4uw3FrQ4LarfZumvA5 aDMjyJMCsPz8YocQJps0LXMmz/SAFw8oSxoh6JuXbD17dN27P3oQ/JMGVPdU3e5m1MFy shLyiRiiwi1ThYCPk7yKLZjgDupBSBiL/5RvzstjgrDh9nsuwBQTqbmolrcBy/ElfEW0 JZj1bHsgpD85OKce81iqNKMeftsF0hy6629QshFrnIzud0EJc5ixhlSBDVkBD9Rlm5hU KP/VvcEFsrdz/plI4aOP8rKQhZGw7gwpk80Fg9pHj03CxpooZAeT9djtvYTcCjSTEeOO kDcA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=s0IlS3PurWK1BGbo4FzQpZOwN7bEGE4cmb/O8DbIMdE=; b=GqPRiBDtHbyFsLJQwR6QDbyFE+HdLfd5bZQu+V96cBi0A0UaC9NxmS0gkVj2uktK9C SNACfz3l1Dr2k+uFZjRxU/agxpQ8lydL5gV6tLixfPE4vdlHGb8RR0NBFcJeVByGRf7L 9JoUJ1VPLAdMaD9m2AeZocIuGJdqR+0U1aL6WfH3QyET6jhFPvr+dTvlxKzyw6kZDwBK 5L+5SkT6xg8RiqpfaftQ5rDNR3Tv0c6blNaB5q5nUZYwk00Nw1zJjpM9okt5SNpLuRof xj2gRXTsdxj/fBdJKBSJ1ZbOkFELFiZZpBYGZWYSm/3ST2iPm0TgHyqCKNbvOEa/t4aT FhJw== X-Gm-Message-State: AOAM5330H4Zk4oq/BQhZdw/e72hl2iJrvQjEA6g6pVaf7COlh0Buhtk+ AuRBx9vFv8eXzpanpjQdvwkTS9FkMFc= X-Google-Smtp-Source: ABdhPJxveAlY2J0bfqE+JmT9oXNHlY3vBW7z8lCFEre9Qt+fqB4p1pRgADCzaBUgiPuwPXUBdnI//w== X-Received: by 2002:a17:90a:8b8d:: with SMTP id z13mr5147705pjn.214.1633453399953; Tue, 05 Oct 2021 10:03:19 -0700 (PDT) Received: from localhost.localdomain (ec2-44-237-21-18.us-west-2.compute.amazonaws.com. [44.237.21.18]) by smtp.gmail.com with ESMTPSA id p18sm17987861pgk.28.2021.10.05.10.03.18 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 05 Oct 2021 10:03:19 -0700 (PDT) From: William Tu To: dev@dpdk.org Cc: Tal Shnaiderman , Dmitry.Kozliuk@gmail.com, Akhil Goyal Date: Tue, 5 Oct 2021 17:02:49 +0000 Message-Id: <20211005170252.7-2-u9012063@gmail.com> X-Mailer: git-send-email 2.33.0.windows.2 In-Reply-To: <20211005170252.7-1-u9012063@gmail.com> References: <20211002003344.594-1-u9012063@gmail.com> <20211005170252.7-1-u9012063@gmail.com> MIME-Version: 1.0 Subject: [dpdk-dev] [PATCH v4 1/4] security: use the net library for IP structs 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 Sender: "dev" From: Tal Shnaiderman Remove the netinet includes and replaces them with rte_ip.h to support the in_addr/in6_addr structs on all operating systems. Signed-off-by: Tal Shnaiderman Acked-by: Akhil Goyal Acked-by: William Tu --- lib/net/rte_ip.h | 1 + lib/security/meson.build | 2 +- lib/security/rte_security.h | 5 +---- 3 files changed, 3 insertions(+), 5 deletions(-) diff --git a/lib/net/rte_ip.h b/lib/net/rte_ip.h index 05948b69b7..bbd8650962 100644 --- a/lib/net/rte_ip.h +++ b/lib/net/rte_ip.h @@ -25,6 +25,7 @@ #include #include #include +#include #endif #include diff --git a/lib/security/meson.build b/lib/security/meson.build index 5679c8b5c2..1034a7a299 100644 --- a/lib/security/meson.build +++ b/lib/security/meson.build @@ -3,4 +3,4 @@ sources = files('rte_security.c') headers = files('rte_security.h', 'rte_security_driver.h') -deps += ['mempool', 'cryptodev'] +deps += ['mempool', 'cryptodev', 'net'] diff --git a/lib/security/rte_security.h b/lib/security/rte_security.h index a10c9b5f00..2013e65e49 100644 --- a/lib/security/rte_security.h +++ b/lib/security/rte_security.h @@ -19,13 +19,10 @@ extern "C" { #include -#include -#include -#include - #include #include #include +#include #include #include #include