IB/core: Introduce and use rdma_gid_table()
authorParav Pandit <parav@mellanox.com>
Tue, 22 May 2018 17:33:46 +0000 (20:33 +0300)
committerJason Gunthorpe <jgg@mellanox.com>
Thu, 24 May 2018 15:39:25 +0000 (09:39 -0600)
commit724631a9c6e98e39480c70047cc3fe2d1f25e1fc
treea9dc2a4439a1cdea36282dde6d64dc740594c816
parent25e62655c79395c596601a35805c3c7376d097b6
IB/core: Introduce and use rdma_gid_table()

There are several places a gid table is accessed.
Have a helper tiny function rdma_gid_table() to avoid code
duplication at such places.

Signed-off-by: Parav Pandit <parav@mellanox.com>
Signed-off-by: Leon Romanovsky <leonro@mellanox.com>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
drivers/infiniband/core/cache.c