linux_dsm_epyc7002/drivers/infiniband/hw/cxgb4
Jason Gunthorpe e349f858d2 RDMA: Fully setup the device name in ib_register_device
The current code has two copies of the device name, ibdev->dev and
dev_name(&ibdev->dev), and they are setup at different times, which is
very confusing.

Set them both up at the same time and make dev_name() the lead name, which
is the proper use of the driver core APIs. To make it very clear that the
name is not valid until registration pass it in to the
ib_register_device() call rather than messing with ibdev->name directly.

Also the reorganization now checks that dev_name is unique even if it does
not contain a %.

Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
Acked-by: Adit Ranadive <aditr@vmware.com>
Reviewed-by: Steve Wise <swise@opengridcomputing.com>
Acked-by: Devesh Sharma <devesh.sharma@broadcom.com>
Reviewed-by: Shiraz Saleem <shiraz.saleem@intel.com>
Reviewed-by: Leon Romanovsky <leonro@mellanox.com>
Reviewed-by: Dennis Dalessandro <dennis.dalessandro@intel.com>
Reviewed-by: Michael J. Ruhl <michael.j.ruhl@intel.com>
2018-09-26 13:51:36 -06:00
..
cm.c RDMA/cxgb4: remove redundant null pointer check before kfree_skb 2018-09-21 12:00:50 -04:00
cq.c iw_cxgb4: Use proper enumerated type in c4iw_bar2_addrs 2018-09-25 14:37:17 -06:00
device.c iw_cxgb4: Support FW write completion WR 2018-08-02 20:16:02 -06:00
ev.c rdma/cxgb4: Add support for 64Byte cqes 2018-07-13 11:52:55 -06:00
id_table.c treewide: kmalloc() -> kmalloc_array() 2018-06-12 16:19:22 -07:00
iw_cxgb4.h iw_cxgb4: pass window scale in flowc work request 2018-08-08 09:54:55 -06:00
Kconfig iw_cxgb4: add INFINIBAND_ADDR_TRANS dependency 2018-06-04 09:35:24 -06:00
Makefile iw_cxgb4: dump detailed driver-specific QP information 2018-05-03 15:51:27 -04:00
mem.c iw_cxgb4: correctly enforce the max reg_mr depth 2018-06-25 15:27:51 -06:00
provider.c RDMA: Fully setup the device name in ib_register_device 2018-09-26 13:51:36 -06:00
qp.c iw_cxgb4: Use proper enumerated type in c4iw_bar2_addrs 2018-09-25 14:37:17 -06:00
resource.c rdma/cxgb4: Add support for kernel mode SRQ's 2018-07-25 21:08:04 -06:00
restrack.c iw_cxgb4: provide detailed driver-specific MR information 2018-05-24 09:39:25 -06:00
t4.h iw_cxgb4: Support FW write completion WR 2018-08-02 20:16:02 -06:00
t4fw_ri_api.h iw_cxgb4: Support FW write completion WR 2018-08-02 20:16:02 -06:00