1 /* SPDX-License-Identifier: GPL-2.0 */
3 * Copyright (C) 2021 Broadcom. All Rights Reserved. The term
4 * “Broadcom” refers to Broadcom Inc. and/or its subsidiaries.
10 #include "../include/efc_common.h"
14 #include "efc_domain.h"
15 #include "efc_nport.h"
17 #include "efc_fabric.h"
18 #include "efc_device.h"
21 #define EFC_MAX_REMOTE_NODES 2048
22 #define NODE_SPARAMS_SIZE 256
24 enum efc_scsi_del_initiator_reason
{
25 EFC_SCSI_INITIATOR_DELETED
,
26 EFC_SCSI_INITIATOR_MISSING
,
29 enum efc_scsi_del_target_reason
{
30 EFC_SCSI_TARGET_DELETED
,
31 EFC_SCSI_TARGET_MISSING
,
34 #define EFC_FC_ELS_DEFAULT_RETRIES 3
36 #define domain_sm_trace(domain) \
37 efc_log_debug(domain->efc, "[domain:%s] %-20s %-20s\n", \
38 domain->display_name, __func__, efc_sm_event_name(evt)) \
40 #define domain_trace(domain, fmt, ...) \
41 efc_log_debug(domain->efc, \
42 "[%s]" fmt, domain->display_name, ##__VA_ARGS__) \
44 #define node_sm_trace() \
45 efc_log_debug(node->efc, "[%s] %-20s %-20s\n", \
46 node->display_name, __func__, efc_sm_event_name(evt)) \
48 #define nport_sm_trace(nport) \
49 efc_log_debug(nport->efc, \
50 "[%s] %-20s %-20s\n", nport->display_name, __func__, efc_sm_event_name(evt)) \
52 #endif /* __EFC_H__ */