RDMA: Start use ib_device_ops
Make all the required change to start use the ib_device_ops structure. Signed-off-by: Kamal Heib <kamalheib1@gmail.com> Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
This commit is contained in:

committed by
Jason Gunthorpe

orang tua
02a42f8e40
melakukan
3023a1e936
@@ -150,7 +150,7 @@ static int get_port_state(struct ib_device *ibdev,
|
||||
int ret;
|
||||
|
||||
memset(&attr, 0, sizeof(attr));
|
||||
ret = ibdev->query_port(ibdev, port_num, &attr);
|
||||
ret = ibdev->ops.query_port(ibdev, port_num, &attr);
|
||||
if (!ret)
|
||||
*state = attr.state;
|
||||
return ret;
|
||||
|
Reference in New Issue
Block a user