OpenCloudOS-Kernel/drivers/infiniband/hw/bnxt_re
Leon Romanovsky 459cc69fa4 RDMA: Provide safe ib_alloc_device() function
All callers to ib_alloc_device() provide a larger size than struct
ib_device and rely on the fact that struct ib_device is embedded in their
driver specific structure as the first member.

Provide a safer variant of ib_alloc_device() that checks and enforces this
approach to make sure the drivers are using it right.

Signed-off-by: Leon Romanovsky <leonro@mellanox.com>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
2019-01-30 15:52:30 -07:00
..
Kconfig bnxt_re: add MAY_USE_DEVLINK dependency 2017-07-29 14:17:48 -07:00
Makefile infiniband: prefix header search paths with $(srctree)/ 2019-01-25 15:28:50 -07:00
bnxt_re.h RDMA/bnxt_re: Avoid resource leak in case the NQ registration fails 2018-10-16 00:03:51 -06:00
hw_counters.c RDMA/bnxt_re: Report out of sequence hw counters 2018-10-16 00:03:50 -06:00
hw_counters.h RDMA/bnxt_re: Report out of sequence hw counters 2018-10-16 00:03:50 -06:00
ib_verbs.c IB/{core,hw}: Have ib_umem_get extract the ib_ucontext from ib_udata 2019-01-10 17:07:45 -07:00
ib_verbs.h RDMA: Mark if destroy address handle is in a sleepable context 2018-12-19 16:28:03 -07:00
main.c RDMA: Provide safe ib_alloc_device() function 2019-01-30 15:52:30 -07:00
qplib_fp.c RDMA/bnxt_re: Avoid accessing nq->bar_reg_iomem in failure case 2018-10-16 00:03:50 -06:00
qplib_fp.h RDMA/bnxt_re: Fix broken RoCE driver due to recent L2 driver changes 2018-05-25 11:03:47 -06:00
qplib_rcfw.c Merge branch 'devx-async' into k.o/for-next 2019-01-29 13:49:31 -07:00
qplib_rcfw.h RDMA/bnxt_re: Increase depth of control path command queue 2018-12-19 16:37:33 -07:00
qplib_res.c cross-tree: phase out dma_zalloc_coherent() 2019-01-08 07:58:37 -05:00
qplib_res.h RDMA/bnxt_re: Query HWRM Interface version from FW 2018-12-19 16:37:32 -07:00
qplib_sp.c infiniband: bnxt_re: qplib: Check the return value of send_message 2019-01-02 16:04:24 -07:00
qplib_sp.h RDMA/bnxt_re: Make use of destroy AH sleepable flag 2018-12-19 16:28:04 -07:00
roce_hsi.h RDMA/bnxt_re: Report out of sequence hw counters 2018-10-16 00:03:50 -06:00