]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
IB/sa: Add cached attribute containing SM information to SA port
authorAlex Vesker <valex@mellanox.com>
Wed, 6 Jul 2016 13:36:34 +0000 (16:36 +0300)
committerDoug Ledford <dledford@redhat.com>
Thu, 4 Aug 2016 01:03:36 +0000 (21:03 -0400)
commit3d3fd74239db7a6f7e07a762f5ee7140215aafc5
treedcbe05cc968591528688c77ad05fa20d3670c105
parentd1e09f304a1d9651c5059ebfeb696dc2effc9b32
IB/sa: Add cached attribute containing SM information to SA port

Added a new SA port attribute containing SM ClassPortInfo fields,
(ClassPortInfo fields: Table 126 IB Spec 1.3.). This is useful for
checking SM support for specific features. The attribute is cached
to avoid resending queries, caching is done when a successful
ClassPortInfo reply is received on the port. Invalidation of the
attribute is done on SM change events, SM re-registration events,
and SM LID change events. The fields in ClassPortInfo should not
change during SM runtime without an event.

Signed-off-by: Alex Vesker <valex@mellanox.com>
Reviewed by: Hal Rosenstock <hal@mellanox.com>
Signed-off-by: Leon Romanovsky <leon@kernel.org>
Signed-off-by: Doug Ledford <dledford@redhat.com>
drivers/infiniband/core/sa_query.c