]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit
IB/core: Updating cache for subnet_prefix in config_non_roce_gid_cache()
authorAnand Khoje <anand.a.khoje@oracle.com>
Mon, 12 Jul 2021 12:26:23 +0000 (17:56 +0530)
committerJason Gunthorpe <jgg@nvidia.com>
Fri, 16 Jul 2021 13:57:28 +0000 (10:57 -0300)
commit0bc0602ae8275aadc7288692331589350987cef7
tree22c3f319afcb52fc89168ebd9034769a93adb155
parent8c1b4316c3faa38cb66bde200a8f2942fa6728b6
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>
drivers/infiniband/core/cache.c