]> git.karo-electronics.de Git - karo-tx-linux.git/commit
IB/cm: cm_init_av_by_path should find a GID by its netdevice
authorMatan Barak <matanb@mellanox.com>
Thu, 15 Oct 2015 15:38:48 +0000 (18:38 +0300)
committerDoug Ledford <dledford@redhat.com>
Thu, 22 Oct 2015 03:48:17 +0000 (23:48 -0400)
commitc2c6ff134596e2691de7506667b712bef93cb1f0
tree32ad881d5c12c099985032f1003523ab03db43b8
parentba36e37fd3ca3dc8f215b14bcfdccf9f41b65767
IB/cm: cm_init_av_by_path should find a GID by its netdevice

Previously, the CM has searched the cache for any sgid_index whose
GID matches the path's GID. Since the path record stores the net
device, the CM should now search only for GIDs which originated from
this net device.

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/cm.c