From mboxrd@z Thu Jan 1 00:00:00 1970 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) Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailout.nyi.internal (Postfix) with ESMTP id 80F3E22005; Tue, 25 Apr 2017 05:30:33 -0400 (EDT) Received: from frontend2 ([10.202.2.161]) by compute1.internal (MEProxy); Tue, 25 Apr 2017 05:30:33 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=monjalon.net; h= cc:content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-sender :x-me-sender:x-sasl-enc:x-sasl-enc; s=mesmtp; bh=r6Y8bFgrEMMxGYg ww/98TSNA+vBRmRgL3uIYJt9CeZM=; b=JPmSUD3eycQoQkq59w4gVRhj3tkih7C tFFyhNbGnzeE/M4I7P1/JUPWFKHNDdHvLikKqNhs812rQZ5KpXWk1reeKXnoud3I pdQmfHxyBJol2YjmXO4tJbra+eifcFIjXArLbBOWgfjAWM8Fr1RCZI7Mvum6oc3v gYoh5raBfpIM= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-sender:x-me-sender:x-sasl-enc:x-sasl-enc; s= fm1; bh=r6Y8bFgrEMMxGYgww/98TSNA+vBRmRgL3uIYJt9CeZM=; b=jWUY2txq noEA5ilpl5VGjzHhpn1fNGQ2Jtdaua4rA0cxUxm2c+wGreiolDHimwlaeh+S11KR sSvlpsW57nChh0CXsmG/Xefh4t94MGps2Xgzer0bcal5qBkxmUnkdBv7JMJpzzpk Ofk2jXRAbgG/p72ajoELg/sjBluzt2CVyFe/Zp3a/kgAQdm+yMeBHE8N/PR/u8aj rxB+3i4k3Cc7kY7Xz4ektDEsm5gyYkw0z+4BtsRw16OGQRfpBK4LqA89FJr+bPOW k6adGxHfezoDy/Kfnta+bp45bYhG59KakCL03RVQdnG1xoIczVldTi8IgIONBUsA 228iKn8jJ7oNkg== X-ME-Sender: X-Sasl-enc: hr+OlwwWkYggndV0ZL5bnsrHB8ga063vjG3Zr8JWLL9U 1493112633 Received: from xps.localnet (184.203.134.77.rev.sfr.net [77.134.203.184]) by mail.messagingengine.com (Postfix) with ESMTPA id 4333B248B4; Tue, 25 Apr 2017 05:30:33 -0400 (EDT) From: Thomas Monjalon To: Jerin Jacob , gprathyusha@caviumnetworks.com Cc: dev@dpdk.org, ferruh.yigit@intel.com Date: Tue, 25 Apr 2017 11:30:32 +0200 Message-ID: <1610572.RF2RvmXMRj@xps> In-Reply-To: <1490191892-10396-1-git-send-email-jerin.jacob@caviumnetworks.com> References: <1490191892-10396-1-git-send-email-jerin.jacob@caviumnetworks.com> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" Subject: Re: [dpdk-dev] [PATCH 0/7] dpdk-devbind.py refactor X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 25 Apr 2017 09:30:34 -0000 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