diff options
Diffstat (limited to 'include/scsi/libfcoe.h')
-rw-r--r-- | include/scsi/libfcoe.h | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/include/scsi/libfcoe.h b/include/scsi/libfcoe.h index 941818f29f59..c41f7d0c6efc 100644 --- a/include/scsi/libfcoe.h +++ b/include/scsi/libfcoe.h | |||
@@ -124,24 +124,6 @@ static inline u16 skb_fc_rxid(const struct sk_buff *skb) | |||
124 | return be16_to_cpu(skb_fc_header(skb)->fh_rx_id); | 124 | return be16_to_cpu(skb_fc_header(skb)->fh_rx_id); |
125 | } | 125 | } |
126 | 126 | ||
127 | /* FIXME - DMA_BIDIRECTIONAL ? */ | ||
128 | #define skb_cb(skb) ((struct fcoe_rcv_info *)&((skb)->cb[0])) | ||
129 | #define skb_cmd(skb) (skb_cb(skb)->fr_cmd) | ||
130 | #define skb_dir(skb) (skb_cmd(skb)->sc_data_direction) | ||
131 | static inline bool skb_fc_is_read(const struct sk_buff *skb) | ||
132 | { | ||
133 | if (skb_fc_is_cmd(skb) && skb_cmd(skb)) | ||
134 | return skb_dir(skb) == DMA_FROM_DEVICE; | ||
135 | return false; | ||
136 | } | ||
137 | |||
138 | static inline bool skb_fc_is_write(const struct sk_buff *skb) | ||
139 | { | ||
140 | if (skb_fc_is_cmd(skb) && skb_cmd(skb)) | ||
141 | return skb_dir(skb) == DMA_TO_DEVICE; | ||
142 | return false; | ||
143 | } | ||
144 | |||
145 | /* libfcoe funcs */ | 127 | /* libfcoe funcs */ |
146 | int fcoe_reset(struct Scsi_Host *shost); | 128 | int fcoe_reset(struct Scsi_Host *shost); |
147 | u64 fcoe_wwn_from_mac(unsigned char mac[MAX_ADDR_LEN], | 129 | u64 fcoe_wwn_from_mac(unsigned char mac[MAX_ADDR_LEN], |