diff options
author | Matan Barak <matanb@mellanox.com> | 2015-10-28 16:52:41 +0200 |
---|---|---|
committer | Doug Ledford <dledford@redhat.com> | 2015-12-23 10:32:06 -0500 |
commit | cee3c4d0c56876f46f4584385603adb30a7cacf7 (patch) | |
tree | 19506443c5e8265f92f8a3cb73077e61c6deedf0 /include/rdma/ib_cache.h | |
parent | 9c584f04959620e587b3b3d358076dab48a8893c (diff) | |
download | linux-cee3c4d0c56876f46f4584385603adb30a7cacf7.tar.gz linux-cee3c4d0c56876f46f4584385603adb30a7cacf7.tar.bz2 linux-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