]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit
RDMA/core: Share driver structure size with core
authorLeon Romanovsky <leonro@mellanox.com>
Sun, 3 Feb 2019 12:55:50 +0000 (14:55 +0200)
committerJason Gunthorpe <jgg@mellanox.com>
Fri, 8 Feb 2019 23:50:58 +0000 (16:50 -0700)
commit30471d4b20335d9bd9ae9b2382a1e1e97d18d86d
treee467a16ce8529808d9bb36acaec3c52c2c5ba82e
parentc66f67414c1f88554485bb2a0abf8b5c0d741de7
RDMA/core: Share driver structure size with core

Add new macros to be used in drivers while registering ops structure and
IB/core while calling allocation routines, so drivers won't need to
perform kzalloc/kfree in their paths.

The change in allocation stage allows us to initialize common fields prior
to calling to drivers (e.g. restrack).

Signed-off-by: Leon Romanovsky <leonro@mellanox.com>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
drivers/infiniband/core/device.c
include/rdma/ib_verbs.h