IB/cache: Add ib_find_gid_by_filter cache API
authorMatan Barak <matanb@mellanox.com>
Thu, 15 Oct 2015 15:38:50 +0000 (18:38 +0300)
committerDoug Ledford <dledford@redhat.com>
Thu, 22 Oct 2015 03:48:17 +0000 (23:48 -0400)
commit99b27e3b5da0871cb43980960fb14ff625adffad
treed34bd4b4fc3e5eddbf819beb67924e6338131b33
parentabae1b71dd37bab506b14a6cf6ba7148f4d57232
IB/cache: Add ib_find_gid_by_filter cache API

GID cache API users might want to search for GIDs with specific
attributes rather than just specifying GID, net device and port.
This is used in a later patch, where we find the sgid index by
L2 Ethernet attributes.

Signed-off-by: Matan Barak <matanb@mellanox.com>
Reviewed-By: Devesh Sharma <devesh.sharma@avagotech.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
drivers/infiniband/core/cache.c
include/rdma/ib_cache.h