linux_dsm_epyc7002/drivers/infiniband/hw/nes
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/{core,uverbs}: Move ib_umem_xxx functions from ib_core to ib_uverbs 2019-01-10 17:06:44 -07:00
Makefile
nes_cm.c RDMA: Start use ib_device_ops 2018-12-12 07:40:16 -07:00
nes_cm.h
nes_context.h
nes_hw.c IB/nes: Remove unnecessary parentheses 2018-09-21 12:00:50 -04:00
nes_hw.h
nes_mgt.c net: remove unsafe skb_insert() 2018-11-25 10:36:19 -08:00
nes_mgt.h
nes_nic.c
nes_utils.c
nes_verbs.c RDMA: Provide safe ib_alloc_device() function 2019-01-30 15:52:30 -07:00
nes_verbs.h
nes.c
nes.h