OSDN Git Service

IB/core: Do not set the gid type when reserving default entries
authorParav Pandit <parav@mellanox.com>
Tue, 5 Jun 2018 05:40:13 +0000 (08:40 +0300)
committerJason Gunthorpe <jgg@mellanox.com>
Mon, 18 Jun 2018 04:32:04 +0000 (22:32 -0600)
commita1a4caeebac95875eaf6c8afb5a9784566484b2e
tree14e3308f99a8c4ac14f380a2bea487a0dc8eeede
parentce397d215ccd07b8ae3f71db689aedb85d56ab40
IB/core: Do not set the gid type when reserving default entries

When default GIDs are added, their gid type is set by
ib_cache_gid_set_default_gid().  There is no need to set the gid type of a
free GID entry during GID table initialization.

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