From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id AF53CA0A0E; Thu, 29 Apr 2021 07:57:25 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 791F94067E; Thu, 29 Apr 2021 07:57:25 +0200 (CEST) Received: from EUR04-HE1-obe.outbound.protection.outlook.com (mail-eopbgr70050.outbound.protection.outlook.com [40.107.7.50]) by mails.dpdk.org (Postfix) with ESMTP id 5510A4003E; Thu, 29 Apr 2021 07:57:24 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=LeX4H0JQ2RBW5rDSNAhXz587SGBEL1giD6cOHW4Zw60ePy6ePnEmTVyh5o/RsFr9TUQoT+t8ZanDSE2pgTWc1qCHn2MZ8HG4E/7zyvVLsz8CdfWJWSwWOEDGKsOsUQ2IaEVNXQMoIZa6tDRrrv6Zgqe0JcNJL4O8HddRThlQsJ2PIaJqV13COYODGleKsauPrgCkpZ4+zbOPFKj9/D0McgQ7K/r9tnGHj28u9keQEqgXQncS9CxBvzFOmajBDJFZGgOOBsTl7QynVomOhC9N65iS3jumLbreqaHKfZEju8dGDCG8WyC+jRkBgop1Q7PWbRufOKYlSq2h0a6vjrFnIA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=9l9GreSAJonEfvRBPeO2ONJKEb4LRqvGNbE2Etvg9Us=; b=hfNOBednvYr17cwtWiYrE9xnH0jUBedAkuTQOk0b+JbvrPstG46dneEXoJ89EUnl5LexznbX1YHmzI4+fd1gvFNms+SRdSZ8MCJySDzvZGikOjrVYolY5D87I8QI/x0BFlwkw0qRy0gsui4TCRP96s/KhJ8tJz5xVRViWez+tmpV5Xx0JlyIiMm171qz+tU9cKewj/2LS6k7z7iHuGR+Sps/DVLufKKkcQQnwTj2lt7+pGUvEsFMHX9vqkq9Dm8ZHxQOaTkn1G73M4wvK6mBo+fxDGMfRRqnBdstkELURrYlb+gVqXjcDComNJ0DBIEKXtBUm413WdO9uytaDyaFLQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=nxp.com; dmarc=pass action=none header.from=nxp.com; dkim=pass header.d=nxp.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nxp.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=9l9GreSAJonEfvRBPeO2ONJKEb4LRqvGNbE2Etvg9Us=; b=SNKcUZIy0YrWmh/BReuiIkhIjN3ioxNFzQitWKcDXTYVkQ0QJjgj1pdz0hRWyCRqCwkHf85H+hxlcicS/IGS3EHBq2QetS3T6G7wiOFlyrAo2N+16syzO59NaNIZ0G2xLyCiSEL6LVpU29Ch8N0eu2vYKEzkyLyF/Zhtuctjl8E= Authentication-Results: dpdk.org; dkim=none (message not signed) header.d=none;dpdk.org; dmarc=none action=none header.from=nxp.com; Received: from AM6PR04MB4456.eurprd04.prod.outlook.com (2603:10a6:20b:22::25) by AM7PR04MB6821.eurprd04.prod.outlook.com (2603:10a6:20b:105::22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4065.21; Thu, 29 Apr 2021 05:57:23 +0000 Received: from AM6PR04MB4456.eurprd04.prod.outlook.com ([fe80::ad9e:a38e:e84e:bf55]) by AM6PR04MB4456.eurprd04.prod.outlook.com ([fe80::ad9e:a38e:e84e:bf55%6]) with mapi id 15.20.4065.027; Thu, 29 Apr 2021 05:57:23 +0000 From: Hemant Agrawal To: dev@dpdk.org Cc: thomas@monjalon.net, Hemant Agrawal , stable@dpdk.org Date: Thu, 29 Apr 2021 11:25:48 +0530 Message-Id: <20210429055548.12964-1-hemant.agrawal@nxp.com> X-Mailer: git-send-email 2.17.1 Content-Type: text/plain X-Originating-IP: [92.120.0.67] X-ClientProxiedBy: HK2PR04CA0062.apcprd04.prod.outlook.com (2603:1096:202:14::30) To AM6PR04MB4456.eurprd04.prod.outlook.com (2603:10a6:20b:22::25) MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 Received: from dpdk-xeon.ap.freescale.net (92.120.0.67) by HK2PR04CA0062.apcprd04.prod.outlook.com (2603:1096:202:14::30) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4087.27 via Frontend Transport; Thu, 29 Apr 2021 05:57:20 +0000 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: ba249346-5394-4c09-e15d-08d90ad3a840 X-MS-TrafficTypeDiagnostic: AM7PR04MB6821: X-MS-Exchange-Transport-Forked: True X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:4714; X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: rh7+aerxz1TWTxCmL9MGQxpcETiIQIgzj1RO7vsPzyukrDjSokb334RKxhUSKGQ39Ec5iBEH6Q109q6BeH1k5RUtL+uARAx0RoxG4UXmUP/cNqCQgY2A87cWeLLORVJvMJJSF6kPwUFEQTZhwHUkrXg1zoJdnSBtTeFqXTbDAiWPB4DuMAN26tI7jOqExUSy58SzgFNvNqv14nR6gRVaQGfeO+jalCxwE99iZRvfWTpkL5t4+SGBlYDUmk/ijVnM8XUms4KwiBHkAhi0dDbBz5XZVgMrpPloNtpvK/OpjTGFEw3uqnf9k5N9LpWp0P3jGmDybN+jrWLBhspoY8XUE9lIYPwL8RyrPSbPmjBCEcaA4qR4GnJ/2GDTG5bMW3KhJAifGH3Ll7UJabaWZhD1ZbNVKtO+4K4Ic2k4YhGHTzedSuwm2gqCcDbbu4YE7SvTQF4m7xwSueNrJfuUY7wKY5ayr3n4cHcpT4dWIszmyEOhZ411rENLpSdpxiPrdsHZzaIHpAmw/zhMEbqmQfSXcOhEtLtt7jsBUXxmyQKoZ2QuES+z8fJPUllb7stqAoZMYDtNh7r/AhDel61d/1P83coYGrb0E4Tjl10pmTCtLYrTtEzT8g5Q4SSRP48kMB00SAouJxr2XUouVCnh24UeWmb4YYTb2jwTMktFvnuS9wA= X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:AM6PR04MB4456.eurprd04.prod.outlook.com; PTR:; CAT:NONE; SFS:(4636009)(346002)(376002)(396003)(366004)(136003)(39860400002)(36756003)(478600001)(86362001)(44832011)(83380400001)(956004)(2616005)(5660300002)(66556008)(16526019)(6666004)(1076003)(6486002)(66476007)(186003)(6506007)(6916009)(52116002)(66946007)(2906002)(38100700002)(316002)(38350700002)(8936002)(4326008)(8676002)(26005)(6512007); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData: =?us-ascii?Q?4oPj9miVX0wXKtG8ooU2IUFIWXFu6na9+pkyKjZvZ9DVGc6TZtYaQOmYRxdv?= =?us-ascii?Q?0NVMSMQsy+VY5C2gjdLhpmSUaNG9iEYsaiNyTmujrpSJ17fZGjZ2rLVnkTbE?= =?us-ascii?Q?A8PLS5hdixTjbSiHwGG7htUJkzlhS17IzdDNQUNHH9hJmr6OUOWC8/RoEHem?= =?us-ascii?Q?FLmfGNTThy/yIrz6Zy15vQW4zHNhOtioW4yOqibyCkVqFcQT2j/CtYZEXTyJ?= =?us-ascii?Q?OVdn1GgGlRJSHl/whP6yNuO3WSXLiyH1z0cvW3o/+dAbIZbw4oABU+g2xur7?= =?us-ascii?Q?RZpkV4oEcP+1no720bVv9yjF4oN7BL+tDtV4sThqTejKspmGegQTXrrK/I4B?= =?us-ascii?Q?gtXa7rDTRElFFPCRRsqRiubrPDcUX+hJIeyCoigQrA2RjNMYQweTiwY6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FaYnrETy/FR9bjrGqmdbePjsaOo6ArcndDws?= =?us-ascii?Q?TxlknSzKyoM/EIU0XUdCwKTT?= X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: ba249346-5394-4c09-e15d-08d90ad3a840 X-MS-Exchange-CrossTenant-AuthSource: AM6PR04MB4456.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 29 Apr 2021 05:57:23.0915 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: Ok6+IjAJyRIzUQ9fLAogY/4EX8vBDl+cpbkQXMZIrO+nSeTs9GRLJHzC0E5eYBnZKM/MtZeh4iG5Iuw6x0n8JA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM7PR04MB6821 Subject: [dpdk-dev] [PATCH] ethdev: add missing buses in dev iterator X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" This patch fixes issue with OVS 2.15 not working on DPAA/FSLMC based platform due to missing support for these busses in dev_iterate. This patch adds dpaa_bus and fslmc to dev iterator for bus arguments. Fixes: 214ed1acd125 ("ethdev: add iterator to match devargs input") Cc: stable@dpdk.org Signed-off-by: Hemant Agrawal --- lib/ethdev/rte_ethdev.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/ethdev/rte_ethdev.c b/lib/ethdev/rte_ethdev.c index a1879765e8..483013ec7a 100644 --- a/lib/ethdev/rte_ethdev.c +++ b/lib/ethdev/rte_ethdev.c @@ -260,7 +260,9 @@ rte_eth_iterator_init(struct rte_dev_iterator *iter, const char *devargs_str) } /* Convert bus args to new syntax for use with new API dev_iterate. */ - if (strcmp(iter->bus->name, "vdev") == 0) { + if ((strcmp(iter->bus->name, "vdev") == 0) || + (strcmp(iter->bus->name, "fslmc") == 0) || + (strcmp(iter->bus->name, "dpaa_bus") == 0)) { bus_param_key = "name"; } else if (strcmp(iter->bus->name, "pci") == 0) { bus_param_key = "addr"; -- 2.17.1