From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from EUR01-HE1-obe.outbound.protection.outlook.com (mail-he1eur01on0046.outbound.protection.outlook.com [104.47.0.46]) by dpdk.org (Postfix) with ESMTP id 47D041B32E; Mon, 5 Feb 2018 18:15:18 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=Mellanox.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=uEMeKqcBnYNRlrsyUAwZqSNzCoZqif2PMkVZIQ60WP0=; b=B1Vz4unMZZFt5hzdF2iSDL9ay89k/QR1jsBRiaMqwakhUU1MHNrqr8l/ZunqhJs5+N9WEQyEctCqgN4yS6OG0oYRzX+LIisDMNgWoeoumRf66E1gXdNsWSmOE47Kqjvc8Ub+Iot4h7EQp8Wm6bnfkXQalAbQfX4r0+CaWVLRSCs= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=motih@mellanox.com; Received: from mellanox.com (37.142.13.130) by DB6PR05MB3205.eurprd05.prod.outlook.com (2603:10a6:6:1a::31) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.464.11; Mon, 5 Feb 2018 17:15:15 +0000 From: Moti Haimovsky To: jianfeng.tan@intel.com Cc: dev@dpdk.org, Moti Haimovsky , stable@dpdk.org Date: Mon, 5 Feb 2018 19:15:03 +0200 Message-Id: <1517850903-44493-1-git-send-email-motih@mellanox.com> X-Mailer: git-send-email 1.8.3.1 MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [37.142.13.130] X-ClientProxiedBy: DB6PR07CA0005.eurprd07.prod.outlook.com (2603:10a6:6:2d::15) To DB6PR05MB3205.eurprd05.prod.outlook.com (2603:10a6:6:1a::31) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-HT: Tenant X-MS-Office365-Filtering-Correlation-Id: b9f1ef5c-3992-4820-fab8-08d56cbc06a7 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(7020095)(4652020)(48565401081)(4534165)(4627221)(201703031133081)(201702281549075)(5600026)(4604075)(2017052603307)(7153060)(7193020); SRVR:DB6PR05MB3205; X-Microsoft-Exchange-Diagnostics: 1; DB6PR05MB3205; 3:x91gb9fx54mVqWv5OrdOkHEfgXsDxmi6kmiiK3nt+LCIAuD7OWcweYWItHSku1lGNbWlMJNzDGjTmAOtuayAegDtNWQJqil52c2DhduR9L3LGlmCFaAmhXJEfZRnf+VpOo3VKN0EKJjH8CUtHxkRrqnO18SSnC6Qhv6/5OH1b/Q9t4RgeVH+XIEGVtn4RaqCsTU6YW3Kp0AWcwjbGHMfjjp8b+EeajQIt96qKukuvVMaTsElRqzTD80njG/KDIVJ; 25:v+QbhTaj92BzhMF1WOmRz+WTemZSVRKHDUeH1HPNk0TeMjjHPXXaIZCPgEX+xMDcWbdOb6JRi4bG1xOef8xKG7G4g4NJnwB4RwUgReKhqSCjvhnELXDnXWtIwMfKgST+A2Fqj69GdQPbI+4Jq2bjwdy7b+dR/dbfAq1/4oVoQHRlwpoaDDivGBylnkhKwSZmmc7iyuwPbnIRT7+lZfEp6s1fCzz56H7LrhiSs15jv6U+C9FI9weNjg+yD9slgCgjX2nEzs4nh17LaJGtc/2LTZvyxnYPXs6IG0ec/tJ3PfeHE7yMr+bCV9NnrdO2c12jQgYxQVzGj6ysLZI5fEr1Mw==; 31:+u/qkXNyTziJuzcuFeTYvdudQ/9v3BA7i2HWp8TObWNpF6g3LCo3kWIzgTFuVfxM4j/SHklEWW+c8w/mUed/JAfopDR/FoQWI/mXau9OgUcDKVGX646KW5pC+wmGAPErnyIS23YVfi+E4jBiHb1b6lAoymq/4QRaUZaiQY0/OLM4RRN5GIE1GvdDdepXCw0cQneXX8zK+ola/x+PiI5bNi/WlrT1OxBkz6RQm35uqIU= X-MS-TrafficTypeDiagnostic: DB6PR05MB3205: X-Microsoft-Exchange-Diagnostics: 1; DB6PR05MB3205; 20:VgQKE8yLMQqY98RboxCBW25rk8M+ttHSg+O85mPTDhQiGu7y3u36J1L22SKsmcSdnaLEUKPbZy3MoXEtMq2Lnnwj8KVe5LNjfkCRia/+tJUSxhRaASjTTW89srKFWl6LHgqtEWFYzEMtB+gBZc7oMpbCTNagFIN6JKbiawjcku6oMOUeDpKDNEEI5O3MSsfCVFIMbUUKVW16FrncRDvU7mrm3JjxjJYpSVAG6tUx/gJXhJsw8epMUTK6eRhoUWRLV/pSvGZ9PCJhv3GrxuyZvonod5fX71y2b9PhAo9BU7cUf2yCvr8pQPyC5vla1Qfz1rceeUGRkHaZO0UrylaBIGks9L2eRK1aGm3giLVdR1nhdRSscYGfuLoNpoMPS249YRXGXVpsCgEDpPydrAbpO1D6QNqhE4WuFZCwd1JlS1HTp0dy8jgy9vcbeGwPn+roZeWcF/myaBTfrhRMvctTIgpnDqMDFQItJLmSIS5rxy1L2jf4pxjYVk2O1aehHBV0; 4:qfBeYzzP0H8T9Qa18MclbQuSGF/qHb59JjAuLecjW2ZrqauVmOa96EyO5ifzcNc5+VfggDAH+o0kIDS7nadGUMBskVZj0uyK/OxHARgr0xOriL9GWQmbqxW72uYD8Mv+sXEOBx2F9z/d4WUEVjEqfDAQ1+eivGUnoNsk5KgdiuHOHtaoXz3Qb09CU6/8wLPmlL+4s1EXsUlPFKlIOcxJGOsfalYjP7+cIwRI0pw/KizHfOMvdxXVbI8ch9PiuVR+0pyFoYW2RgPsbaHUs+Cy9w== X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(6040501)(2401047)(5005006)(8121501046)(3231101)(2400082)(944501161)(3002001)(10201501046)(93006095)(93001095)(6055026)(6041288)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123564045)(20161123562045)(20161123558120)(20161123560045)(6072148)(201708071742011); SRVR:DB6PR05MB3205; BCL:0; PCL:0; RULEID:; SRVR:DB6PR05MB3205; X-Forefront-PRVS: 0574D4712B X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(346002)(376002)(396003)(39860400002)(39380400002)(366004)(199004)(189003)(6666003)(4326008)(97736004)(8936002)(26005)(5660300001)(16526019)(1857600001)(68736007)(25786009)(386003)(6116002)(2906002)(7736002)(106356001)(66066001)(2351001)(52116002)(47776003)(478600001)(186003)(4720700003)(86362001)(6916009)(2361001)(305945005)(33026002)(7696005)(51416003)(48376002)(16586007)(36756003)(3846002)(316002)(53936002)(50466002)(81156014)(81166006)(105586002)(21086003)(8676002)(55016002)(50226002)(69596002); DIR:OUT; SFP:1101; SCL:1; SRVR:DB6PR05MB3205; H:mellanox.com; FPR:; SPF:None; PTR:InfoNoRecords; A:1; MX:1; LANG:en; Received-SPF: None (protection.outlook.com: mellanox.com does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; DB6PR05MB3205; 23:bRajE2cZhL77B9aRDrEyhUEQbfwUYZXBnOvixGMP8?= =?us-ascii?Q?8rOIPJnKpKZcRoKekwzSH/h/zHtgyIsa4Oo5YnCAIaZgUoDz2lIHTG3Kzx6S?= =?us-ascii?Q?jzgJGRevze46wBSgjROWJwT/481eU3aXnPj6V0GMYvG6bPcn/Jn1RpDdKWPJ?= =?us-ascii?Q?b8zYpwZ5wM4lffpL52jZc7cDHmuG50w+5f3RKeg6t0snyo5+64UbVRhIOaXH?= =?us-ascii?Q?UXQ1k5sCLDL/bKT4DO9WO8wFPrZd/gVfbsGBaDPsr2pd9RKV5d9PbQ0jvHyJ?= =?us-ascii?Q?VH1W0KLIAke52mUNPw5yn06e9HCnop1uMHnwMf3yP3D+RWPQbvgvu2O/HYxw?= =?us-ascii?Q?45K3qvAKK5pEqN10OEsqmYg+mm9r9TnoXEd2nzeFqEG7a1ZK2pSy9n1uDeC8?= =?us-ascii?Q?PEdwO9Zr07Sz9fxKsAs6uopIY64WkTlmPPeymcGzK6MBK1lKr1381T5nInEJ?= =?us-ascii?Q?WPn1dPAsAVSkl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RUVTnIgQKujOdA6ITllKcMXXmMYXpZfWWKFcBezUGxjZfAkOnUnagbMgTkhi1k3zAzeGbugfxxmpwfkir+Amjl/htusYJvNSNCTxKklapCYB8XhtqyhEqn1YY4E/pNutvNqZicwZEJ+mxtBSjrDYBeaSN67GtZGeas7S6C4Tje09ssigbwBACmPXLXz2uE3wm57kvlEm+mLcTKScR/ioAyYZQ=; 5:8WhiKAEFeusy44uVO+TsuGDlorP//DyJWZjcMMbzaILeidaEApClibVGhlL7ZDxeE0z/D/ytFz4YOEFwcIc19Up5zaD++RDZn33z1LQLNjlAv0+GYS5NVPT+EKrfdcXgZz7NRJ0tQ05C+419NfXOgS7pM2Er+f/aq8XjbeJ/gNA=; 24:QZo3eZpzmH6AtOLtYCKUDC57mCaUEo0/KsvApPQkl0zbJvR5rvr4+tFOxFIu/7kLj970Bo6N8WZq2Av6wgV9FyqVbh4F11WDfbuomLeBAlM=; 7:sJamxTzwjfL3XLyDIW74vm0xYmAc9D+l/KbWZ9zQ3PLKnxM50wVRgF0az/npinXlIcD86GvnMWqP7FFoYcZ5q1Vulbw8jNQJIYsdIo0IBnrWIrMyodoBEdwQYWEpYcTy85rP2KTucsO+xuNYUTMzuAfwu+zqZ9CovZTiKACY/Buwn5ChZQpvILfo4g03l+hEpPOLWA+84FxrXzpofbs6jHQ1sY2vmjkYToOhpqdVfbErbxQ5FJT8sdXatUhMOe03 SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: Mellanox.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 05 Feb 2018 17:15:15.7241 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: b9f1ef5c-3992-4820-fab8-08d56cbc06a7 X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: a652971c-7d2e-4d9b-a6a4-d149256f461b X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB6PR05MB3205 Subject: [dpdk-dev] [PATCH] bus/vdev: fix vdev stops probing when device fails 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: Mon, 05 Feb 2018 17:15:18 -0000 This commit modifies vdev_probe to continue probing all the devices regardless of device probing failures. Fixes: 810e5fa3688b ("vdev: move virtual device probing into a bus") Cc: stable@dpdk.org Signed-off-by: Moti Haimovsky --- drivers/bus/vdev/vdev.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/drivers/bus/vdev/vdev.c b/drivers/bus/vdev/vdev.c index 0c8a6a8..e4bc724 100644 --- a/drivers/bus/vdev/vdev.c +++ b/drivers/bus/vdev/vdev.c @@ -364,6 +364,7 @@ struct vdev_custom_scan { vdev_probe(void) { struct rte_vdev_device *dev; + int ret = 0; /* call the init function for each virtual device */ TAILQ_FOREACH(dev, &vdev_device_list, next) { @@ -374,11 +375,11 @@ struct vdev_custom_scan { if (vdev_probe_all_drivers(dev)) { VDEV_LOG(ERR, "failed to initialize %s device\n", rte_vdev_device_name(dev)); - return -1; + ret = -1; } } - return 0; + return ret; } static struct rte_device * -- 1.8.3.1