From patchwork Sat Mar 13 02:56:43 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dmitry Kozlyuk X-Patchwork-Id: 89058 X-Patchwork-Delegate: ferruh.yigit@amd.com 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 293E0A0547; Sat, 13 Mar 2021 03:57:13 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 152461608F8; Sat, 13 Mar 2021 03:57:04 +0100 (CET) Received: from mail-lj1-f174.google.com (mail-lj1-f174.google.com [209.85.208.174]) by mails.dpdk.org (Postfix) with ESMTP id CC9E71608ED for ; Sat, 13 Mar 2021 03:57:00 +0100 (CET) Received: by mail-lj1-f174.google.com with SMTP id 16so9718833ljc.11 for ; Fri, 12 Mar 2021 18:57:00 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=lqwnMr/P2x48r+d9m2CH6He/s8TrIijRKN3WYnAxorQ=; b=avGRlmL4Aq6iSf3cru2ZTKU0uLTky8LjqgPhk+k9qTY47XfoZ1VEpVVQjRWOugHOJ3 JT60WM8yRyK+zIxdEaZVH2nmIPhK45vl4Nu/THOo3D1w4Gl8mr2tj/TMl2rRBtDls+SD iqhKniQ0+NaFo2srBkGvYlRtqxqV2FEAG3yy0Z8soZ8IaB7UEGZjEuX2KejVMDmhoHmA RxeaWushELtU3vwXlW3JfiCUoPrcE0T1rr5Odg+CmSovBJ4yrpuy6kJqVkADFRmWgSSW ESb9zoDJ4DawIKzBoe6a796WG80vrCEz/ZAKlDsPX8i0NHdVzUv+GCbLTdA8b4ivVF9C 74yQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=lqwnMr/P2x48r+d9m2CH6He/s8TrIijRKN3WYnAxorQ=; b=jP0kxJ1sgFr0vAABB2yMIcj18EAGVfW3KPbMWuwwKUT/mIT9yJmYjnmGACOZpTamLb CcHvlx/YcFKsr/1ngotn6Kq3wwx5UKSdJdcS0JmE2NCOnu8+2ynCOux/rvsVDxtlbGt1 O2ad7+sXL1+AL3mAyZGtO3zoVKSZFnudlcBBWRldc/SJ8lK2twuO5vcHJrfiqkmmWjn1 IejgRdco4kwwhRhAzjQHdHo5WXtkne5v/dxUpQIEUyADrZ/j3YMdGvtOkzrEr2HdP8AO pEPCtCxemV+eMGoHKvy3iwrTomUA0rbd1+AP6Vu2LAYZVAljo9KIxf1rvVTniu0upsQH xr4Q== X-Gm-Message-State: AOAM532x3lRYBPFsCDEuOILKILpVG4yTBCcFSHC6Pr1SGxRNVt3XituS wjh6JoY/whIUyieEO0ZgEW6lihFbbQFHuFrK X-Google-Smtp-Source: ABdhPJynCS1wSJ9rafJNOGSkwc7tcdnseDwSlI05zLHXPuTu2lUC4V35g3yt8RxbTp9Uut6V5HRpHA== X-Received: by 2002:a2e:9908:: with SMTP id v8mr4234278lji.460.1615604220250; Fri, 12 Mar 2021 18:57:00 -0800 (PST) Received: from localhost.localdomain (broadband-37-110-65-23.ip.moscow.rt.ru. [37.110.65.23]) by smtp.gmail.com with ESMTPSA id a18sm2113290ljj.106.2021.03.12.18.56.59 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 12 Mar 2021 18:56:59 -0800 (PST) From: Dmitry Kozlyuk To: dev@dpdk.org Cc: Pallavi Kadam , Dmitry Malloy , Narcisa Ana Maria Vasile , Tyler Retzlaff , Dmitry Kozlyuk , Thomas Monjalon , Ferruh Yigit , Andrew Rybchenko Date: Sat, 13 Mar 2021 05:56:43 +0300 Message-Id: <20210313025645.6034-3-dmitry.kozliuk@gmail.com> X-Mailer: git-send-email 2.29.2 In-Reply-To: <20210313025645.6034-1-dmitry.kozliuk@gmail.com> References: <20210313015616.29790-1-dmitry.kozliuk@gmail.com> <20210313025645.6034-1-dmitry.kozliuk@gmail.com> MIME-Version: 1.0 Subject: [dpdk-dev] [PATCH v2 2/4] ethdev: remove POSIX dependency 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" Use for IP-related defines instead of POSIX headers. Keep , because it is incorporated into DPDK. Cleanup, group, and sort remaining includes per coding style. Signed-off-by: Dmitry Kozlyuk --- lib/librte_ethdev/rte_ethdev.c | 13 +++++-------- lib/librte_ethdev/rte_ethdev_core.h | 1 - 2 files changed, 5 insertions(+), 9 deletions(-) diff --git a/lib/librte_ethdev/rte_ethdev.c b/lib/librte_ethdev/rte_ethdev.c index 6f514c388b..f363794369 100644 --- a/lib/librte_ethdev/rte_ethdev.c +++ b/lib/librte_ethdev/rte_ethdev.c @@ -2,18 +2,15 @@ * Copyright(c) 2010-2017 Intel Corporation */ -#include -#include #include -#include -#include -#include -#include #include +#include #include #include -#include -#include +#include +#include + +#include #include #include diff --git a/lib/librte_ethdev/rte_ethdev_core.h b/lib/librte_ethdev/rte_ethdev_core.h index 918a34ed1f..4679d948fa 100644 --- a/lib/librte_ethdev/rte_ethdev_core.h +++ b/lib/librte_ethdev/rte_ethdev_core.h @@ -6,7 +6,6 @@ #define _RTE_ETHDEV_CORE_H_ #include -#include /** * @file