linux/drivers/infiniband/hw/hns
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
..
hns_roce_ah.c RDMA: Mark if destroy address handle is in a sleepable context 2018-12-19 16:28:03 -07:00
hns_roce_alloc.c cross-tree: phase out dma_zalloc_coherent() 2019-01-08 07:58:37 -05:00
hns_roce_cmd.c RDMA/hns: Add reset process for RoCE in hip08 2018-05-30 20:45:02 -04:00
hns_roce_cmd.h RDMA/hns: Add timer allocation support for hip08 2019-01-24 09:22:30 -07:00
hns_roce_common.h RDMA/hns: Update posting & querying mailbox 2018-12-11 12:04:06 -07:00
hns_roce_cq.c IB/{core,hw}: Have ib_umem_get extract the ib_ucontext from ib_udata 2019-01-10 17:07:45 -07:00
hns_roce_db.c IB/{core,hw}: Have ib_umem_get extract the ib_ucontext from ib_udata 2019-01-10 17:07:45 -07:00
hns_roce_device.h RDMA/hns: Add timer allocation support for hip08 2019-01-24 09:22:30 -07:00
hns_roce_hem.c RDMA/hns: Add timer allocation support for hip08 2019-01-24 09:22:30 -07:00
hns_roce_hem.h RDMA/hns: Add timer allocation support for hip08 2019-01-24 09:22:30 -07:00
hns_roce_hw_v1.c RDMA: Provide safe ib_alloc_device() function 2019-01-30 15:52:30 -07:00
hns_roce_hw_v1.h RDMA/hns: Fix endian conversions and annotations 2018-07-11 14:09:25 -06:00
hns_roce_hw_v2.c RDMA: Provide safe ib_alloc_device() function 2019-01-30 15:52:30 -07:00
hns_roce_hw_v2.h RDMA/hns: Add timer allocation support for hip08 2019-01-24 09:22:30 -07:00
hns_roce_main.c RDMA/hns: Add timer allocation support for hip08 2019-01-24 09:22:30 -07:00
hns_roce_mr.c IB/{core,hw}: Have ib_umem_get extract the ib_ucontext from ib_udata 2019-01-10 17:07:45 -07:00
hns_roce_pd.c RDMA: Clear PD objects during their allocation 2019-01-10 17:08:52 -07:00
hns_roce_qp.c RDMA/hns: Add SCC context clr support for hip08 2019-01-24 09:22:30 -07:00
hns_roce_srq.c IB/{core,hw}: Have ib_umem_get extract the ib_ucontext from ib_udata 2019-01-10 17:07:45 -07:00
Kconfig IB/{core,uverbs}: Move ib_umem_xxx functions from ib_core to ib_uverbs 2019-01-10 17:06:44 -07:00
Makefile infiniband: prefix header search paths with $(srctree)/ 2019-01-25 15:28:50 -07:00