[dpdk-dev] [PATCH 2/2] common/mlx5: rename driver name to include PCI notation
From: Michael Baum <hidden>
Date: 2021-03-15 21:06:27
Subsystem:
networking drivers, the rest · Maintainers:
Andrew Lunn, "David S. Miller", Eric Dumazet, Jakub Kicinski, Paolo Abeni, Linus Torvalds
From: Asaf Penso <redacted> The current define for MLX5_DRIVER_NAME refers specially for the PCI driver. The define itself does not mention PCI and this is confusing. Rename from MLX5_DRIVER_NAME to MLX5_PCI_DRIVER_NAME. Signed-off-by: Asaf Penso <redacted> --- drivers/common/mlx5/mlx5_common.h | 2 +- drivers/common/mlx5/mlx5_common_pci.c | 2 +- drivers/net/mlx5/mlx5.c | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/drivers/common/mlx5/mlx5_common.h b/drivers/common/mlx5/mlx5_common.h
index fc1ac75..84c3960 100644
--- a/drivers/common/mlx5/mlx5_common.h
+++ b/drivers/common/mlx5/mlx5_common.h@@ -19,7 +19,7 @@ #include "mlx5_devx_cmds.h" /* Reported driver name. */ -#define MLX5_DRIVER_NAME "mlx5_pci" +#define MLX5_PCI_DRIVER_NAME "mlx5_pci" /* Bit-field manipulation. */ #define BITFIELD_DECLARE(bf, type, size) \
diff --git a/drivers/common/mlx5/mlx5_common_pci.c b/drivers/common/mlx5/mlx5_common_pci.c
index 2b65768..3783b0e 100644
--- a/drivers/common/mlx5/mlx5_common_pci.c
+++ b/drivers/common/mlx5/mlx5_common_pci.c@@ -415,7 +415,7 @@ class_name_to_value(const char *class_name) static struct rte_pci_driver mlx5_pci_driver = { .driver = { - .name = MLX5_DRIVER_NAME, + .name = MLX5_PCI_DRIVER_NAME, }, .probe = mlx5_common_pci_probe, .remove = mlx5_common_pci_remove,
diff --git a/drivers/net/mlx5/mlx5.c b/drivers/net/mlx5/mlx5.c
index abd7ff70..a22bbc9 100644
--- a/drivers/net/mlx5/mlx5.c
+++ b/drivers/net/mlx5/mlx5.c@@ -2094,7 +2094,7 @@ struct mlx5_dev_ctx_shared * (dev->device == &pci_dev->device || (dev->device->driver && dev->device->driver->name && - !strcmp(dev->device->driver->name, MLX5_DRIVER_NAME)))) + !strcmp(dev->device->driver->name, MLX5_PCI_DRIVER_NAME)))) break; port_id++; }
@@ -2215,7 +2215,7 @@ struct mlx5_dev_ctx_shared * .driver_class = MLX5_CLASS_NET, .pci_driver = { .driver = { - .name = MLX5_DRIVER_NAME, + .name = MLX5_PCI_DRIVER_NAME, }, .id_table = mlx5_pci_id_map, .probe = mlx5_os_pci_probe,
--
1.8.3.1