From mboxrd@z Thu Jan 1 00:00:00 1970 From: David Marchand Subject: [PATCH v2 0/7] pci cleanup Date: Fri, 9 May 2014 15:15:52 +0200 Message-ID: <1399641359-11267-1-git-send-email-david.marchand@6wind.com> To: dev-VfR2kkLFssw@public.gmane.org Return-path: List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces-VfR2kkLFssw@public.gmane.org Sender: "dev" 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