Skip to content

Commit 42e9a92

Browse files
Robert Lovejejb
authored andcommitted
[SCSI] libfc: A modular Fibre Channel library
libFC is composed of 4 blocks supported by an exchange manager and a framing library. The upper 4 layers are fc_lport, fc_disc, fc_rport and fc_fcp. A LLD that uses libfc could choose to either use libfc's block, or using the transport template defined in libfc.h, override one or more blocks with its own implementation. The EM (Exchange Manager) manages exhcanges/sequences for all commands- ELS, CT and FCP. The framing library frames ELS and CT commands. The fc_lport block manages the library's representation of the host's FC enabled ports. The fc_disc block manages discovery of targets as well as handling changes that occur in the FC fabric (via. RSCN events). The fc_rport block manages the library's representation of other entities in the FC fabric. Currently the library uses this block for targets, its peer when in point-to-point mode and the directory server, but can be extended for other entities if needed. The fc_fcp block interacts with the scsi-ml and handles all I/O. Signed-off-by: Robert Love <robert.w.love@intel.com> [jejb: added include of delay.h to fix ppc64 compile prob spotted by sfr] Signed-off-by: James Bottomley <James.Bottomley@HansenPartnership.com>
1 parent f032c2f commit 42e9a92

13 files changed

Lines changed: 9509 additions & 0 deletions

File tree

‎drivers/scsi/Kconfig‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -603,6 +603,12 @@ config SCSI_FLASHPOINT
603603
substantial, so users of MultiMaster Host Adapters may not
604604
wish to include it.
605605

606+
config LIBFC
607+
tristate "LibFC module"
608+
depends on SCSI && SCSI_FC_ATTRS
609+
---help---
610+
Fibre Channel library module
611+
606612
config SCSI_DMX3191D
607613
tristate "DMX3191D SCSI support"
608614
depends on PCI && SCSI

‎drivers/scsi/Makefile‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ obj-$(CONFIG_SCSI_SAS_LIBSAS) += libsas/
3636
obj-$(CONFIG_SCSI_SRP_ATTRS) += scsi_transport_srp.o
3737
obj-$(CONFIG_SCSI_DH) += device_handler/
3838

39+
obj-$(CONFIG_LIBFC) += libfc/
3940
obj-$(CONFIG_ISCSI_TCP) += libiscsi.o libiscsi_tcp.o iscsi_tcp.o
4041
obj-$(CONFIG_INFINIBAND_ISER) += libiscsi.o
4142
obj-$(CONFIG_SCSI_A4000T) += 53c700.o a4000t.o

‎drivers/scsi/libfc/Makefile‎

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# $Id: Makefile
2+
3+
obj-$(CONFIG_LIBFC) += libfc.o
4+
5+
libfc-objs := \
6+
fc_disc.o \
7+
fc_exch.o \
8+
fc_elsct.o \
9+
fc_frame.o \
10+
fc_lport.o \
11+
fc_rport.o \
12+
fc_fcp.o

0 commit comments

Comments
 (0)