From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thomas Monjalon Subject: Re: [PATCH 0/7] dpdk-devbind.py refactor Date: Tue, 25 Apr 2017 11:30:32 +0200 Message-ID: <1610572.RF2RvmXMRj@xps> References: <1490191892-10396-1-git-send-email-jerin.jacob@caviumnetworks.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7Bit Cc: dev@dpdk.org, ferruh.yigit@intel.com To: Jerin Jacob , gprathyusha@caviumnetworks.com Return-path: Received: from out4-smtp.messagingengine.com (out4-smtp.messagingengine.com [66.111.4.28]) by dpdk.org (Postfix) with ESMTP id 25D7D2BF5 for ; Tue, 25 Apr 2017 11:30:33 +0200 (CEST) In-Reply-To: <1490191892-10396-1-git-send-email-jerin.jacob@caviumnetworks.com> List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" 22/03/2017 15:11, Jerin Jacob: > This patchset refactor the dpdk-devbind.py script to > > 1) Optimize the bind and status operation delay(It is noticeable > when the system has fairly large number of PCIe device. For instance, > OCTEONTX system has around 170 PCIe devices and it takes around > 19 seconds to bind devices. With this patch it is reduced to less > than one seconds) > > Patch 3 and 4 address this optimization > > 2) There is a lot of common code in NIC and crypto device > to get the device info, display status. > > Patch 1 and 2 create a common code to add new devices > without duplicating the code > > 3) This patch creates the framework to define the DPDK PCI functional > device by specifying the pci attributes like Vendor ID, Device ID, > Sub Vendor ID, Sub Device ID and Class.This enables a flexible way to > add DPDK function devices based on PCI attributes. > > Crypto devices can belong to Encryption class(0x10) or Processor > class(0x0b) based on the vendor preference. > > Using this framework, The above disparity can be encoded in the following > format > > encryption_class = [{'Class': '10', 'Vendor': None, > 'Device': None, 'SVendor': None, 'SDevice': None}] > > intel_processor_class = [{'Class': '0b', 'Vendor': '8086', 'Device': None, > 'SVendor': None, 'SDevice': None}] > > crypto_devices = [encryption_class, intel_processor_class] > > 4) Add eventdev, mempool PCI devices support > > Guduri Prathyusha (7): > usertools: refactor the get NIC and crypto details > usertools: refactor the show status function > usertools: optimize lspci invocation > usertools: use optimized driver override scheme to bind > usertools: define DPDK PCI functional device > usertools: add eventdev PCI functional device > usertools: add mempool PCI functional device Applied, thanks