From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-pd0-f170.google.com (mail-pd0-f170.google.com [209.85.192.170]) by dpdk.org (Postfix) with ESMTP id 21F773238 for ; Fri, 27 Mar 2015 09:39:28 +0100 (CET) Received: by pdbcz9 with SMTP id cz9so89864154pdb.3 for ; Fri, 27 Mar 2015 01:39:27 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=WoHnPzxnd0P2v4SoLVtdUiCRUacN/nWx3bByihfMe58=; b=PkMH85XTqKOH1Tv0WtPdKX5IO9ArouHUrc9ARkZcUUFfMTCfiiEd2GnsKDhnuS7kaq 6j+/5BB+B58qXocKlXhn2Ltg8N0VpfBJmLLvYFAvKDJna4n+naNl5QMPykDQ4zGEOJZK ageoVkpUlYAqTEoyq6O7Bw+H+VUwT5AxzNOfIXgvBgWx833fN4gjTyurz/E9hswMzMNQ oFca8XNRBK/j1kmAduoTpXZ7mRDWd+wDZQ63Fr/SVXO3+07PVhH7jV2YWy8U2e+u+QU7 xfajqVadMN9i+IhxjKD1kXjfNACACZGIs/KGUJTA8FEZvHbR5ji6PuGvfCifYmkkKBhx 0Hxw== X-Gm-Message-State: ALoCoQmjjD7/4VeDFBotULAjaugATriapn4EtawbOzBTKf9QTBV9f7O/WQtvPBSwQtgaMORRx53p X-Received: by 10.70.1.75 with SMTP id 11mr33564818pdk.147.1427445567399; Fri, 27 Mar 2015 01:39:27 -0700 (PDT) Received: from localhost.localdomain (napt.igel.co.jp. [219.106.231.132]) by mx.google.com with ESMTPSA id fz1sm1396671pbb.12.2015.03.27.01.39.25 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 27 Mar 2015 01:39:26 -0700 (PDT) From: Tetsuya Mukawa To: dev@dpdk.org Date: Fri, 27 Mar 2015 17:39:08 +0900 Message-Id: <1427445553-3151-1-git-send-email-mukawa@igel.co.jp> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1426584645-28828-7-git-send-email-mukawa@igel.co.jp> References: <1426584645-28828-7-git-send-email-mukawa@igel.co.jp> Subject: [dpdk-dev] [PATCH v3 0/5] Clean up pci uio implementations X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 27 Mar 2015 08:39:28 -0000 This patch set cleans up pci uio implementation. These clean up are for consolidating pci uio implementation of linuxapp and bsdapp, and moving consolidated functions in eal common. Because of above, this patch set tries to implement linuxapp and bsdapp almost same. Actual consolidations will be done later patch set. PATCH v3 changes: - Squash patches related with pci_map_resource(). - Free maps[].path to easy to understand. (Thanks to Iremonger, Bernard) - Close fds opened in this function. - Remove unused path variable from mapped_pci_resource structure. PATCH v2 changes: - Move 'if-condition' to later patch series. - Fix memory leaks of path. - Fix typos. (Thanks to David Marchand) - Fix commit title and body. - Fix pci_map_resource() to handle MAP_FAILED. (Thanks to Iremonger, Bernard) Changes: - This patch set is derived from below. "[PATCH v2] eal: Port Hotplug support for BSD" - Set cfg_fd as -1, when cfg_fd is closed. (Thanks to Iremonger, Bernard) - Remove needless coding style fixings. - Fix coding style of if-else condition. (Thanks to Richardson, Bruce) Tetsuya Mukawa (5): eal: Fix coding style of eal_pci.c and eal_pci_uio.c eal: Close file descriptor of uio configuration eal: Fix memory leaks and needless increment of pci_map_addr eal/bsdapp: Change names of pci related data structure eal: Fix uio mapping differences between linuxapp and bsdapp lib/librte_eal/bsdapp/eal/eal_pci.c | 166 +++++++++++++++++------------ lib/librte_eal/linuxapp/eal/eal_pci_init.h | 1 - lib/librte_eal/linuxapp/eal/eal_pci_uio.c | 91 +++++++++------- 3 files changed, 154 insertions(+), 104 deletions(-) -- 1.9.1