From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wg0-f45.google.com (mail-wg0-f45.google.com [74.125.82.45]) by dpdk.org (Postfix) with ESMTP id 50A401025 for ; Mon, 28 Apr 2014 15:19:52 +0200 (CEST) Received: by mail-wg0-f45.google.com with SMTP id b13so298697wgh.28 for ; Mon, 28 Apr 2014 06:19:55 -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:subject:date:message-id; bh=wlA4IbCUgWNbsXEF3LcPagNaYO40PM7kpQH/Csvnirk=; b=LkKekKu12zWqglVnps2QW7fexUKCP/3oDAFjOR6nCZz/F/priLHOiKGptdqQAkT+rF 2h4TBsQZbeg7nNZAAIhR9d3CP8OxBnKAYA1zhg7okAbvtBRDjgjVNpqZscy5Soys4aIy uojY/C3+hYa5JwXLxg8AwgbrOXjp6jqnKShx1wnZbTo0Zll5+m48Miz6nMMgwG1t4Asy FdC3an/9AzYoiAOsNCFzX60SBy1eoA4OObIEhbNywwUIr5Tbj/AlQ54CUArph/raWixZ kQVAhJuojE4BZ0q5mNSm99OuLIqycg+nPU4kcc7eI8a/yUQEBEDRoB34oCcxG2B8qdxY D6hw== X-Gm-Message-State: ALoCoQl/mh31YBS9SbdAaJcbd202dCUUMjUWvkk09KXb0CdXtWkZyoC1T60dHdGyexdrEdZfGTEO X-Received: by 10.180.187.225 with SMTP id fv1mr15649485wic.14.1398691195526; Mon, 28 Apr 2014 06:19:55 -0700 (PDT) Received: from alcyon.dev.6wind.com (6wind.net2.nerim.net. [213.41.180.237]) by mx.google.com with ESMTPSA id ej7sm17746555wib.9.2014.04.28.06.19.54 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 28 Apr 2014 06:19:54 -0700 (PDT) From: David Marchand To: dev@dpdk.org Date: Mon, 28 Apr 2014 15:19:40 +0200 Message-Id: <1398691187-4918-1-git-send-email-david.marchand@6wind.com> X-Mailer: git-send-email 1.7.10.4 Subject: [dpdk-dev] [PATCH 0/7] pci cleanup 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: Mon, 28 Apr 2014 13:19:52 -0000 Hello all, Here is an attempt at having an equal implementation in bsd and linux eal_pci.c. It results in following changes : - checks on driver flag in bsd which were missing - remove virtio-uio workaround in linux eal_pci.c - remove deprecated RTE_EAL_UNBIND_PORTS option Along the way, I discovered two small bugs: a mem leak in linux eal_pci.c and a fd leak in both bsd and linux eal_pci.c. -- David Marchand David Marchand (7): pci: fix potential mem leak pci: align bsd implementation on linux pci: remove virtio-uio workaround pci: rework interrupt fd init and fix fd leak pci: pci_switch_module cleanup pci: move RTE_PCI_DRV_FORCE_UNBIND handling out of #ifdef pci: remove deprecated RTE_EAL_UNBIND_PORTS option lib/librte_eal/bsdapp/eal/eal_pci.c | 105 ++++++------ lib/librte_eal/linuxapp/eal/eal_pci.c | 282 +++++---------------------------- lib/librte_pmd_virtio/virtio_ethdev.c | 133 +++++++++++++++- 3 files changed, 218 insertions(+), 302 deletions(-) -- 1.7.10.4