From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id C5FB6A053D; Wed, 5 Aug 2020 18:36:06 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 83B6C1C02E; Wed, 5 Aug 2020 18:35:59 +0200 (CEST) Received: from EUR05-AM6-obe.outbound.protection.outlook.com (mail-am6eur05on2078.outbound.protection.outlook.com [40.107.22.78]) by dpdk.org (Postfix) with ESMTP id 2E4742BF2 for ; Wed, 5 Aug 2020 18:35:57 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=a0ldswcWIGO59BJsI1lym0j+dX3U0ZDDchWAD9P95E4EG+kOcLgCsx+P8zGr4D+kLqif0UoAarLeqS+2kRZw4VDu1+axikCjruuOw8/YWjruHJ4Qd3Daq7NxLAkSI6QvmsgW3oTmpFJXO/VDHFm6rBVtwGrVgSl96tQYLHYLqqUmumi8FtNXIql6dLDjG/xhVnEe20X00OCzQvLWGkzFESIZMuOME0CvqilLquOFwuR4D9IWqjh2aDw83RDWSJvdTWYpleVpxoeoeeaQl2txx0KIhMUliToHBQsnJp8Y4yKWIrbFsm/MQNKk//c1OaHkuL+HJkwRr3lfei5p/7SuSw== 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=VGgXGt9/6p/Wn8yY5M6kJ3F9taPa6Bq4OFPRZhgLV5M=; b=AwYs7XSMwBijOx8O9dsca2yP41APgCm7/8RsJ3vbJLMyjvw13TbhzN4y18onyRz06QNJy3NFDf64kj/3KIaVh9iOnPM82//T/YHaFGU84jT1F7dbAXFKR885CbCu6PjQSSSOfZ+oFCRJhnumEdqbclrhlN3XZnlXfn7GFS6PXx/stsG+RdK03L9GOKaDEKMuUvx6y01ZQnXEG6n0afXOrpq6zGWNWz4u1GiyzBzXriWai5OtnBvjQqn5rrOZyrXKVVCFtTJ0xR6qpfg1KfrGxSB1N3plE0Axid5uvnZ1crWpehGbWAHt1pfUbLbWU8Bz8tJj53Kc0HdcuZJiZCcGVg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=mellanox.com; dmarc=pass action=none header.from=mellanox.com; dkim=pass header.d=mellanox.com; arc=none 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:X-MS-Exchange-SenderADCheck; bh=VGgXGt9/6p/Wn8yY5M6kJ3F9taPa6Bq4OFPRZhgLV5M=; b=dX+lr80EB4O6ryQGdjNK4w7eaASDQRIy6OH8wzXwviY7/xlWvyX1a2Rxkh1+5p6HNOq0mqaopnsiyyo/YIGcNbKRlkMWvoC/f9dKXt6FGIGsNPxPHIHIkD4uW8bvscaZcn/4812iNmnNI18zALTKQYMvz3IHFau0PKPpDypaurY= Received: from AM6PR05MB5176.eurprd05.prod.outlook.com (2603:10a6:20b:63::30) by AM6PR05MB5959.eurprd05.prod.outlook.com (2603:10a6:20b:a6::17) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3239.17; Wed, 5 Aug 2020 16:35:55 +0000 Received: from AM6PR05MB5176.eurprd05.prod.outlook.com ([fe80::7092:faf6:f77d:802f]) by AM6PR05MB5176.eurprd05.prod.outlook.com ([fe80::7092:faf6:f77d:802f%7]) with mapi id 15.20.3239.022; Wed, 5 Aug 2020 16:35:55 +0000 From: Ori Kam To: Thomas Monjalon , "dev@dpdk.org" CC: "david.marchand@redhat.com" , Matan Azrad Thread-Topic: [PATCH v2] regex/mlx5: fix registered driver name Thread-Index: AQHWazfaPVUbokqeoUWrKzLVE4XfMakptlrg Date: Wed, 5 Aug 2020 16:35:55 +0000 Message-ID: References: <1596031264-59994-1-git-send-email-orika@mellanox.com> <20200805145101.107060-1-thomas@monjalon.net> In-Reply-To: <20200805145101.107060-1-thomas@monjalon.net> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: monjalon.net; dkim=none (message not signed) header.d=none;monjalon.net; dmarc=none action=none header.from=mellanox.com; x-originating-ip: [147.236.152.129] x-ms-publictraffictype: Email x-ms-office365-filtering-ht: Tenant x-ms-office365-filtering-correlation-id: 475beffc-a4f9-4d9e-578b-08d8395da014 x-ms-traffictypediagnostic: AM6PR05MB5959: x-ld-processed: a652971c-7d2e-4d9b-a6a4-d149256f461b,ExtAddr x-ms-exchange-transport-forked: True x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:6108; x-ms-exchange-senderadcheck: 1 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: 4aogBsGRwzWIrbmDrI837gaB4cJ2mr5cwtkXnx3viDo30fXFLl++0pJNfgUqkklUJQciLqmbfwRpb4QM/nCadfCx6IdhltBsWCRxBegw67K7jJ66aboKTBwi2Bs02e41GOuIu/Ys5pa1n7wRw3aVws5ZvpLF1PV8pYQOUHXWgg1DCkOQNPpVRG52NN0wmaspGydBtcFkjK5uQ8BanPBfNYNvqxDkvT4fnWs1mmUY97FM9awy6XyJtQRKJsd3CvaHRNrAgMA0U7KNZiubdAlGff8MkTRVyeNg50JXBR+TCJDHkIOLfYrxOZ8qXja9w+Q5OE/VzJ9e3sfsDCV4GL/Bzg== x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:AM6PR05MB5176.eurprd05.prod.outlook.com; PTR:; CAT:NONE; SFTY:; SFS:(4636009)(396003)(366004)(39860400002)(376002)(136003)(346002)(52536014)(8936002)(4326008)(8676002)(110136005)(54906003)(26005)(5660300002)(2906002)(316002)(33656002)(186003)(478600001)(83380400001)(66946007)(64756008)(55016002)(66476007)(66556008)(9686003)(7696005)(66446008)(6506007)(71200400001)(86362001)(107886003)(76116006); DIR:OUT; SFP:1101; x-ms-exchange-antispam-messagedata: ZAdYHENU52mqxYJnAYEohXL/OEgyoqMxAmLtCCKEyVqXKRHyDb4SNGaYaKm8qaRLTlbMy+lgyAWjqbG+GVXuWWKwJQnKxDhWqNV3q76zw3LBMvn+BNxbouUDykg5PlhE8VSWfaIqBzocRarLbh7xcnTHHMv6sdEVPs4re8IF/j/xyr/U0aDMu050CP3XQNc0E3JMcgIisVJIAx3/yCoXf6kUOFqckZlUro6fhfU3CAy460lx/7Mor+/vM0Na2bQbjhwbB6tgfv01dNMdH76mqaNQXISC9EXIMB/W8JQAiimWstdyeKMA++LBz7bRxHHDf/8VQ03jlsGwElVFH9iMPVEWRCfNioPsX/S4L2W0Pk2bOzJLbkcmooVk6AdJxielk+R8/dV0Oxcxf5uG5xpcY2xAC/8CbC4jH4zeieUSsIDN4Ue06UiuwA7iDn577b79IHpjjaE1gQW0nD6oCVilNVfBV4dVE68Sape2AKCKM5dfL8AGjek1jDW+60q1KMGXogl9YjiqTo9tj3pXcCesrvQpmGj6f7fgdrHFhWaXQsguVGKaRQCtp0rHZ26RVITaNj7JWgyMBW1c5vl+4vRlJSw61AAVJpDokGi4o+iPebkkuu76yRG3IPMeP+2E0MfzUWLjmahtHHi2etoGy8yPQw== Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: Mellanox.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: AM6PR05MB5176.eurprd05.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 475beffc-a4f9-4d9e-578b-08d8395da014 X-MS-Exchange-CrossTenant-originalarrivaltime: 05 Aug 2020 16:35:55.2295 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: a652971c-7d2e-4d9b-a6a4-d149256f461b X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: k71Jd9wrkpgrXY4amsjk0JFNMdNO8t14iYL8Afam0O0ruRhYmaGD8dPWjRLUMn5yaHu6PjLdlqdvfSUXrw8O9g== X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM6PR05MB5959 Subject: Re: [dpdk-dev] [PATCH v2] regex/mlx5: fix registered driver name 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: , Errors-To: dev-bounces@dpdk.org Sender: "dev" > -----Original Message----- > From: Thomas Monjalon >=20 > The driver name was registered as "net_mlx5_regex". > It is renamed as "regex_mlx5". > The same name is used in mlx5_regex_driver.pci_driver.driver.name, > instead of "mlx5_regex", for consistency. >=20 > The string used for log registration (pmd.regex.mlx5) could be derived > from the driver name. A macro is created so name definitions are close. >=20 > Fixes: cfc672a90b74 ("regex/mlx5: support probing") >=20 > Signed-off-by: Thomas Monjalon > --- > v2: add macros and fix PCI driver name > --- > drivers/regex/mlx5/mlx5_regex.c | 13 ++++++++----- > 1 file changed, 8 insertions(+), 5 deletions(-) >=20 > diff --git a/drivers/regex/mlx5/mlx5_regex.c > b/drivers/regex/mlx5/mlx5_regex.c > index ae9f00189e..605ebcfe0e 100644 > --- a/drivers/regex/mlx5/mlx5_regex.c > +++ b/drivers/regex/mlx5/mlx5_regex.c > @@ -19,6 +19,9 @@ > #include "mlx5_regex_utils.h" > #include "mlx5_rxp_csrs.h" >=20 > +#define MLX5_REGEX_DRIVER_NAME regex_mlx5 > +#define MLX5_REGEX_LOG_NAME pmd.regex.mlx5 > + > int mlx5_regex_logtype; >=20 > const struct rte_regexdev_ops mlx5_regexdev_ops =3D { > @@ -250,7 +253,7 @@ static struct mlx5_pci_driver mlx5_regex_driver =3D { > .driver_class =3D MLX5_CLASS_REGEX, > .pci_driver =3D { > .driver =3D { > - .name =3D "mlx5_regex", > + .name =3D RTE_STR(MLX5_REGEX_DRIVER_NAME), > }, > .id_table =3D mlx5_regex_pci_id_map, > .probe =3D mlx5_regex_pci_probe, > @@ -266,7 +269,7 @@ RTE_INIT(rte_mlx5_regex_init) > mlx5_pci_driver_register(&mlx5_regex_driver); > } >=20 > -RTE_LOG_REGISTER(mlx5_regex_logtype, pmd.regex.mlx5, NOTICE) > -RTE_PMD_EXPORT_NAME(net_mlx5_regex, __COUNTER__); > -RTE_PMD_REGISTER_PCI_TABLE(net_mlx5_regex, mlx5_regex_pci_id_map); > -RTE_PMD_REGISTER_KMOD_DEP(net_mlx5_regex, "* ib_uverbs & mlx5_core > & mlx5_ib"); > +RTE_LOG_REGISTER(mlx5_regex_logtype, MLX5_REGEX_LOG_NAME, > NOTICE) > +RTE_PMD_EXPORT_NAME(MLX5_REGEX_DRIVER_NAME, __COUNTER__); > +RTE_PMD_REGISTER_PCI_TABLE(MLX5_REGEX_DRIVER_NAME, > mlx5_regex_pci_id_map); > +RTE_PMD_REGISTER_KMOD_DEP(MLX5_REGEX_DRIVER_NAME, "* ib_uverbs > & mlx5_core & mlx5_ib"); > -- > 2.27.0 Acked-by: Ori Kam Thanks, Ori