IB/core: Refer to RoCE port property instead of GID table property
authorParav Pandit <parav@mellanox.com>
Sun, 25 Mar 2018 10:40:21 +0000 (13:40 +0300)
committerJason Gunthorpe <jgg@mellanox.com>
Tue, 27 Mar 2018 22:22:12 +0000 (16:22 -0600)
commit4ab7cb4bf362dc3b85fd8ddac3b16949404be96b
treed88b075c1f71e55840f1ecda826e5e1fc309fe0a
parent3401857ea347e86a51adb844c5e9207dcdc0139b
IB/core: Refer to RoCE port property instead of GID table property

ib_find_gid_by_filter() searches GID with filter only for RoCE link
layer regardless of HCA's support for GID table.
Therefore, right way to lookup is compare RoCE port property and not
the GID table property.

Fixes: 99b27e3b5da0 ("IB/cache: Add ib_find_gid_by_filter cache API")
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/cache.c