Skip to content

Commit e48354c

Browse files
author
Nicholas Bellinger
committed
iscsi-target: Add iSCSI fabric support for target v4.1
The Linux-iSCSI.org target module is a full featured in-kernel software implementation of iSCSI target mode (RFC-3720) for the current WIP mainline target v4.1 infrastructure code for the v3.1 kernel. More information can be found here: http://linux-iscsi.org/wiki/ISCSI This includes support for: * RFC-3720 defined request / response state machines and support for all defined iSCSI operation codes from Section 10.2.1.2 using libiscsi include/scsi/iscsi_proto.h PDU definitions * Target v4.1 compatible control plane using the generic layout in target_core_fabric_configfs.c and fabric dependent attributes within /sys/kernel/config/target/iscsi/ subdirectories. * Target v4.1 compatible iSCSI statistics based on RFC-4544 (iSCSI MIBS) * Support for IPv6 and IPv4 network portals in M:N mapping to TPGs * iSCSI Error Recovery Hierarchy support * Per iSCSI connection RX/TX thread pair scheduling affinity * crc32c + crc32c_intel SSEv4 instruction offload support using libcrypto * CHAP Authentication support using libcrypto * Conversion to use internal SGl allocation with iscsit_alloc_buffs() -> transport_generic_map_mem_to_cmd() (nab: Fix iscsi_proto.h struct scsi_lun usage from linux-next in commit: iscsi: Use struct scsi_lun in iscsi structs instead of u8[8]) (nab: Fix 32-bit compile warnings) Reviewed-by: Christoph Hellwig <[email protected]> Reviewed-by: Andy Grover <[email protected]> Acked-by: Roland Dreier <[email protected]> Signed-off-by: Nicholas A. Bellinger <[email protected]>
1 parent 8304bbc commit e48354c

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

41 files changed

+22099
-1
lines changed

drivers/target/Kconfig

+1
Original file line numberDiff line numberDiff line change
@@ -31,5 +31,6 @@ config TCM_PSCSI
3131

3232
source "drivers/target/loopback/Kconfig"
3333
source "drivers/target/tcm_fc/Kconfig"
34+
source "drivers/target/iscsi/Kconfig"
3435

3536
endif

drivers/target/Makefile

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,5 +24,5 @@ obj-$(CONFIG_TCM_PSCSI) += target_core_pscsi.o
2424

2525
# Fabric modules
2626
obj-$(CONFIG_LOOPBACK_TARGET) += loopback/
27-
2827
obj-$(CONFIG_TCM_FC) += tcm_fc/
28+
obj-$(CONFIG_ISCSI_TARGET) += iscsi/

drivers/target/iscsi/Kconfig

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
config ISCSI_TARGET
2+
tristate "Linux-iSCSI.org iSCSI Target Mode Stack"
3+
select CRYPTO
4+
select CRYPTO_CRC32C
5+
select CRYPTO_CRC32C_INTEL if X86
6+
help
7+
Say M here to enable the ConfigFS enabled Linux-iSCSI.org iSCSI
8+
Target Mode Stack.

drivers/target/iscsi/Makefile

+20
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
iscsi_target_mod-y += iscsi_target_parameters.o \
2+
iscsi_target_seq_pdu_list.o \
3+
iscsi_target_tq.o \
4+
iscsi_target_auth.o \
5+
iscsi_target_datain_values.o \
6+
iscsi_target_device.o \
7+
iscsi_target_erl0.o \
8+
iscsi_target_erl1.o \
9+
iscsi_target_erl2.o \
10+
iscsi_target_login.o \
11+
iscsi_target_nego.o \
12+
iscsi_target_nodeattrib.o \
13+
iscsi_target_tmr.o \
14+
iscsi_target_tpg.o \
15+
iscsi_target_util.o \
16+
iscsi_target.o \
17+
iscsi_target_configfs.o \
18+
iscsi_target_stat.o
19+
20+
obj-$(CONFIG_ISCSI_TARGET) += iscsi_target_mod.o

0 commit comments

Comments
 (0)