diff options
| author | Konstantin Taranov <[email protected]> | 2024-04-10 08:42:28 +0000 |
|---|---|---|
| committer | Leon Romanovsky <[email protected]> | 2024-04-16 11:28:26 +0000 |
| commit | 4bda1d5332ec1b00262ad53f6a4cfa88190a048d (patch) | |
| tree | af1e199cc50cdf00a8f122b8686460fd21ab6da1 /drivers/infiniband/hw/mana/device.c | |
| parent | RDMA/mana_ib: Create and destroy rnic adapter (diff) | |
| download | kernel-4bda1d5332ec1b00262ad53f6a4cfa88190a048d.tar.gz kernel-4bda1d5332ec1b00262ad53f6a4cfa88190a048d.zip | |
RDMA/mana_ib: Implement port parameters
Implement port parameters for RNIC:
1) extend query_port() method
2) implement get_link_layer()
3) implement query_pkey()
Only port 1 can store GIDs.
Signed-off-by: Konstantin Taranov <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Leon Romanovsky <[email protected]>
Diffstat (limited to 'drivers/infiniband/hw/mana/device.c')
| -rw-r--r-- | drivers/infiniband/hw/mana/device.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/infiniband/hw/mana/device.c b/drivers/infiniband/hw/mana/device.c index 721e2ab8388f..ef04cc48264c 100644 --- a/drivers/infiniband/hw/mana/device.c +++ b/drivers/infiniband/hw/mana/device.c @@ -29,12 +29,14 @@ static const struct ib_device_ops mana_ib_dev_ops = { .destroy_rwq_ind_table = mana_ib_destroy_rwq_ind_table, .destroy_wq = mana_ib_destroy_wq, .disassociate_ucontext = mana_ib_disassociate_ucontext, + .get_link_layer = mana_ib_get_link_layer, .get_port_immutable = mana_ib_get_port_immutable, .mmap = mana_ib_mmap, .modify_qp = mana_ib_modify_qp, .modify_wq = mana_ib_modify_wq, .query_device = mana_ib_query_device, .query_gid = mana_ib_query_gid, + .query_pkey = mana_ib_query_pkey, .query_port = mana_ib_query_port, .reg_user_mr = mana_ib_reg_user_mr, |
