From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-we0-f179.google.com (mail-we0-f179.google.com [74.125.82.179]) by dpdk.org (Postfix) with ESMTP id 2F736312 for ; Fri, 9 May 2014 15:16:02 +0200 (CEST) Received: by mail-we0-f179.google.com with SMTP id q59so3907245wes.38 for ; Fri, 09 May 2014 06:16:08 -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=R3jUl/udrkIjFWbRFr+LsleA62M8EWNYNaZnBce2d9g=; b=JQzt7Doz6jnJzGOvkwkT+YmQfD50OtJrIrR+qd4TGAylMeJGeFuAS6kwD+MZqkm++4 TRilltEyHg0e9jQiB78yQrgSyz3eas6EeLvU5QExR64tCjwLibfU/wqBwN1qFv4wpa0A 675YEMcmEi3RNfzmIpK72hUc3aRwKFDZ1+lwf5DT1jjACv4mgrI8/psNj1PnWGFhKN8n XJijllHKLY++w3gp0nP7bLpGvED+Y1QTlYtV/ytKvHngOUrI52Aqw1KWTPJ6fyM4+cMI ZuuuETrEwjHjxRs+LGxTn3ZsphX+ZFZq/4b6P+wqjNcEGfXCPsJi3FTZ/M5dq9NpcEtk o1CA== X-Gm-Message-State: ALoCoQnThqiGUnSTJIZxVT2lr6zZU6oB14hlQJDS4pl97zcBBdi6bb4JHP/9fyecRjFqy46m5OjK X-Received: by 10.194.203.2 with SMTP id km2mr1745256wjc.72.1399641368369; Fri, 09 May 2014 06:16:08 -0700 (PDT) Received: from alcyon.dev.6wind.com (6wind.net2.nerim.net. [213.41.180.237]) by mx.google.com with ESMTPSA id go1sm5086560wib.7.2014.05.09.06.16.06 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 09 May 2014 06:16:07 -0700 (PDT) From: David Marchand To: dev@dpdk.org Date: Fri, 9 May 2014 15:15:52 +0200 Message-Id: <1399641359-11267-1-git-send-email-david.marchand@6wind.com> X-Mailer: git-send-email 1.7.10.4 Subject: [dpdk-dev] [PATCH v2 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: Fri, 09 May 2014 13:16:02 -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. Changes included in v2: - fix another mem leak noticed by Anatoly Burakov -- David Marchand David Marchand (7): pci: fix potential mem leaks 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