RDMA: Rename port_callback to init_port
Most provider routines are callback routines which ib core invokes. _callback suffix doesn't convey information about when such callback is invoked. Therefore, rename port_callback to init_port. Additionally, store the init_port function pointer in ib_device_ops, so that it can be accessed in subsequent patches when binding rdma device to net namespace. Signed-off-by: Parav Pandit <parav@mellanox.com> Signed-off-by: Leon Romanovsky <leonro@mellanox.com> Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
This commit is contained in:

committed by
Jason Gunthorpe

parent
081de9495c
commit
ea4baf7f11
@@ -243,7 +243,7 @@ static int ocrdma_register_device(struct ocrdma_dev *dev)
|
||||
}
|
||||
rdma_set_device_sysfs_group(&dev->ibdev, &ocrdma_attr_group);
|
||||
dev->ibdev.driver_id = RDMA_DRIVER_OCRDMA;
|
||||
return ib_register_device(&dev->ibdev, "ocrdma%d", NULL);
|
||||
return ib_register_device(&dev->ibdev, "ocrdma%d");
|
||||
}
|
||||
|
||||
static int ocrdma_alloc_resources(struct ocrdma_dev *dev)
|
||||
|
Reference in New Issue
Block a user