diff options
author | Anand Khoje <anand.a.khoje@oracle.com> | 2021-07-12 17:56:23 +0530 |
---|---|---|
committer | Jason Gunthorpe <jgg@nvidia.com> | 2021-07-16 10:57:28 -0300 |
commit | 0bc0602ae8275aadc7288692331589350987cef7 (patch) | |
tree | 22c3f319afcb52fc89168ebd9034769a93adb155 /drivers/infiniband/core/device.c | |
parent | 8c1b4316c3faa38cb66bde200a8f2942fa6728b6 (diff) |
IB/core: Updating cache for subnet_prefix in config_non_roce_gid_cache()
Currently, cache for subnet_prefix was getting updated by reading port
attributes via ib_query_port. ib_query_port() calls ops.query_gid() to get
subnet_prefix and returns it via port_attr.
In ib_cache_update(), config_non_roce_gid_cache() obtains GIDs by calling
ops.query_gid(). We utilize this to store subnet_prefix in cache.
Link: https://lore.kernel.org/r/20210712122625.1147-2-anand.a.khoje@oracle.com
Suggested-by: Jason Gunthorpe <jgg@nvidia.com>
Suggested-by: Aru Kolappan <aru.kolappan@oracle.com>
Signed-off-by: Anand Khoje <anand.a.khoje@oracle.com>
Signed-off-by: Haakon Bugge <haakon.bugge@oracle.com>
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
Diffstat (limited to 'drivers/infiniband/core/device.c')
0 files changed, 0 insertions, 0 deletions