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 AA7C8A0C43; Wed, 20 Oct 2021 13:12:52 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 910C540687; Wed, 20 Oct 2021 13:12:52 +0200 (CEST) Received: from NAM11-CO1-obe.outbound.protection.outlook.com (mail-co1nam11on2051.outbound.protection.outlook.com [40.107.220.51]) by mails.dpdk.org (Postfix) with ESMTP id C2FEE40142 for ; Wed, 20 Oct 2021 13:12:50 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=TLZnbRslMkiN/a+4mavlz8rgPLy3xSyY8XuykXL9hWipgZRrxEUAIBSSp2/qWeqAMVkss8V32egSrvQSlqAbRQv632CixCaIQQYsT0CTpUqdOXgaRiZFzhGxtD/09cNwTMY0W3FF2UXGU2zciBR73w3GRmkQ/pCdbfsir3GySs6O+G1EsuwGcSVE6k10T/BWDu3rqw8GvpGK5VgKCG8LIUTDqzGJhLvPpX+x5feNmvYAjEH9d58YDE5sA/+0/OYdMeT6jt8K7c3YQwZNRuiniHSbckKuTGQ+gGagY6mjWSSkllWntKsfYUxm4qGZGcx/Ty6GvpaY0xayhF7d+nUTrA== 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=As/pPEsWeT+IyLyuOf1hRD/N8dNu7IsxAUMPx5rXW0c=; b=iFs2jjuYqmjY1erJK4swTDOexLsL0zB2Hn5pro7q4Stsjub3JOA1fi6k+zLP4dFDCE0sHdKvqboQ3NYXB7S3vbed9F4wZ0soTjW9mjLUbRkfDojc9uNen03ujVjF5ZYWXP6BLn3uXff0FJ42hChMx5DDLGqNE/ruzR295JKPSOJO9q5JV8aPdRcc0avwa50yMpbZer89v9GhQthOR2edLk50J6t7orC/yJNuvULc4A/oJiLQ/aKpxxDren3b23rwQEaIZQYvp63sTP84zOoYwA4BzDAYLhRv0Ut6d+Ez0QrwLW2mWC/zIxlMpMdLx299yhqlZtMfYmzBdyhzwmGQdg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 216.228.112.34) smtp.rcpttodomain=redhat.com 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=As/pPEsWeT+IyLyuOf1hRD/N8dNu7IsxAUMPx5rXW0c=; b=q8LmA6JQwwrrPwl+RDiM9zSykwxTyyWhlJUA8xgMPKqr68uEzzPksvB21c1Ln8Gi3r3hM+H96zz93JuhJEvORCyEDdnu2bwLdy9cZHRTxjKMK6h7TNOOkxBDJkuJozcC/svArlxMwQKIsa22b/j/WIoowz/30jmKsfb9+qsVIEvJyiQcsmS5Y6k0FOjUOOdYriiuqKx+bNo5pKCFXUqyNivV6mFtnFfLito+8T0Kh/8ki7H4CptNqU7WzKPiSiVpTtMdV/DFPHTOm0G4umm1RG+AtBy1zQRISYx2X1zawTEz1s0tbEqeZ9svtJ0GyEPUnQ/+TV62jEtsQGCGPO17xQ== Received: from MWHPR11CA0045.namprd11.prod.outlook.com (2603:10b6:300:115::31) by BN8PR12MB3315.namprd12.prod.outlook.com (2603:10b6:408:41::19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4608.18; Wed, 20 Oct 2021 11:12:45 +0000 Received: from CO1NAM11FT055.eop-nam11.prod.protection.outlook.com (2603:10b6:300:115:cafe::c) by MWHPR11CA0045.outlook.office365.com (2603:10b6:300:115::31) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4628.16 via Frontend Transport; Wed, 20 Oct 2021 11:12:45 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 216.228.112.34) smtp.mailfrom=nvidia.com; redhat.com; dkim=none (message not signed) header.d=none;redhat.com; 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 CO1NAM11FT055.mail.protection.outlook.com (10.13.175.129) 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 11:12:44 +0000 Received: from nvidia.com (172.20.187.6) by HQMAIL107.nvidia.com (172.20.187.13) with Microsoft SMTP Server (TLS) id 15.0.1497.18; Wed, 20 Oct 2021 11:12:41 +0000 From: Xueming Li To: , Gaetan Rivet , David Marchand CC: , Thomas Monjalon , "Lior Margalit" Date: Wed, 20 Oct 2021 19:12:27 +0800 Message-ID: <20211020111230.2441949-1-xuemingl@nvidia.com> X-Mailer: git-send-email 2.33.0 In-Reply-To: <20211005123012.264727-1-xuemingl@nvidia.com> References: <20211005123012.264727-1-xuemingl@nvidia.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Originating-IP: [172.20.187.6] 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: fc8039b6-764a-41ea-c841-08d993ba8a75 X-MS-TrafficTypeDiagnostic: BN8PR12MB3315: X-LD-Processed: 43083d15-7273-40c1-b7db-39efd9ccc17a,ExtAddr X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:3513; X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: BAap8SIi3BYIIU9/Wsb2MovKDFdvQlgEKvE0xu05viDj6BSyKKg75jx8N4Fc/6epjeG/8ZIXidDrqZW7wL6w6wRn16oXFRxKuq20pf9tiHb97FgdzSkuPXMTBsL4yuzWOsAXeO+IPOAqZg31IBVlK4XVG2yR4Lapl1C7Tdqcour5rIQbO5cgH9WMYSPYknB85fUmMEEEGSL3kWnkW6JuOHWvrDQloXP7j+EwAWWcqRLF9YBtq0CtmCr0pYkp2Kj6mZihfv2Oc4Toyprt6a7QVW0HkoJTb7vtDG5DHDLSIx75fj1F4uoeSpCIy5H4uQaOnpLywPRSfGKDrBWgsugTXb1sc90J7nSMM52ioV6p/ukb732A1+t11PANzyV/SdRIgmvcl8yMXLIPLKR2tvlQFQgd+sxhDqru7M+8yKewCUodLiGSO5rkw+ZLO7GAR4Vfbrqjmtwr74Lyj5NOjoe5wbKEn+hya5V76gOthdoPcmHvkB44s535EFuUGdITnhhIjn7xsRedwedbYrAkUeniXm2Oz2/2vZsDnkg/OR35oyb29h/6iIH7B9kx+5G1YIICiTI7Og3TSMxYl8VpGL9+fkYBYUnj/njj8Hr7+V6vKyi4QNnsSF2oWPV1ggyHp8sM8Wwfkxq6xG5uEMolsGfIqg3sgWGCpxqcp8RqHO3Zdvs06wgyKIzGB94YtaPTm94eMKi7YToN+u7DThZx9VisEQ== 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)(186003)(16526019)(426003)(7696005)(6286002)(316002)(107886003)(336012)(2906002)(82310400003)(110136005)(508600001)(47076005)(2616005)(356005)(6666004)(70586007)(70206006)(4326008)(54906003)(36756003)(8936002)(7636003)(86362001)(1076003)(55016002)(36860700001)(26005)(5660300002)(4744005)(83380400001)(8676002); DIR:OUT; SFP:1101; X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 20 Oct 2021 11:12:44.1193 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: fc8039b6-764a-41ea-c841-08d993ba8a75 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: CO1NAM11FT055.eop-nam11.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: BN8PR12MB3315 Subject: [dpdk-dev] [PATCH v4 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 v3: - remove autotest_data.py v4: - make devargs test depends on virtio driver Email thread: 20211005123012.264727-1-xuemingl@nvidia.com 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/meson.build | 5 + app/test/test_devargs.c | 184 ++++++++++++++++++++++++++++ drivers/bus/pci/pci_params.c | 8 +- lib/eal/common/eal_common_devargs.c | 119 +++++++----------- 4 files changed, 236 insertions(+), 80 deletions(-) create mode 100644 app/test/test_devargs.c -- 2.33.0