diff options
author | Matan Barak <matanb@mellanox.com> | 2015-10-28 17:52:41 +0300 |
---|---|---|
committer | Doug Ledford <dledford@redhat.com> | 2015-12-23 18:32:06 +0300 |
commit | cee3c4d0c56876f46f4584385603adb30a7cacf7 (patch) | |
tree | 19506443c5e8265f92f8a3cb73077e61c6deedf0 /tools/net | |
parent | 9c584f04959620e587b3b3d358076dab48a8893c (diff) | |
download | linux-cee3c4d0c56876f46f4584385603adb30a7cacf7.tar.xz |
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 'tools/net')
0 files changed, 0 insertions, 0 deletions