regex/mlx5: fix registered driver name
authorThomas Monjalon <thomas@monjalon.net>
Wed, 5 Aug 2020 14:51:01 +0000 (16:51 +0200)
committerThomas Monjalon <thomas@monjalon.net>
Wed, 5 Aug 2020 16:36:44 +0000 (18:36 +0200)
commit50458c9dc3219d1b6a48f8a8baad7da322b16b85
tree8c722dec78ecfa4b480d2a1fa16cf2de94126733
parent118494d3ad0882a3be77a99457f8659df15756d6
regex/mlx5: fix registered driver name

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.

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.

Fixes: cfc672a90b74 ("regex/mlx5: support probing")

Signed-off-by: Thomas Monjalon <thomas@monjalon.net>
Acked-by: Ori Kam <orika@mellanox.com>
drivers/regex/mlx5/mlx5_regex.c