linux_dsm_epyc7002/drivers/infiniband/hw/nes
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
..
Kconfig RDMA/nes: Replace LRO with GRO 2016-02-29 17:11:57 -05:00
Makefile RDMA/nes: Support for Packed And Unaligned fpdus 2011-10-10 10:54:47 -07:00
nes_cm.c infiniband: i40iw, nes: don't use wall time for TCP sequence numbers 2018-07-11 12:10:19 -06:00
nes_cm.h nes: Change accelerated flag to bool 2017-12-22 13:33:30 -07:00
nes_context.h RDMA/nes: Copyright update 2012-01-30 16:18:07 -08:00
nes_hw.c IB/nes: Remove unnecessary parentheses 2018-09-21 12:00:50 -04:00
nes_hw.h RDMA/nes: Convert timers to use timer_setup() 2017-10-09 12:19:41 -04:00
nes_mgt.c treewide: kzalloc() -> kcalloc() 2018-06-12 16:19:22 -07:00
nes_mgt.h RDMA/nes: Copyright update 2012-01-30 16:18:07 -08:00
nes_nic.c RDMA/nes: Delete impossible debug prints 2018-09-05 15:58:30 -06:00
nes_utils.c Merge branch 'timer_setup' into for-next 2017-10-18 13:12:09 -04:00
nes_verbs.c RDMA: Fully setup the device name in ib_register_device 2018-09-26 13:51:36 -06:00
nes_verbs.h RDMA/nes: Adding queue drain functions 2016-05-13 19:39:59 -04:00
nes.c RDMA/nes: Delete impossible debug prints 2018-09-05 15:58:30 -06:00
nes.h RDMA/nes: Delete impossible debug prints 2018-09-05 15:58:30 -06:00