aboutsummaryrefslogtreecommitdiffstats
path: root/include/rdma/ib_cache.h
diff options
context:
space:
mode:
authorMatan Barak <matanb@mellanox.com>2015-10-28 16:52:41 +0200
committerDoug Ledford <dledford@redhat.com>2015-12-23 10:32:06 -0500
commitcee3c4d0c56876f46f4584385603adb30a7cacf7 (patch)
tree19506443c5e8265f92f8a3cb73077e61c6deedf0 /include/rdma/ib_cache.h
parentIB/core: Change per-entry lock in RoCE GID table to one lock (diff)
downloadlinux-dev-cee3c4d0c56876f46f4584385603adb30a7cacf7.tar.xz
linux-dev-cee3c4d0c56876f46f4584385603adb30a7cacf7.zip
IB/core: don't search the GID table twice
Previously, we've searched the GID table twice: first when we searched the table for a GID matching the proposed new one, and second when we didn't find a match, we searched again for an empty GID slot in the table. Instead, search the table once noting the first empty slot as we search for our target GID. Signed-off-by: Matan Barak <matanb@mellanox.com> Reviewed-by: Haggai Eran <haggaie@mellanox.com> Signed-off-by: Doug Ledford <dledford@redhat.com>
Diffstat (limited to 'include/rdma/ib_cache.h')
0 files changed, 0 insertions, 0 deletions