]> www.infradead.org Git - users/jedix/linux-maple.git/commit
IB/cm: avoid query device in CM REQ/REP
authorFrancisco Triviño <francisco.trivino@oracle.com>
Mon, 14 Nov 2016 16:46:14 +0000 (08:46 -0800)
committerSantosh Shilimkar <santosh.shilimkar@oracle.com>
Mon, 14 Nov 2016 16:46:14 +0000 (08:46 -0800)
commit0f82ab40b762ad23e30db7de4a91db56fd8b42e6
tree4eb21a094ee35230cbc613230a6aabbf516db04d
parent5e77ccb13ef5aa8c0bb7bc684d20845e9f99babe
IB/cm: avoid query device in CM REQ/REP

The query device needed in CM REQ/REP is a bit expensive since
it involves a MAD query and also it is not saved in the cache.
When the driver that holds the local device is different from
sif then there is no need to go through the query device. If
sif driver is identified, then we still need to go through the
query device in order to get the specific vendor id. This last
is to make sure the software workaround is applied only to the
PSIF revisions that are affected.

This patch filters those cases and avoids unnecessary MAD queries
when driver is different from sif.

Orabug: 24785622

Reviewed-by: Håkon Bugge <haakon.bugge@oracle.com>
Reviewed-by: Santosh Shilimkar <santosh.shilimkar@oracle.com>
Signed-off-by: Francisco Triviño <francisco.trivino@oracle.com>
drivers/infiniband/core/cm.c