IB/core: Store default GID property per-table instead of per-entry
authorParav Pandit <parav@mellanox.com>
Tue, 5 Jun 2018 05:40:14 +0000 (08:40 +0300)
committerJason Gunthorpe <jgg@mellanox.com>
Mon, 18 Jun 2018 04:32:04 +0000 (22:32 -0600)
commit1c36cf912ad19c99592c7d089aed5d1c321a678a
treeb07f40f4ec6dda31729d245396032858531a7e80
parenta1a4caeebac95875eaf6c8afb5a9784566484b2e
IB/core: Store default GID property per-table instead of per-entry

There are at max one or two default GIDs for RoCE. Instead of storing
a default GID property for all the GIDs, store default GID indices as
individual bit per table.

This allows a future simplification to get rid of the GID property field.

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