mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2025-01-07 21:53:44 +00:00
3c9265ed19
Commit13247018d6
("scsi: target: iscsi: Fix hang in the iSCSI login code") removed iscsi_handle_login_thread_timeout() but left declaration. Commit3e1c81a95f
("iscsi-target: Refactor RX PDU logic + export request PDU handling") left iscsi_target_get_initial_payload() declaration. Commitd703ce2f7f
("iscsi/iser-target: Convert to command priv_size usage") remove iscsit_alloc_cmd() but left declaration. And finally, a few other declarations were never implenmented since introduction in commite48354ce07
("iscsi-target: Add iSCSI fabric support for target v4.1"). Signed-off-by: Yue Haibing <yuehaibing@huawei.com> Link: https://lore.kernel.org/r/20240810093437.2586476-1-yuehaibing@huawei.com Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
49 lines
2.4 KiB
C
49 lines
2.4 KiB
C
/* SPDX-License-Identifier: GPL-2.0 */
|
|
#ifndef ISCSI_TARGET_TPG_H
|
|
#define ISCSI_TARGET_TPG_H
|
|
|
|
#include <linux/types.h>
|
|
|
|
struct iscsi_np;
|
|
struct iscsit_session;
|
|
struct iscsi_tiqn;
|
|
struct iscsi_tpg_np;
|
|
struct se_node_acl;
|
|
struct sockaddr_storage;
|
|
|
|
extern struct iscsi_portal_group *iscsit_alloc_portal_group(struct iscsi_tiqn *, u16);
|
|
extern int iscsit_load_discovery_tpg(void);
|
|
extern void iscsit_release_discovery_tpg(void);
|
|
extern struct iscsi_portal_group *iscsit_get_tpg_from_np(struct iscsi_tiqn *,
|
|
struct iscsi_np *, struct iscsi_tpg_np **);
|
|
extern int iscsit_get_tpg(struct iscsi_portal_group *);
|
|
extern void iscsit_put_tpg(struct iscsi_portal_group *);
|
|
extern void iscsit_tpg_dump_params(struct iscsi_portal_group *);
|
|
extern int iscsit_tpg_add_portal_group(struct iscsi_tiqn *, struct iscsi_portal_group *);
|
|
extern int iscsit_tpg_del_portal_group(struct iscsi_tiqn *, struct iscsi_portal_group *,
|
|
int);
|
|
extern int iscsit_tpg_enable_portal_group(struct iscsi_portal_group *);
|
|
extern int iscsit_tpg_disable_portal_group(struct iscsi_portal_group *, int);
|
|
extern struct iscsi_node_attrib *iscsit_tpg_get_node_attrib(struct iscsit_session *);
|
|
extern struct iscsi_tpg_np *iscsit_tpg_locate_child_np(struct iscsi_tpg_np *, int);
|
|
extern struct iscsi_tpg_np *iscsit_tpg_add_network_portal(struct iscsi_portal_group *,
|
|
struct sockaddr_storage *, struct iscsi_tpg_np *,
|
|
int);
|
|
extern int iscsit_tpg_del_network_portal(struct iscsi_portal_group *,
|
|
struct iscsi_tpg_np *);
|
|
extern int iscsit_ta_authentication(struct iscsi_portal_group *, u32);
|
|
extern int iscsit_ta_login_timeout(struct iscsi_portal_group *, u32);
|
|
extern int iscsit_ta_generate_node_acls(struct iscsi_portal_group *, u32);
|
|
extern int iscsit_ta_default_cmdsn_depth(struct iscsi_portal_group *, u32);
|
|
extern int iscsit_ta_cache_dynamic_acls(struct iscsi_portal_group *, u32);
|
|
extern int iscsit_ta_demo_mode_write_protect(struct iscsi_portal_group *, u32);
|
|
extern int iscsit_ta_prod_mode_write_protect(struct iscsi_portal_group *, u32);
|
|
extern int iscsit_ta_demo_mode_discovery(struct iscsi_portal_group *, u32);
|
|
extern int iscsit_ta_default_erl(struct iscsi_portal_group *, u32);
|
|
extern int iscsit_ta_t10_pi(struct iscsi_portal_group *, u32);
|
|
extern int iscsit_ta_fabric_prot_type(struct iscsi_portal_group *, u32);
|
|
extern int iscsit_ta_tpg_enabled_sendtargets(struct iscsi_portal_group *, u32);
|
|
extern int iscsit_ta_login_keys_workaround(struct iscsi_portal_group *, u32);
|
|
|
|
#endif /* ISCSI_TARGET_TPG_H */
|