RDMA: Move uverbs_abi_ver into struct ib_device_ops
No reason for every driver to emit code to set this, just make it part of the driver's existing static const ops structure. Signed-off-by: Jason Gunthorpe <jgg@mellanox.com> Reviewed-by: Leon Romanovsky <leonro@mellanox.com> Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
Этот коммит содержится в:
@@ -145,6 +145,7 @@ static const struct attribute_group ocrdma_attr_group = {
|
||||
|
||||
static const struct ib_device_ops ocrdma_dev_ops = {
|
||||
.driver_id = RDMA_DRIVER_OCRDMA,
|
||||
.uverbs_abi_ver = OCRDMA_ABI_VERSION,
|
||||
|
||||
.alloc_mr = ocrdma_alloc_mr,
|
||||
.alloc_pd = ocrdma_alloc_pd,
|
||||
@@ -203,7 +204,6 @@ static int ocrdma_register_device(struct ocrdma_dev *dev)
|
||||
memcpy(dev->ibdev.node_desc, OCRDMA_NODE_DESC,
|
||||
sizeof(OCRDMA_NODE_DESC));
|
||||
dev->ibdev.owner = THIS_MODULE;
|
||||
dev->ibdev.uverbs_abi_ver = OCRDMA_ABI_VERSION;
|
||||
dev->ibdev.uverbs_cmd_mask =
|
||||
OCRDMA_UVERBS(GET_CONTEXT) |
|
||||
OCRDMA_UVERBS(QUERY_DEVICE) |
|
||||
|
Ссылка в новой задаче
Block a user