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
@@ -3801,7 +3801,7 @@ int nes_register_ofa_device(struct nes_ib_device *nesibdev)
|
||||
|
||||
rdma_set_device_sysfs_group(&nesvnic->nesibdev->ibdev, &nes_attr_group);
|
||||
nesvnic->nesibdev->ibdev.driver_id = RDMA_DRIVER_NES;
|
||||
ret = ib_register_device(&nesvnic->nesibdev->ibdev, "nes%d", NULL);
|
||||
ret = ib_register_device(&nesvnic->nesibdev->ibdev, "nes%d");
|
||||
if (ret) {
|
||||
return ret;
|
||||
}
|
||||
|
Reference in New Issue
Block a user