]> git.baikalelectronics.ru Git - kernel.git/commit
RDMA/irdma: Use the queried port attributes
authorKamal Heib <kamalheib1@gmail.com>
Sun, 20 Jun 2021 20:15:03 +0000 (23:15 +0300)
committerJason Gunthorpe <jgg@nvidia.com>
Wed, 23 Jun 2021 00:00:53 +0000 (21:00 -0300)
commit519295c40265c174066b76a63a7d780f644eb767
tree230c127a9edc6cbcc0077b8ff904dbb4f5459b65
parent81ebc728c3df2b30d14efddd974245f7327161c5
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: 434ed3ceee5a ("RDMA/irdma: Implement device supported verb APIs")
Link: https://lore.kernel.org/r/20210620201503.67055-1-kamalheib1@gmail.com
Signed-off-by: Kamal Heib <kamalheib1@gmail.com>
Acked-by: Tatyana Nikolova <tatyana.e.nikolova@intel.com>
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
drivers/infiniband/hw/irdma/verbs.c