summaryrefslogtreecommitdiffstats
path: root/drivers/scsi/fcoe/libfcoe.h
diff options
context:
space:
mode:
authorYi Zou <yi.zou@intel.com>2011-01-29 01:04:55 +0100
committerJames Bottomley <James.Bottomley@suse.de>2011-02-12 18:06:06 +0100
commitfdecf31b7c7b9bb79516344884388f660fd5d5a7 (patch)
tree9112929117f8b23de21c9573fae90b56b927366f /drivers/scsi/fcoe/libfcoe.h
parent[SCSI] libfcoe: add fcoe_transport structure defines to include/scsi/libfcoe.h (diff)
downloadlinux-fdecf31b7c7b9bb79516344884388f660fd5d5a7.tar.xz
linux-fdecf31b7c7b9bb79516344884388f660fd5d5a7.zip
[SCSI] libfcoe: add implementation to support fcoe transport
Add the new fcoe_transport.c file that implements basic fcoe transport interface. Eventually, the sysfs entries to create/destroy/enable/disable an FCoE instance will be coming to the fcoe transport layer, who does a look-up to find the corresponding transport provide and pass the corresponding action over to the identified provider. The fcoe.ko will become the default fcoe transport provider that can support FCoE on any given netdev interfaces, as the Open-FCoE.org's default software FCoE HBA solution. Any vendor specific FCoE HBA driver that is built on top of Open-FCoE's kernel stack of libfc & libfcoe as well as the user land tool of fcoe-utils can easily plug-in and start running FCoE on their network interfaces. The fcoe.ko will be converted to act as the default provider if no vendor specific transport provider is found, as it is always added to the very end of the list of attached transports. Signed-off-by: Yi Zou <yi.zou@intel.com> Signed-off-by: Bhanu Prakash Gollapudi <bprakash@broadcom.com> Signed-off-by: Robert Love <robert.w.love@intel.com> Signed-off-by: James Bottomley <James.Bottomley@suse.de>
Diffstat (limited to '')
-rw-r--r--drivers/scsi/fcoe/libfcoe.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/scsi/fcoe/libfcoe.h b/drivers/scsi/fcoe/libfcoe.h
index c3fe3167ff71..6af5fc3a17d8 100644
--- a/drivers/scsi/fcoe/libfcoe.h
+++ b/drivers/scsi/fcoe/libfcoe.h
@@ -4,6 +4,7 @@
extern unsigned int libfcoe_debug_logging;
#define LIBFCOE_LOGGING 0x01 /* General logging, not categorized */
#define LIBFCOE_FIP_LOGGING 0x02 /* FIP logging */
+#define LIBFCOE_TRANSPORT_LOGGING 0x04 /* FCoE transport logging */
#define LIBFCOE_CHECK_LOGGING(LEVEL, CMD) \
do { \
@@ -22,4 +23,9 @@ do { \
printk(KERN_INFO "host%d: fip: " fmt, \
(fip)->lp->host->host_no, ##args);)
+#define LIBFCOE_TRANSPORT_DBG(fmt, args...) \
+ LIBFCOE_CHECK_LOGGING(LIBFCOE_TRANSPORT_LOGGING, \
+ printk(KERN_INFO "%s: " fmt, \
+ __func__, ##args);)
+
#endif /* _FCOE_LIBFCOE_H_ */