RDMA/bnxt_re: Use rdma_read_gid_hw_context to retrieve HW gid index
authorSelvin Xavier <selvin.xavier@broadcom.com>
Wed, 19 Feb 2020 10:19:54 +0000 (02:19 -0800)
committerJason Gunthorpe <jgg@mellanox.com>
Wed, 19 Feb 2020 20:54:25 +0000 (16:54 -0400)
commit0a01623b74d41d91a595cbeb29e1a03648aec087
tree677831975fc640bf47db275f6d5f9e40bbf3345a
parent779820c2e1e9251ddfdce5dd43b0bba30cd22271
RDMA/bnxt_re: Use rdma_read_gid_hw_context to retrieve HW gid index

bnxt_re HW maintains a GID table with only a single entry for the two
duplicate GID entries (v1 and v2). Driver needs to map stack gid index to
the HW table gid index.  Use the new API rdma_read_gid_hw_context () to
retrieve the HW GID context to get the HW table index.

Link: https://lore.kernel.org/r/1582107594-5180-3-git-send-email-selvin.xavier@broadcom.com
Signed-off-by: Selvin Xavier <selvin.xavier@broadcom.com>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
drivers/infiniband/hw/bnxt_re/ib_verbs.c