aboutsummaryrefslogtreecommitdiffstats
path: root/include/scsi/libfcoe.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/scsi/libfcoe.h')
-rw-r--r--include/scsi/libfcoe.h11
1 files changed, 10 insertions, 1 deletions
diff --git a/include/scsi/libfcoe.h b/include/scsi/libfcoe.h
index 7d18b500f2c1..1a84a3182da0 100644
--- a/include/scsi/libfcoe.h
+++ b/include/scsi/libfcoe.h
@@ -54,6 +54,15 @@ enum fip_state {
54 FIP_ST_ENABLED, 54 FIP_ST_ENABLED,
55}; 55};
56 56
57/*
58 * Modes:
59 * The mode is the state that is to be entered after link up.
60 * It must not change after fcoe_ctlr_init() sets it.
61 */
62#define FIP_MODE_AUTO FIP_ST_AUTO
63#define FIP_MODE_NON_FIP FIP_ST_NON_FIP
64#define FIP_MODE_FABRIC FIP_ST_ENABLED
65
57/** 66/**
58 * struct fcoe_ctlr - FCoE Controller and FIP state 67 * struct fcoe_ctlr - FCoE Controller and FIP state
59 * @state: internal FIP state for network link and FIP or non-FIP mode. 68 * @state: internal FIP state for network link and FIP or non-FIP mode.
@@ -152,7 +161,7 @@ struct fcoe_fcf {
152}; 161};
153 162
154/* FIP API functions */ 163/* FIP API functions */
155void fcoe_ctlr_init(struct fcoe_ctlr *); 164void fcoe_ctlr_init(struct fcoe_ctlr *, enum fip_state);
156void fcoe_ctlr_destroy(struct fcoe_ctlr *); 165void fcoe_ctlr_destroy(struct fcoe_ctlr *);
157void fcoe_ctlr_link_up(struct fcoe_ctlr *); 166void fcoe_ctlr_link_up(struct fcoe_ctlr *);
158int fcoe_ctlr_link_down(struct fcoe_ctlr *); 167int fcoe_ctlr_link_down(struct fcoe_ctlr *);