From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM02-SN1-obe.outbound.protection.outlook.com (mail-sn1nam02on0088.outbound.protection.outlook.com [104.47.36.88]) by dpdk.org (Postfix) with ESMTP id 269AC695D for ; Wed, 22 Mar 2017 15:12:06 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=CAVIUMNETWORKS.onmicrosoft.com; s=selector1-cavium-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=jTGcQDBSgvDn8rLx+okDF1VlHUuWc5XTNgz0zjDobAE=; b=VjRqILbbS3eVWSqIwxGm5AVeTIqWCCRMDmQOPe1THYDhuRd5N/5q81gZb/vnAkNmoGULIX3GM8kBtQH1joGdVDlQ1b3Km1WTypbNsqgDrz2OLLcwNaZkA3FwUApm68hEYTTLGa7cK+tpGv7mtRNtvpa4GItbUgXuJL3tdex9BH8= Authentication-Results: dpdk.org; dkim=none (message not signed) header.d=none;dpdk.org; dmarc=none action=none header.from=caviumnetworks.com; Received: from localhost.caveonetworks.com (111.93.218.67) by BLUPR0701MB1714.namprd07.prod.outlook.com (10.163.85.140) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.977.11; Wed, 22 Mar 2017 14:12:01 +0000 From: Jerin Jacob To: dev@dpdk.org Cc: thomas.monjalon@6wind.com, ferruh.yigit@intel.com, gprathyusha@caviumnetworks.com, Jerin Jacob Date: Wed, 22 Mar 2017 19:41:25 +0530 Message-Id: <1490191892-10396-1-git-send-email-jerin.jacob@caviumnetworks.com> X-Mailer: git-send-email 2.5.5 MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [111.93.218.67] X-ClientProxiedBy: MAXPR01CA0061.INDPRD01.PROD.OUTLOOK.COM (10.164.146.161) To BLUPR0701MB1714.namprd07.prod.outlook.com (10.163.85.140) X-MS-Office365-Filtering-Correlation-Id: d816115f-b5f1-465c-66a6-08d4712d6a12 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001); SRVR:BLUPR0701MB1714; X-Microsoft-Exchange-Diagnostics: 1; BLUPR0701MB1714; 3:S9/PWBgWJpEK2dSTuAmUevFVhO2PoCjWRm872J/hwIHmbh8dPQBlM5wt0VvozfNLgIPyK2Y28G+9kcMV2vKrtQk0nHDYdHCgSuUWbQwqAfqOo7zDsXNBT6LaWjyan6w075E30XA/VghjxHMRPUL6SYLroTxKa7H9WoP+pJP9oB7TB3UrEAzH/fIRyhvs7Qt9W9mK5LmBhbdPYFaBCPQ/3EFsAX2VJBiXNEv7GQzgsoQevxbx+zeXsFaDXB7N1HHSF7EeOE3GLyHTCJaEfmo6hg==; 25:w5VBYqwGXH4AtZAKyMHKlRVFHq5aPq0zR9UYAVIquqboKgYo4f39TbWLL6nUSuNnh4yX9KcKBBTagP+bZzPE+mUd0FYbwub2dkdlfaLaB5z9tPvkqTsBPqo6nexX/ISCQUhk6DP+/wigvKKQff2Cv49Bn3y9GIvxIrPyjJKMnyqKWixvlbRwo1QsIopzWtgwJ9ND7BwCnlzZeadceD44WXjG/FIRqzC4vC4p5FAiV3gw+YyyHnY9LPzln77qiaAdzUOVsP6WeUmg+hxLGDmX7w/PX/GX+KkAbTL9GSlGGcVNEDg58NCnH+31tvL7t97DtkLk8vQOXTM8uTwoL7ZftG+A/WCqCnUHhGlx6i1CMy74In/6Tbe0gYJnsO/1HSGO0fLOWN1DrJELpZfvVGQFi4fzVqd2i8o4mWC1rAtSCl3dLxl6lgAbi4ubB5RRGsL2w2IeZtl1OILIu6ql4BmtqA== X-Microsoft-Exchange-Diagnostics: 1; BLUPR0701MB1714; 31:NkaM+kbluhXiVWazATnf4HkNZCbwCe9J6smDHSPuQA6IaLArEigOt8Mb2obijaB/mAfW0OZBl9Q804kK/w2D9FcPcJj8D5vGxBriy1e2hm3Dr2yx1+Fd5jwKDA71THQ06RCzBlDEv72zrh/0cBqULyo/NFrutG7DApd/vSeANDYlGqB3xtYW6BF6IcWT8jfkB3gnWJ/JOkSV/gMo6tmuDzAx5DHhzpx7tZQ1znXPf7M=; 20:yZTvvdxUDxhfvhtCiVCDLxFnoxDeKxBuDHEsZZ3X9JTV0PypLQ7/zD/XtLAkcLtL/2WP3ef7ZNo3+vb9hmGRLUGjTdCIIJ/GFUvSWDpwwS8Tx1DNZuKECFERTRhtUXJxHc56yS06t4+bb/nr+i0r9/5yYBctvrGZQoCl/KOpQV5UUV8i0/cMC64JxgFcUXixV7XfEMnxo/3fbkZwyu1G3dJk9fDlSOSjaUV0wCk7yQVtYjvCxGFN3drPqFrf13wrWrSUoG8PniFjPKWAYfbR1SJkWH7hxLser1oMBjHPbpINg5xohXrS7rM3EpXdskNWe9k5ruB/W8p9w0I3cbgSFrKHQPi5TlHWl4XgMwy7hsJNQQaaIbZPq1XjOlKl+rTDRmgN3Y9b9YYJvz8yDx/lrm0OS+xc75zlPIjx8s26n7Z2HkplQtbvJml1Tb6cgptZuQTjTEbHVHc9OdSnw5KeEHgpnNkvEosYqvm7ZIczkLVD84BqU5NaJgA89vpHO1wf6XPw2uYEhn/OBssjJ/grJG/AfzRpEdxO8Vuauys7zsrqX0Yzt+VCVmtqqyZxfr21TX0fHB1TMkLQso79Y003m4Oq6wb7QkvUEu9hfnYKkdg= X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(6040375)(601004)(2401047)(8121501046)(5005006)(3002001)(10201501046)(6041248)(20161123564025)(20161123555025)(20161123558025)(20161123560025)(20161123562025)(6072148); SRVR:BLUPR0701MB1714; BCL:0; PCL:0; RULEID:; SRVR:BLUPR0701MB1714; X-Microsoft-Exchange-Diagnostics: 1; BLUPR0701MB1714; 4:CgoODNc7591DLAEClWq+nYz+YXLEpudh9buwzW51rx94VUsoq0IoJCL6D5Y3hXf5RlkCRZvfBogRnKHdtT8bfc/6eUqYHYqLDRqAkHKAWz4+i4H/FNpR9At5+tVOOx9W5WhuMpRIQceLULNeXuGbMg+o0+wmk/xSk/wfOlHN2rjeiLOMsPMSIllHHAkKsbszG3iwwEFNRdrog1V9IqtW0vGH+p15zBaX+bodwJ/iaWfiryM6cE8cTcJxEKSM0eBfEGOTwOJEUSdt4paXxftP51QJkWUNftoBrebncn5dJ27PRIr76w+6A/K3c8X9/Addb3z6HKuETCX2VrbgveKglQBDJDYPeQ0jz8cbj7QmCWgAE1ShpTIAERZ+Z9ShJ6cg5by0jADjajTgy7excJ1+WU/StLAajxPepNgGuy+5mTXt/4YfLZlOajezQxryiHHu5vPpfuo/rR/JHOu0zWo9svZbJ7lPrpkRAEroAW0WogLVRRsZkpZTqx2eUzIuKkdbL4K5LzRLs7YkMRXDfxoVmXU8NS1bVXH8B0I6InylDx8etfEQvYdmfJdh8LYmLKQljxl/jsNW3AvMiEgAkQfCHnmkt/k7y+6487qH1dQbEgw= X-Forefront-PRVS: 02543CD7CD X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(4630300001)(6009001)(39450400003)(6486002)(53936002)(4326008)(6506006)(50466002)(48376002)(189998001)(36756003)(25786009)(6512007)(33646002)(53416004)(2906002)(6666003)(42882006)(47776003)(66066001)(6916009)(76506005)(42186005)(38730400002)(107886003)(110136004)(5660300001)(5009440100003)(50226002)(305945005)(575784001)(7736002)(2361001)(3846002)(6116002)(81166006)(2351001)(8676002)(50986999)(5003940100001); DIR:OUT; SFP:1101; SCL:1; SRVR:BLUPR0701MB1714; H:localhost.caveonetworks.com; FPR:; SPF:None; MLV:sfv; LANG:en; X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; BLUPR0701MB1714; 23:Ziq80nEtCa95smh1ehngOS9ybSvo6TApFSrsZxT?= =?us-ascii?Q?bxi/82Nvo+8zsfi8UfN0K19eWaSDVMgwJWBM5SuH+B0/GqBtfqL9YlG1ZYI6?= =?us-ascii?Q?Lais0IcaMx/ffwtDQjGPFcXdQQpILIiY4ugfJRGKzGbylTb4Qj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5wGuHe5dczJ69Ynt0ur+v+aOnsRpeCfo5vI/jstFaEVPFrpcheSj0OvJjSEsgLsQ5Ow== X-OriginatorOrg: caviumnetworks.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 22 Mar 2017 14:12:01.4263 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: BLUPR0701MB1714 Subject: [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: Wed, 22 Mar 2017 14:12:06 -0000 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 usertools/dpdk-devbind.py | 356 +++++++++++++++++++++++++--------------------- 1 file changed, 195 insertions(+), 161 deletions(-) -- 2.5.5