diff options
Diffstat (limited to 'include/scsi/libfcoe.h')
-rw-r--r-- | include/scsi/libfcoe.h | 16 |
1 files changed, 14 insertions, 2 deletions
diff --git a/include/scsi/libfcoe.h b/include/scsi/libfcoe.h index 8742d853a3b8..6add37ac8609 100644 --- a/include/scsi/libfcoe.h +++ b/include/scsi/libfcoe.h | |||
@@ -289,8 +289,11 @@ static inline bool is_fip_mode(struct fcoe_ctlr *fip) | |||
289 | * @attached: whether this transport is already attached | 289 | * @attached: whether this transport is already attached |
290 | * @list: list linkage to all attached transports | 290 | * @list: list linkage to all attached transports |
291 | * @match: handler to allow the transport driver to match up a given netdev | 291 | * @match: handler to allow the transport driver to match up a given netdev |
292 | * @alloc: handler to allocate per-instance FCoE structures | ||
293 | * (no discovery or login) | ||
292 | * @create: handler to sysfs entry of create for FCoE instances | 294 | * @create: handler to sysfs entry of create for FCoE instances |
293 | * @destroy: handler to sysfs entry of destroy for FCoE instances | 295 | * @destroy: handler to delete per-instance FCoE structures |
296 | * (frees all memory) | ||
294 | * @enable: handler to sysfs entry of enable for FCoE instances | 297 | * @enable: handler to sysfs entry of enable for FCoE instances |
295 | * @disable: handler to sysfs entry of disable for FCoE instances | 298 | * @disable: handler to sysfs entry of disable for FCoE instances |
296 | */ | 299 | */ |
@@ -299,6 +302,7 @@ struct fcoe_transport { | |||
299 | bool attached; | 302 | bool attached; |
300 | struct list_head list; | 303 | struct list_head list; |
301 | bool (*match) (struct net_device *device); | 304 | bool (*match) (struct net_device *device); |
305 | int (*alloc) (struct net_device *device); | ||
302 | int (*create) (struct net_device *device, enum fip_state fip_mode); | 306 | int (*create) (struct net_device *device, enum fip_state fip_mode); |
303 | int (*destroy) (struct net_device *device); | 307 | int (*destroy) (struct net_device *device); |
304 | int (*enable) (struct net_device *device); | 308 | int (*enable) (struct net_device *device); |
@@ -356,7 +360,7 @@ int fcoe_get_paged_crc_eof(struct sk_buff *skb, int tlen, | |||
356 | 360 | ||
357 | /* FCoE Sysfs helpers */ | 361 | /* FCoE Sysfs helpers */ |
358 | void fcoe_fcf_get_selected(struct fcoe_fcf_device *); | 362 | void fcoe_fcf_get_selected(struct fcoe_fcf_device *); |
359 | void fcoe_ctlr_get_fip_mode(struct fcoe_ctlr_device *); | 363 | void fcoe_ctlr_set_fip_mode(struct fcoe_ctlr_device *); |
360 | 364 | ||
361 | /** | 365 | /** |
362 | * struct netdev_list | 366 | * struct netdev_list |
@@ -372,4 +376,12 @@ struct fcoe_netdev_mapping { | |||
372 | int fcoe_transport_attach(struct fcoe_transport *ft); | 376 | int fcoe_transport_attach(struct fcoe_transport *ft); |
373 | int fcoe_transport_detach(struct fcoe_transport *ft); | 377 | int fcoe_transport_detach(struct fcoe_transport *ft); |
374 | 378 | ||
379 | /* sysfs store handler for ctrl_control interface */ | ||
380 | ssize_t fcoe_ctlr_create_store(struct bus_type *bus, | ||
381 | const char *buf, size_t count); | ||
382 | ssize_t fcoe_ctlr_destroy_store(struct bus_type *bus, | ||
383 | const char *buf, size_t count); | ||
384 | |||
375 | #endif /* _LIBFCOE_H */ | 385 | #endif /* _LIBFCOE_H */ |
386 | |||
387 | |||