]> asedeno.scripts.mit.edu Git - linux.git/commit
IB/cm: Reduce dependency on gid attribute ndev check
authorParav Pandit <parav@mellanox.com>
Thu, 2 May 2019 07:48:02 +0000 (10:48 +0300)
committerJason Gunthorpe <jgg@mellanox.com>
Fri, 3 May 2019 14:10:02 +0000 (11:10 -0300)
commit8f9748602491295b305960cd2cd4976ad15cb04f
tree04b5d4f369d1669773fde1f960afcf961fcb18da
parent3bf3e2b881c1412d0329ce9376dfe1518489b8fc
IB/cm: Reduce dependency on gid attribute ndev check

GID type to path record type conversion can be done directly based on port
type and gid attribute type.  There is no need to find out using indirect
way by its GID attribute's ndev field.

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/cm.c