IB/srpt: Fix ACL lookup during login
authorBart Van Assche <bart.vanassche@wdc.com>
Wed, 3 Jan 2018 21:39:16 +0000 (13:39 -0800)
committerJason Gunthorpe <jgg@mellanox.com>
Thu, 4 Jan 2018 03:07:51 +0000 (20:07 -0700)
commita1ffa4670cb97ae3a4b3e8535d88be5f643f7c3b
tree06c12d75f4015df72d208388f8f46d0cb7fbd533
parentbec40c26041de61162f7be9d2ce548c756ce0f65
IB/srpt: Fix ACL lookup during login

Make sure that the initiator port GUID is stored in ch->ini_guid.
Note: when initiating a connection sgid and dgid members in struct
sa_path_rec represent the source and destination GIDs. When accepting
a connection however sgid represents the destination GID and dgid the
source GID.

Fixes: commit 2bce1a6d2209 ("IB/srpt: Accept GUIDs as port names")
Signed-off-by: Bart Van Assche <bart.vanassche@wdc.com>
Cc: <stable@vger.kernel.org>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
drivers/infiniband/ulp/srpt/ib_srpt.c