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 8F153A0C45; Wed, 20 Oct 2021 09:32:19 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 136A540150; Wed, 20 Oct 2021 09:32:19 +0200 (CEST) Received: from NAM12-MW2-obe.outbound.protection.outlook.com (mail-mw2nam12on2048.outbound.protection.outlook.com [40.107.244.48]) by mails.dpdk.org (Postfix) with ESMTP id 3762940142 for ; Wed, 20 Oct 2021 09:32:17 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=CI2ZHBSYVeFU1oj0xXEE3E+SY0elj+AjZHg78NSiqTFOBqYuUkSz3mpiFii4EboyfNKvf12md0CzdTkImr0wPhJbDMhbmtwCZKuBtWyJKFrGxa+3IbUoclasdlSACb9mTLCk5FQaYI/l58kT8Aq9pHcJaPIFXTEtZyUiNY+z0CjfXc0tLAn9WnidiEys8ijr0hPWC/0bBd2pfuYoTIxMA9IqntqYDmX0ic1KWNjMc4ONxZtrNuChxgc11RnHpVNiC3BG5Fm6OhV1/roYrHTHQ8lY9nsMw+SUnkwlw0ILabzI1nh4IYjXRSnzqm5R4VBsGED75ym6xwojxKnVLsZGeQ== 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-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=P8AeKEuagpBme3O8px/BRQc0TJbbx/kr1DQ0KoTZd/A=; b=anopEFpVVeZNz3wd/YfH3lVERQpe6PUiACCC2kVkA0dUk1I1bxofxWJMg2Guz2NOmOd9uECSfi2TItTbS4BK5lyLL/2O8qfTRMtk1m7Q9f1BQlFk7b28Wmi6w2dh+vh9M+ACPERtsa/tpSxh4slinYJCsykXfIhBKDeDGgc7EAE8J5PSI/LqVaXGTUeEkfra98IBKieIVik1FHbHRFgrNjVOdiy6pRp5yEl0DD6M4SKJ5uefQnKY62ZSGsVicUtkEkOLb+i1V8IBnHslMWtIAr23Edep94xK3o0q0xnfCozd3Jwn6AOmhUHGfV79f/cFCZAe/KAsgse6XGLD9L14yg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 216.228.112.34) smtp.rcpttodomain=monjalon.net smtp.mailfrom=nvidia.com; dmarc=pass (p=quarantine sp=quarantine pct=100) action=none header.from=nvidia.com; dkim=none (message not signed); arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=Nvidia.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=P8AeKEuagpBme3O8px/BRQc0TJbbx/kr1DQ0KoTZd/A=; b=LqzlOgYJiA6cc7ti383AcpDFmeIrjc3DnfIeEBwXOvGo0y+oSh8RWuDpZ5xYNGyDQJ8Fz6L2zoUpStcQXVNqqLErgvK+N/pAOnmWQerLoasIvoAqpWOh0rhhojyNWW96QlhZWdU8kQxsYorPC0VzbkweW4B1OV5rBT2bgpXFqUP4vhooA6GaUeGANTWt5TgufqO/rwCMP0i8J6idY5NPvfFHmhqzQQkAshq5tL2R7VEfF3GL6RWvEAmanO2Uzzp+KxiF0a7U6f8sCNcjCwX1Arpxu/DUqLCI/CXXvRzAsFLgyEo+NhrxT/16t65H8jrgHaPAgV5JWNTu/5ox9vBbww== Received: from DM6PR06CA0009.namprd06.prod.outlook.com (2603:10b6:5:120::22) by BY5PR12MB4950.namprd12.prod.outlook.com (2603:10b6:a03:1d9::11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4608.17; Wed, 20 Oct 2021 07:32:15 +0000 Received: from DM6NAM11FT008.eop-nam11.prod.protection.outlook.com (2603:10b6:5:120:cafe::e) by DM6PR06CA0009.outlook.office365.com (2603:10b6:5:120::22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4608.16 via Frontend Transport; Wed, 20 Oct 2021 07:32:15 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 216.228.112.34) smtp.mailfrom=nvidia.com; monjalon.net; dkim=none (message not signed) header.d=none;monjalon.net; dmarc=pass action=none header.from=nvidia.com; Received-SPF: Pass (protection.outlook.com: domain of nvidia.com designates 216.228.112.34 as permitted sender) receiver=protection.outlook.com; client-ip=216.228.112.34; helo=mail.nvidia.com; Received: from mail.nvidia.com (216.228.112.34) by DM6NAM11FT008.mail.protection.outlook.com (10.13.172.85) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.20.4628.16 via Frontend Transport; Wed, 20 Oct 2021 07:32:14 +0000 Received: from nvidia.com (172.20.187.5) by HQMAIL107.nvidia.com (172.20.187.13) with Microsoft SMTP Server (TLS) id 15.0.1497.18; Wed, 20 Oct 2021 07:32:09 +0000 From: Xueming Li To: , Gaetan Rivet CC: , Thomas Monjalon , "Lior Margalit" Date: Wed, 20 Oct 2021 15:31:48 +0800 Message-ID: <20211020073151.2374674-1-xuemingl@nvidia.com> X-Mailer: git-send-email 2.33.0 In-Reply-To: <20211005155435.279043-1-xuemingl@nvidia.com> References: <20211005155435.279043-1-xuemingl@nvidia.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Originating-IP: [172.20.187.5] X-ClientProxiedBy: HQMAIL111.nvidia.com (172.20.187.18) To HQMAIL107.nvidia.com (172.20.187.13) X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: b628b4a2-86ee-4564-22e5-08d9939bbcf3 X-MS-TrafficTypeDiagnostic: BY5PR12MB4950: X-LD-Processed: 43083d15-7273-40c1-b7db-39efd9ccc17a,ExtAddr X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:3173; X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: A+9h4y/Vki/LOXLIc++yJDoUgFCHKbnMPkpGBLADboocvoUbD7zz8ZGplmgyZyEgTlJ2MyXe3Bq8tVQDANKTld6eHY7LW0Fd/4j1AxC1STB7pLdS5D8rmZWuS2MGjrzUy+ofgYIUKP9gSThU9RLXdr7S63aSwUvHA7A/W5JwKgjzOiCnJH6VASNmtjFKt8UWTmClayQzcDIBVzuXB32p5o49pzjl7d/QvUQJjDxqNr1Ads7lrom8wXJh1J94ty3AeHejrJofqrG+VefqWEu8RWVxOS9ZPFnepAeYOzpcyKVOE1mY9u1ac71gz41IPG2QTF10ufZ3TxWhN5srISeFRB+7GyfLcnnctUpu75Uxg3EhotqWMAoDjg3/phn0z6MJCiR0gMLGekC1FYX6Clkb/cJTrQS3pzL8h0iNcSEpjeK7ByeEra1KwwOM/fvz3UfCc7Xh+DBrXXzRIOIP8b+sNZFe844DeoilMKWAMDRMkKePyMaXvIONEN088SuJ3QicZmVC0FudGXGs94LP/Q3FRMNgcsQjYU4Ccg+mfkCt/iL526kNWgnEiSq5bTnFQSt5JmKGdoF3fJIolBlUvAj9fpA7PXV25rZxdhtewemmHMUxBBGeLLFSfb0r5Aci79KaXF0yEuSVtR8f1GCBMRxdBgKen4etPQj7N4IioWLQPkeqZRUkNubZO3j+oEX+y0PKRX1jPf729JTFamb/1c/yMg== X-Forefront-Antispam-Report: CIP:216.228.112.34; CTRY:US; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:mail.nvidia.com; PTR:schybrid03.nvidia.com; CAT:NONE; SFS:(4636009)(36840700001)(46966006)(316002)(36756003)(4744005)(8936002)(2906002)(426003)(7636003)(55016002)(107886003)(5660300002)(1076003)(47076005)(508600001)(70586007)(83380400001)(8676002)(2616005)(26005)(4326008)(7696005)(86362001)(110136005)(54906003)(82310400003)(356005)(36860700001)(16526019)(70206006)(6666004)(6286002)(336012)(186003); DIR:OUT; SFP:1101; X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 20 Oct 2021 07:32:14.6611 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: b628b4a2-86ee-4564-22e5-08d9939bbcf3 X-MS-Exchange-CrossTenant-Id: 43083d15-7273-40c1-b7db-39efd9ccc17a X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=43083d15-7273-40c1-b7db-39efd9ccc17a; Ip=[216.228.112.34]; Helo=[mail.nvidia.com] X-MS-Exchange-CrossTenant-AuthSource: DM6NAM11FT008.eop-nam11.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: BY5PR12MB4950 Subject: [dpdk-dev] [PATCH v2 0/3] devargs: support path in global syntax 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" - Support path in global syntax. - Fix bus name resolving - Add devargs test cases v1: initial version v2: - add test cases to test suite - add more test cases, verify device name, bus name and class name Xueming Li (3): devargs: support path value for global device arguments devargs: make bus key parsing optional test/devargs: add devargs test cases app/test/autotest_data.py | 803 ++++++++++++++++++++++++++++ app/test/meson.build | 2 + app/test/test_devargs.c | 184 +++++++ drivers/bus/pci/pci_params.c | 8 +- lib/eal/common/eal_common_devargs.c | 119 ++--- 5 files changed, 1036 insertions(+), 80 deletions(-) create mode 100644 app/test/autotest_data.py create mode 100644 app/test/test_devargs.c -- 2.33.0