From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-pa0-f44.google.com (mail-pa0-f44.google.com [209.85.220.44]) by dpdk.org (Postfix) with ESMTP id D8996C4D0 for ; Thu, 25 Jun 2015 05:20:21 +0200 (CEST) Received: by paceq1 with SMTP id eq1so40912651pac.3 for ; Wed, 24 Jun 2015 20:20:21 -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=r+nzgj54/wdYEBbr9c8bdMQEy8xjFn4SCnqHviwuW3s=; b=UiU3inRnbSDNDDkDtboc4F2B/dLJ6vtL/Vxn9cEluE9cuv/+LyQ9a6nJEKicowIVrb WFQYUSc3uL1GRlc3VabHphc/JDGGd9dRFuCU2oNpqd9lbM0lFP5cH8owY2JtY72HyKfJ RcuNyLEnXmBDdpaKzcYii3A8wjiJgI7+URLmCgninCx5QMYIRWsJCHJaN8N2f3h7Pk5P SSgCte3lbWSlyaGlCdea/2m1qQTeiLkgKD09a50ziyMTuYHF8JIQ0sF9mmn1WhiQ8GFG rtx6oDfkRDeYmJ3Jw9OPvLjtA7IlX+UbueliK4szeAJsE6zP33D65fHhODRYOBrlzBaC t78w== X-Gm-Message-State: ALoCoQk1C0pz/o7Wv4tiBtMztAQiqCuw7PBPXrC75Jb/HMpTsvgADNjeHYdKWwjOH504bQ2oE9R1 X-Received: by 10.70.93.36 with SMTP id cr4mr85230925pdb.68.1435202421278; Wed, 24 Jun 2015 20:20:21 -0700 (PDT) Received: from localhost.localdomain (napt.igel.co.jp. [219.106.231.132]) by mx.google.com with ESMTPSA id tm3sm28482188pac.44.2015.06.24.20.20.19 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 24 Jun 2015 20:20:20 -0700 (PDT) From: Tetsuya Mukawa To: dev@dpdk.org Date: Thu, 25 Jun 2015 12:19:22 +0900 Message-Id: <1435202367-8887-1-git-send-email-mukawa@igel.co.jp> X-Mailer: git-send-email 2.1.4 In-Reply-To: <1432014898-3543-2-git-send-email-mukawa@igel.co.jp> References: <1432014898-3543-2-git-send-email-mukawa@igel.co.jp> Subject: [dpdk-dev] [PATCH v5 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: Thu, 25 Jun 2015 03:20:22 -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 v5 changes: - Rebase to latest master branch. PATCH v4 changes: - Rebase to latest master branch. - Fix bug in pci_uio_map_resource() of BSD code. 'maps[i].path' shouldn't be freed. Fixed in below patch: [PATCH 3/5] eal: Fix memory leaks and needless increment of pci_map_addr - 'path' member of 'struct mapped_pci_resource' should not be removed because it will be used in BSD code. Fixed in below patch: [PATCH 5/5] eal: Fix uio mapping differences between linuxapp and bsdapp 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 | 156 ++++++++++++++++++------------ lib/librte_eal/linuxapp/eal/eal_pci_uio.c | 88 ++++++++++------- 2 files changed, 149 insertions(+), 95 deletions(-) -- 2.1.4