From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM02-CY1-obe.outbound.protection.outlook.com (mail-cys01nam02on0083.outbound.protection.outlook.com [104.47.37.83]) by dpdk.org (Postfix) with ESMTP id 213C17C95 for ; Thu, 4 May 2017 12:49:21 +0200 (CEST) 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=Z6flIgSGd0Lcp+bAH9TOVxVPLL6BdkGs9tfYX7ANC7M=; b=R3a8Nqx+QW++uB0uuNoN1T2zF1a1xri2ci1JZJQl60WTcknKfMqFZ7XtdtaFYApK6cczo6mdYXOl6qKII6dWjDdG2ro7o/j0RsIwPKCc10J8AwbEXklHso/4GjCRTjJw9zmu1pyFO5qzlJb3D+XHOvc+xi3/k0I6XxkOXq+4W5w= Authentication-Results: dpdk.org; dkim=none (message not signed) header.d=none;dpdk.org; dmarc=none action=none header.from=caviumnetworks.com; Received: from jerin.domain.name (111.93.218.67) by BLUPR0701MB1713.namprd07.prod.outlook.com (10.163.85.14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1061.12; Thu, 4 May 2017 10:49:17 +0000 From: Jerin Jacob To: dev@dpdk.org Cc: thomas@monjalon.net, Guduri Prathyusha Date: Thu, 4 May 2017 16:18:49 +0530 Message-Id: <20170504104850.7404-1-jerin.jacob@caviumnetworks.com> X-Mailer: git-send-email 2.12.2 MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [111.93.218.67] X-ClientProxiedBy: BMXPR01CA0043.INDPRD01.PROD.OUTLOOK.COM (10.174.214.29) To BLUPR0701MB1713.namprd07.prod.outlook.com (10.163.85.14) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 0af83410-856f-4eff-60b7-08d492db376f X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001)(201703131423075)(201703031133081); SRVR:BLUPR0701MB1713; X-Microsoft-Exchange-Diagnostics: 1; BLUPR0701MB1713; 3:8UxxPfVgEwGe6timzIC5Y/1n54fHWhi2jd580PH0eF5EH22d//r38/W02kZ/aKYPvAOzrbblYfzJv+bLY165GjQOxWOWnmbLREEXwVEnLeW2KL+HuRSyoPQpV5gnAqy0kn3wc688h5kv6NRyH68dRtHVtZYkbnvRzCgBaw3HDgGc1tEgugukRFAegKMpsH1UtH3OIlYaz1GMtKckFFu4AagvnQvg/YARg90c+51+oJUNoW+pMVjnoZviZWjiEzTx1tFBHByqhspYrqwrcLGRuUy+6tJpcnbSJSjRVUM0TRmf3AmzFIH5URIhuDwyJtGsW72ADHqUGO/DwJbHzvZoag==; 25:UtOC7nW6eyZjb/iOJ3xWjEY6XoHg3GWRYJESYzD6ZWXekWLI1MgDflJZaQRS6aeLoCTmaQP2RlD1GPm2IKZFZ4MJ9K20deq+ZyMza8U46UYeqfkS5/m5Zk2QykUbYzLhKfaUlsFMyrSoTGtlli0mo1GSCduyyhmkB3+Glqr0P9SdQYgclolqLjJBqwwfupc8KcShY5HNim3B00K00cXyN0H6M0l3RmAQpa7GhyM4ZLZxfLQVsTZnXBazqQ+ER9PVNIdmIXihsKPUjVul5izJ0dfCxWfrSUUCJ6ugSosc1uzK6gi4OWYqnEnZv/ueNepmCvfb+OGXg4m3jsgqILp9lONc+kqJwc1kcAmFuAsTrt3mI3EL3D9yl6pPvrghHvIVvlsLPRkKAl1hp+drKJl44EAoF6ZIZ4Fl10VG4bZY+7Xrpwi+ylfzrv7mWHpp3DEg4ckBffp5+frfw2kTL/1FoA== X-Microsoft-Exchange-Diagnostics: 1; BLUPR0701MB1713; 31:/siTSaquZzQPWoDGiiiQcXItE88NZmm/aeHtsGQ2Z7/RSg+dGPUlo3AWjqiRYk25vSNrIeEbeS+DG5u52Rpxw6/ZBNOvIuqLlMxN6KRV8fYV3U2PFUgYs7JG8XSzGONC8ro+WgIvwHoSVHz7DOa8JvoIrw3DHzj1RefI8l6o84frWIE6GdBMLBJ4p9YurfXWvzK7kUyX3VLFqGITGUgBcR3ZEk/gB7it2XrEjio5U5uuVaS/T7mD0ewfjPSwFCAKJQ+InIt5Q4dwaLVQvvrN6Q==; 20:r5DN+SMOle+hIRGCKBQV9TEDZ0/z9wb/p27q2ZCb8aMS2TWy+i+FmdZyh1Pt7YBAp0Gre3zKYD3Q/aFBV8evJQQVhQb/wq4elnQruES9wL+9ki4LHOyjfU+Kw7NzH5fEoOHVX59+gdgy9kL6kjzAqn2Y9RecAQ1FjlLihtfUs9vkwwhL3y/14X6lFa3NcGHa1sHRyZhkgFAErh4SgXAZ4/AGwEL3iVkcXQTkcvVHS9HHA7paBfGiRzY2mjtu1a07+LWz1FXeBV+TOn0D322+eBAOre1vNNKJ6KJXAxX4p41lWmNoU3b8EkA7ltDMu4h0LzGqUSRng0o0na5Qw0EkgPiAV7zP0CbV+izYLKDcRDP2w1xm//rJAaAEhGu441GXzYoox/FjDIbIkT8XuWM7fRcWwT0HS3VbnMzTAyEDnxhypD5jhxtrF/Aj/HSvPGCHemCuNWsXRqYVAlgTl3H34L5nVj5AC5QiIA4wmskHDTqTvKRH9Ww6MO2DuOSUkMstDRhk9VyTwWYVB0lEIlLK0+jroMe13Io7XP9eMQ6h5ZyjzinLf4DWNwcMTEkZepxDLpmI+dgEAnNhYLI6MtGW3HqrzyEN56ar8VVaXWc5b1E= X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(6040450)(601004)(2401047)(8121501046)(5005006)(93006095)(10201501046)(3002001)(6041248)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(20161123560025)(20161123555025)(20161123562025)(20161123564025)(20161123558100)(6072148); SRVR:BLUPR0701MB1713; BCL:0; PCL:0; RULEID:; SRVR:BLUPR0701MB1713; X-Microsoft-Exchange-Diagnostics: 1; BLUPR0701MB1713; 4:68XbyxLXwKcUsZ1howrE0UOtJx2LCl9qOyoIvUz8H4VQjJfiP0UBk/eaYXltMfVZpZQApCxmLUsTQv4G/h5j0mZRn19VCBAWTQZdMrJyoVISve+oO3qAEgemBfMka9uLD7K8nD3+zYHhOIqJSEYaDp1m2lbFYrcDaBWgtmcS5F0egln3GVnzgN0vAXsmWpSRQmgAh7vsetVyvyBD5MLfQ4MxAFkEccP4L4mjR2/2eK+Ub31DsIP7wAHVj0xsUETKDPPzVG4NK/YzNUFZGuFNZpbW6YmbtP5c4GdcHnErekzqIcCRVdPmmw2Htb6Mjr7E6RvYJt0pH/MHOz6/xiSa7mvU3/4bjA/f+cqe4q0MjmJA8+/MUZn1TWgbDpgof65WnnIr2c/PSJrZdAO6Sol5nJ6IGsxZ1cL8yEZiaosZ7hg+B87FsoWWUfW/dr5veFOVL8XoDTVBLjHTNWDmtV8NLYWx70zKddxiSUqtBR71l0+8iep/zrL7bnTXSffRug76U9NzJsf6w1nuP+WhaGN4eNL/6+XXQ9w0/vgzvXr+nwpAhTwyUUDdkS0v8vuYHFDbpcI+v0mN1H9WYw+/ZRcZ+ceExB+eVEJgRKjGVI2vB2Z76HzUD3eJYrfDHi2hnTxaDaImfNs0fleECfXftSTONw5e+0MONHRwLAESVw5/npD/j/djhdwikpAR7P39Gn1PUWRaEiaxT3rqi0RXlZQeidhfN5SIzRt9VNGl1SJPckD6LpFA5u0J8OeSDR6G2Q9IWX30SQ1lOVlF9Osh5ReTOQ== X-Forefront-PRVS: 02973C87BC X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(4630300001)(6009001)(39850400002)(39840400002)(39410400002)(39400400002)(39450400003)(50986999)(33646002)(53416004)(42186005)(2351001)(2361001)(50466002)(48376002)(47776003)(66066001)(5009440100003)(3846002)(6116002)(2906002)(189998001)(53936002)(4326008)(50226002)(81166006)(25786009)(6512007)(6506006)(6486002)(8676002)(1076002)(36756003)(107886003)(110136004)(478600001)(305945005)(7736002)(5660300001)(42882006)(6916009)(38730400002)(6666003)(5003940100001); DIR:OUT; SFP:1101; SCL:1; SRVR:BLUPR0701MB1713; H:jerin.domain.name; FPR:; SPF:None; MLV:sfv; LANG:en; X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; BLUPR0701MB1713; 23:nySfHIpl/bgp/h1k371HKbAxq4tP0ffW15T+LH0?= =?us-ascii?Q?IhnMvkflwKU/Bxo+gWUSAlQJuYAvZriIAkbM8ArgUBQGOn5CDp277hIr9UDt?= =?us-ascii?Q?N+wxjdt2L3ieqoskIUcWZbVHyB7COrMH5R7by6iCyksbuznuCaTLlvlE/or8?= =?us-ascii?Q?v4mhePtAf+zkV+VCOx2JKYUfQFRpt+MG+dbuQ463vTJ9a2yWqXP9mIOdQlom?= =?us-ascii?Q?dWvBrHlzAqRQNzuuMq1MHycpXthtk1ZiJdMZ8rRRo61ehHGzkI+HAQNJoWKc?= =?us-ascii?Q?1RTJwH7ANY0S7HJADjFUZ3zpMf5L+UU04Ef1DgkpnGLEC2h/jmdbl7NZgfmT?= =?us-ascii?Q?oUZlVhiozXlgjTe4mK/ZbyWMiKyCDhwdc121tGBvCUAm03AZLLpx4XdSZmj6?= =?us-ascii?Q?J19QXN4x9osHyzh8IFjXrGFAAjRzTFPKgz3iWZcWSI6HsynDAwSy6JmEXfrk?= =?us-ascii?Q?xuSgu9rVEyhOKl2Gfy4vCOuGWJk0AB0JnbZGYRnrLoZAcuJCe9zyuNRxK4yJ?= =?us-ascii?Q?V0aog4JFXONhGPomcqCdBXRMh/3KNn93fRfe5vTPvZTwed41smdqD1oLzuTw?= =?us-ascii?Q?c5TiSO7qmFok4MKOaWgMn8HZC2vX5qNoMIVxNwuqOYujifoszeKDsMrhUifK?= =?us-ascii?Q?bRnAUCXUfpj31yYyGgXpkn299Ibi/xD85Er/K8bMu+pvOh/9BSDjNlKMlEs/?= =?us-ascii?Q?0/WMlRgj6iqmRxTxBpRA0r5k50mdzQSyQDHv9h/txY2MsxtpjwLTq1bKo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Ez7kCqr4HyoX/VCiN4/MjvqHBZJuuEmt9xJr57KnYrMmKM3YDOVOlX4GOZ3mkRlw45SFn4v6kjzuOOwQN+eWP9MAmWXhJY5JnFCifKWGvbImOHDTfMrkOOzyOe2S9GwGUUjg==; 24:b8q1C9eSHZNv+K0bG45Ukm6d/aDyUwECQ5y1u65ZsH3T3tRRPNBFq8fiELtse58BGq/QkLe02ArQW+E7EQO9Im2MbLxlWpg+S37MlRLqzP0= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; BLUPR0701MB1713; 7:hBaT4ExuKpSFYA03Jim3EWPusOzxRQyRxkykIx+2B+vVf2rZjPwdJvDsdzkFmjLeW8x+oi9lRjbmffo2we6j1/WrGvVfxpM7NZGktGbDdHFp2hO1+VK3EykBC/32XQhKSYknmHNyRiKUIaFovNHiGAtAsoLKRVfxefgmTjKNO10bBY6Nez6yNOZVlkSfRGEjEM4RMhXsYFOaUR+7v1aFLDCWKOS5BgJmCxcJvGhTZHLb/gskE+D7gABoVx6hJtmLd0sdjNXR4K6zC4V1tZLxFo7fd3X2hSmEv/XYwlCDfBkj3Rh7QCC6PActlS08LjupMCen/JYm/AHqbqkxPX0eRQ== X-OriginatorOrg: caviumnetworks.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 04 May 2017 10:49:17.5847 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: BLUPR0701MB1713 Subject: [dpdk-dev] [PATCH 1/2] usertools: fix adding devices of same class 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: Thu, 04 May 2017 10:49:21 -0000 From: Guduri Prathyusha If multiple devices of same class are added to a device type, only devices that match first device listed in device type list are processed. Fixing it in device_type_match() by returning false after iterating through all the devices listed in a device type list. Fixes: 8ad08a287918 ("usertools: define DPDK PCI functional device") Signed-off-by: Guduri Prathyusha --- usertools/dpdk-devbind.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/usertools/dpdk-devbind.py b/usertools/dpdk-devbind.py index 2d99e9d82..79e7e8938 100755 --- a/usertools/dpdk-devbind.py +++ b/usertools/dpdk-devbind.py @@ -354,8 +354,7 @@ def device_type_match(dev, devices_type): # count must be the number of non None parameters to match if match_count == param_count: return True - else: - return False + return False def dev_id_from_dev_name(dev_name): '''Take a device "name" - a string passed in by user to identify a NIC -- 2.12.2