IB/srp: Add orig_dgid sysfs attribute to scsi_host
authorIshai Rabinovitz <ishai@mellanox.co.il>
Mon, 7 May 2007 04:18:11 +0000 (21:18 -0700)
committerRoland Dreier <rolandd@cisco.com>
Mon, 7 May 2007 04:18:11 +0000 (21:18 -0700)
commit3633b3d096286cf21bc07b16fa6265fb006d0844
tree5219a4104fe5d663c1ef1a69ba2a0352da36c6e9
parentd6ef7d68f6f51c5b9de01c542dab8b90067a9c27
IB/srp: Add orig_dgid sysfs attribute to scsi_host

Add an orig_dgid attribute in sysfs for SRP scsi_hosts, so that
userspace can tell what the original dgid value written to the
add_target file was, even if the connection is redirected to a
different port while connecting.

Signed-off-by: Ishai Rabinovitz <ishai@mellanox.co.il>
Signed-off-by: Roland Dreier <rolandd@cisco.com>
drivers/infiniband/ulp/srp/ib_srp.c
drivers/infiniband/ulp/srp/ib_srp.h