[SCSI] libfc: Move the port_id into lport
commit7b2787ec15b9d1c2f716da61b0eec21a3f5e6520
authorRobert Love <robert.w.love@intel.com>
Fri, 7 May 2010 22:18:41 +0000 (7 15:18 -0700)
committerJames Bottomley <James.Bottomley@suse.de>
Mon, 17 May 2010 02:22:34 +0000 (16 22:22 -0400)
tree39b098d4253fa266ea75bf1f7feb75458e78b77d
parent5e4f8fe7b58f4da5043b7f219fe9193cddd9262e
[SCSI] libfc: Move the port_id into lport

This patch creates a port_id member in struct fc_lport.
This allows libfc to just deal with fc_lport instances
instead of calling into the fc_host to get the port_id.

This change helps in only using symbols necessary for
operation from the libfc structures. libfc still needs
to change the fc_host_port_id() if the port_id changes
so the presentation layer (scsi_transport_fc) can provide
the user with the correct value, but libfc shouldn't
rely on the presentation layer for operational values.

Signed-off-by: Robert Love <robert.w.love@intel.com>
Signed-off-by: James Bottomley <James.Bottomley@suse.de>
drivers/scsi/fcoe/libfcoe.c
drivers/scsi/libfc/fc_disc.c
drivers/scsi/libfc/fc_elsct.c
drivers/scsi/libfc/fc_exch.c
drivers/scsi/libfc/fc_fcp.c
drivers/scsi/libfc/fc_libfc.h
drivers/scsi/libfc/fc_lport.c
drivers/scsi/libfc/fc_npiv.c
include/scsi/fc_encode.h
include/scsi/libfc.h