]> git.baikalelectronics.ru Git - kernel.git/commit
[SCSI] libfc: add discovery-private pointer for LLD
authorJoe Eykholt <jeykholt@cisco.com>
Tue, 20 Jul 2010 22:19:53 +0000 (15:19 -0700)
committerJames Bottomley <James.Bottomley@suse.de>
Wed, 28 Jul 2010 14:05:52 +0000 (09:05 -0500)
commit5f5e713f38a0b11199b8c3a19e8dc8b2bf789545
tree64fbf16efb314efc5cba7e313342f0d57ce81e95
parent5a90b9af682b94dd645e514d092ef8fce06e45df
[SCSI] libfc: add discovery-private pointer for LLD

For VN_port to VN_port mode, FIP will do discovery and needs a
way to find its state from the local port or discovery structure.
It seems that any other LLD that implements its own discovery
would also need something like this.

Replace disc->lport with disc->priv, and use container_of to
find the lport.  We could use disc->priv for that, but
container_of is smaller and faster.

Signed-off-by: Joe Eykholt <jeykholt@cisco.com>
Signed-off-by: Robert Love <robert.w.love@intel.com>
Signed-off-by: James Bottomley <James.Bottomley@suse.de>
drivers/scsi/libfc/fc_disc.c
drivers/scsi/libfc/fc_libfc.h
include/scsi/libfc.h