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.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/include/scsi/libfcoe.h b/include/scsi/libfcoe.h
index cfdb55f0937e..69eca4b7ce2b 100644
--- a/include/scsi/libfcoe.h
+++ b/include/scsi/libfcoe.h
@@ -159,6 +159,15 @@ struct fcoe_ctlr {
159}; 159};
160 160
161/** 161/**
162 * fcoe_ctlr_priv() - Return the private data from a fcoe_ctlr
163 * @cltr: The fcoe_ctlr whose private data will be returned
164 */
165static inline void *fcoe_ctlr_priv(const struct fcoe_ctlr *ctlr)
166{
167 return (void *)(ctlr + 1);
168}
169
170/**
162 * struct fcoe_fcf - Fibre-Channel Forwarder 171 * struct fcoe_fcf - Fibre-Channel Forwarder
163 * @list: list linkage 172 * @list: list linkage
164 * @time: system time (jiffies) when an advertisement was last received 173 * @time: system time (jiffies) when an advertisement was last received