From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-pa0-f52.google.com (mail-pa0-f52.google.com [209.85.220.52]) by dpdk.org (Postfix) with ESMTP id 0A4DB9AAC for ; Tue, 24 Mar 2015 05:18:52 +0100 (CET) Received: by pagv19 with SMTP id v19so37810242pag.2 for ; Mon, 23 Mar 2015 21:18:51 -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=6Cvhg28Cn+73f1xyV1fX1EjrK7k+IivlTnvIrI3EJzk=; b=A3QxAEuqCIF5QildyBNrD1XM//yU2OnRI8my7JX/XU6JqzIFlLqOY4Yk+vJlL1zoWQ L5PH1tpbGKdkRBmRaqFnUiwle41uVjy6hfngK+5iibBmUW0/m2AiPlD52vSuJVzS7nQR G+AX6E0zHCy0s1qK4CMCeqxAG7aed7vknCk2SEbsY9V6BIBT4wntNr9eqL649ZLljPwP 2rDaSix7BQaK2RLqB6DPgI11ntEXFf2aOp6RqH8xUv2O3W8UFPQl5riYKMwPTyFulBIE JpmlakzfyxiF5Nx4AmUl8CfPIPHjct8MdT4nkikU/zgyxfz8VjWRJZQvDAEpacqgiSKP VwUw== X-Gm-Message-State: ALoCoQnUa98sM1KZfVw3KDi3K05tNAlpZJyveoWCsefHi/+RSR+6krjU2JN9oIGhoN5o2goS5Fug X-Received: by 10.70.89.195 with SMTP id bq3mr4236337pdb.138.1427170731360; Mon, 23 Mar 2015 21:18:51 -0700 (PDT) Received: from localhost.localdomain (napt.igel.co.jp. [219.106.231.132]) by mx.google.com with ESMTPSA id jx5sm2482078pbc.85.2015.03.23.21.18.49 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 23 Mar 2015 21:18:50 -0700 (PDT) From: Tetsuya Mukawa To: dev@dpdk.org Date: Tue, 24 Mar 2015 13:18:31 +0900 Message-Id: <1427170717-13879-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 v2 0/6] 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: Tue, 24 Mar 2015 04:18:52 -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 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 (6): 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: Use map_idx in pci_uio_map_resource() of bsdapp to work same as linuxapp eal: Fix interface of pci_map_resource() lib/librte_eal/bsdapp/eal/eal_pci.c | 162 ++++++++++++++++++------------ lib/librte_eal/linuxapp/eal/eal_pci_uio.c | 72 +++++++------ 2 files changed, 136 insertions(+), 98 deletions(-) -- 1.9.1