]> git.baikalelectronics.ru Git - kernel.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)
commit74dfa2250cec06f3e536f2a25e96b43124543642
tree04b5d4f369d1669773fde1f960afcf961fcb18da
parent6109fb70da8aeb367a91cc93d949f3ec7ff12122
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