linux_dsm_epyc7002/drivers/infiniband/hw/vmw_pvrdma
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 IB: Add vmw_pvrdma driver 2016-12-14 14:55:10 -05:00
Makefile RDMA/vmw_pvrdma: Add shared receive queue support 2017-11-13 16:18:33 -05:00
pvrdma_cmd.c IB: Add vmw_pvrdma driver 2016-12-14 14:55:10 -05:00
pvrdma_cq.c IB/{core,hw}: Have ib_umem_get extract the ib_ucontext from ib_udata 2019-01-10 17:07:45 -07:00
pvrdma_dev_api.h RDMA/vmw_pvrdma: Support upto 64-bit PFNs 2019-01-29 21:40:28 -07:00
pvrdma_doorbell.c IB: Add vmw_pvrdma driver 2016-12-14 14:55:10 -05:00
pvrdma_main.c RDMA: Provide safe ib_alloc_device() function 2019-01-30 15:52:30 -07:00
pvrdma_misc.c RDMA/vmw_pvrdma: Add RoCEv2 support 2017-08-24 17:34:57 -04:00
pvrdma_mr.c IB/{core,hw}: Have ib_umem_get extract the ib_ucontext from ib_udata 2019-01-10 17:07:45 -07:00
pvrdma_qp.c IB/{core,hw}: Have ib_umem_get extract the ib_ucontext from ib_udata 2019-01-10 17:07:45 -07:00
pvrdma_ring.h IB/pvrdma: Remove unused function 2017-08-22 15:42:57 -04:00
pvrdma_srq.c IB/{core,hw}: Have ib_umem_get extract the ib_ucontext from ib_udata 2019-01-10 17:07:45 -07:00
pvrdma_verbs.c RDMA/vmw_pvrdma: Support upto 64-bit PFNs 2019-01-29 21:40:28 -07:00
pvrdma_verbs.h RDMA: Mark if destroy address handle is in a sleepable context 2018-12-19 16:28:03 -07:00
pvrdma.h RDMA/vmw_pvrdma: Delete unused function 2018-06-27 15:08:49 -06:00