]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/commit - drivers/scsi/libfc/fc_disc.c
[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)
commit0685230c59b5482e04ab50e7afc51119ceaba651
tree64fbf16efb314efc5cba7e313342f0d57ce81e95
parentfdb068c6cd6e30d43664f856d3530715a5742713
[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