Skip to contentSkip to conversation

RDMA/mlx5: Update mlx5_ib driver name

PATCH Applied Leon Romanovsky 2 participants 3 messages May 13, 2020 – May 18, 2020

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 RDMA/mlx5: Update mlx5_ib driver name

From: Shay Drory <[email protected]>

Current description doesn't include new devices, change it by updating to have more generic description and remove DRIVER_NAME and DRIVER_VERSION defines.

---
 drivers/infiniband/hw/mlx5/main.c | 11 +----------
 1 file changed, 1 insertion(+), 10 deletions(-)
drivers/infiniband/hw/mlx5/main.c +1 -10
index a707576a8337..3a9dde1f4bd9 100644
@@ -72,17 +72,10 @@
 #define UVERBS_MODULE_NAME mlx5_ib
 #include <rdma/uverbs_named_ioctl.h>
 
-#define DRIVER_NAME "mlx5_ib"
-#define DRIVER_VERSION "5.0-0"
-
 MODULE_AUTHOR("Eli Cohen <[email protected]>");
-MODULE_DESCRIPTION("Mellanox Connect-IB HCA IB driver");
+MODULE_DESCRIPTION("Mellanox 5th generation network adapters (ConnectX series) IB driver");
 MODULE_LICENSE("Dual BSD/GPL");
 
-static char mlx5_version[] =
-	DRIVER_NAME ": Mellanox Connect-IB Infiniband driver v"
-	DRIVER_VERSION "\n";
-
 struct mlx5_ib_event_work {
 	struct work_struct	work;
 	union {
@@ -7316,8 +7309,6 @@ static void *mlx5_ib_add(struct mlx5_core_dev *mdev)
 	int port_type_cap;
 	int num_ports;
 
-	printk_once(KERN_INFO "%s", mlx5_version);
-
 	if (MLX5_ESWITCH_MANAGER(mdev) &&
 	    mlx5_ib_eswitch_mode(mdev->priv.eswitch) == MLX5_ESWITCH_OFFLOADS) {
 		if (!mlx5_core_mp_enabled(mdev))

--
2.26.2

#1 lore raw
Quoted 11 lines · Leon Romanovsky

From: Shay Drory <[email protected]>

Current description doesn't include new devices, change it by updating to have more generic description and remove DRIVER_NAME and DRIVER_VERSION defines.

---
 drivers/infiniband/hw/mlx5/main.c | 11 +----------
 1 file changed, 1 insertion(+), 10 deletions(-)

Applied to for-next, thanks

Jason

#2 lore raw
Quoted 7 lines · Jason Gunthorpe
Quoted 6 lines · Leon Romanovsky

From: Shay Drory <[email protected]>

Current description doesn't include new devices, change it by updating to have more generic description and remove DRIVER_NAME and DRIVER_VERSION defines.

Quoted 7 lines
Quoted 5 lines
---
 drivers/infiniband/hw/mlx5/main.c | 11 +----------
 1 file changed, 1 insertion(+), 10 deletions(-)

Applied to for-next, thanks

Did you forget to push this commit to wip/jgg-for-next? I don't see it yet.

Thanks

Quoted 2 lines

Jason