diff options
author | Kamal Heib <[email protected]> | 2021-06-20 23:15:03 +0300 |
---|---|---|
committer | Jason Gunthorpe <[email protected]> | 2021-06-22 21:00:53 -0300 |
commit | feda49a1a550d271593cbe9d198527cfd78dd8c4 (patch) | |
tree | 230c127a9edc6cbcc0077b8ff904dbb4f5459b65 | |
parent | 2d3b2e4427e2d74085bd2c17ffd737875871c983 (diff) |
RDMA/irdma: Use the queried port attributes
Instead of hard code the gid_table_len value, use the value from the
ib_query_port() attributes.
Fixes: b48c24c2d710 ("RDMA/irdma: Implement device supported verb APIs")
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Kamal Heib <[email protected]>
Acked-by: Tatyana Nikolova <[email protected]>
Signed-off-by: Jason Gunthorpe <[email protected]>
-rw-r--r-- | drivers/infiniband/hw/irdma/verbs.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/infiniband/hw/irdma/verbs.c b/drivers/infiniband/hw/irdma/verbs.c index 1e48077f0af4..5bb46a4d26ff 100644 --- a/drivers/infiniband/hw/irdma/verbs.c +++ b/drivers/infiniband/hw/irdma/verbs.c @@ -3633,7 +3633,7 @@ static int irdma_iw_port_immutable(struct ib_device *ibdev, u32 port_num, err = ib_query_port(ibdev, port_num, &attr); if (err) return err; - immutable->gid_tbl_len = 1; + immutable->gid_tbl_len = attr.gid_tbl_len; return 0; } |