From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga03.intel.com (mga03.intel.com [134.134.136.65]) by dpdk.org (Postfix) with ESMTP id 161CF2C5F for ; Wed, 9 Mar 2016 08:27:37 +0100 (CET) Received: from orsmga001.jf.intel.com ([10.7.209.18]) by orsmga103.jf.intel.com with ESMTP; 08 Mar 2016 23:27:36 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.24,310,1455004800"; d="scan'208";a="905752295" Received: from dpdk15.sh.intel.com ([10.239.129.25]) by orsmga001.jf.intel.com with ESMTP; 08 Mar 2016 23:27:35 -0800 From: Huawei Xie To: dev@dpdk.org Date: Tue, 8 Mar 2016 23:33:37 +0800 Message-Id: <1457451223-82306-1-git-send-email-huawei.xie@intel.com> X-Mailer: git-send-email 1.8.1.4 In-Reply-To: <20151222035041.GA7532@pxdev.xzpeter.org> References: <20151222035041.GA7532@pxdev.xzpeter.org> Cc: nikita.troitsky@intel.com Subject: [dpdk-dev] [PATCH v5 0/6] fix the issue that DPDK takes over virtio device blindly 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: Wed, 09 Mar 2016 07:27:38 -0000 v5 changes: Split patches Remove free of mac addr when vtpci_init fails. Will send the fix in a seperate patch. Fail if the virtio device is whitelisted but bound to kernel driver. v4 changes: Rebase as IO port map is moved to EAL. Reword some commit messages. Don't fall back to PORT IO if VFIO/UIO fails. v3 changes: Change log message to tell user that the virtio device is skipped due to it is managed by kernel driver, instead of asking user to unbind it from kernel driver. v2 changes: Remove unnecessary assignment of NULL to dev->data->mac_addrs Ajust one comment's position change LOG level from ERR to INFO Huawei Xie (6): eal: make the comment more accurate eal: set kdrv to RTE_KDRV_NONE if kernel driver isn't managing the device. eal: use new RTE_ARCH_X86 macro for x86 arch eal: simple code rework eal: map IO port only when kernel driver isn't managing the device virtio: return 1 to tell the upper layer we don't take over this device drivers/net/virtio/virtio_ethdev.c | 6 ++++-- drivers/net/virtio/virtio_pci.c | 16 +++++++++++++++- lib/librte_eal/common/eal_common_pci.c | 8 ++++---- lib/librte_eal/linuxapp/eal/eal_pci.c | 22 ++++++++++------------ 4 files changed, 33 insertions(+), 19 deletions(-) -- 1.8.1.4