e48354ce07
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 <hch@lst.de> Reviewed-by: Andy Grover <agrover@redhat.com> Acked-by: Roland Dreier <roland@kernel.org> Signed-off-by: Nicholas A. Bellinger <nab@linux-iscsi.org>
42 lines
2.1 KiB
C
42 lines
2.1 KiB
C
#ifndef ISCSI_TARGET_H
|
|
#define ISCSI_TARGET_H
|
|
|
|
extern struct iscsi_tiqn *iscsit_get_tiqn_for_login(unsigned char *);
|
|
extern struct iscsi_tiqn *iscsit_get_tiqn(unsigned char *, int);
|
|
extern void iscsit_put_tiqn_for_login(struct iscsi_tiqn *);
|
|
extern struct iscsi_tiqn *iscsit_add_tiqn(unsigned char *);
|
|
extern void iscsit_del_tiqn(struct iscsi_tiqn *);
|
|
extern int iscsit_access_np(struct iscsi_np *, struct iscsi_portal_group *);
|
|
extern int iscsit_deaccess_np(struct iscsi_np *, struct iscsi_portal_group *);
|
|
extern struct iscsi_np *iscsit_add_np(struct __kernel_sockaddr_storage *,
|
|
char *, int);
|
|
extern int iscsit_reset_np_thread(struct iscsi_np *, struct iscsi_tpg_np *,
|
|
struct iscsi_portal_group *);
|
|
extern int iscsit_del_np(struct iscsi_np *);
|
|
extern int iscsit_add_reject_from_cmd(u8, int, int, unsigned char *, struct iscsi_cmd *);
|
|
extern int iscsit_logout_closesession(struct iscsi_cmd *, struct iscsi_conn *);
|
|
extern int iscsit_logout_closeconnection(struct iscsi_cmd *, struct iscsi_conn *);
|
|
extern int iscsit_logout_removeconnforrecovery(struct iscsi_cmd *, struct iscsi_conn *);
|
|
extern int iscsit_send_async_msg(struct iscsi_conn *, u16, u8, u8);
|
|
extern int iscsit_send_r2t(struct iscsi_cmd *, struct iscsi_conn *);
|
|
extern int iscsit_build_r2ts_for_cmd(struct iscsi_cmd *, struct iscsi_conn *, int);
|
|
extern void iscsit_thread_get_cpumask(struct iscsi_conn *);
|
|
extern int iscsi_target_tx_thread(void *);
|
|
extern int iscsi_target_rx_thread(void *);
|
|
extern int iscsit_close_connection(struct iscsi_conn *);
|
|
extern int iscsit_close_session(struct iscsi_session *);
|
|
extern void iscsit_fail_session(struct iscsi_session *);
|
|
extern int iscsit_free_session(struct iscsi_session *);
|
|
extern void iscsit_stop_session(struct iscsi_session *, int, int);
|
|
extern int iscsit_release_sessions_for_tpg(struct iscsi_portal_group *, int);
|
|
|
|
extern struct iscsit_global *iscsit_global;
|
|
extern struct target_fabric_configfs *lio_target_fabric_configfs;
|
|
|
|
extern struct kmem_cache *lio_dr_cache;
|
|
extern struct kmem_cache *lio_ooo_cache;
|
|
extern struct kmem_cache *lio_cmd_cache;
|
|
extern struct kmem_cache *lio_qr_cache;
|
|
extern struct kmem_cache *lio_r2t_cache;
|
|
|
|
#endif /*** ISCSI_TARGET_H ***/
|