[SCSI] libfcoe, fcoe: libfcoe NPIV support
[linux-2.6-block.git] / drivers / scsi / fcoe / fcoe.h
index ce7f60fb1bc0b06f5f0b2fc358d2e133c8d03486..99dfa7c2aeaa451a1c352554f5a83de1541a8e58 100644 (file)
@@ -32,7 +32,7 @@
 #define FCOE_NAME      "fcoe"
 #define FCOE_VENDOR    "Open-FCoE.org"
 
-#define FCOE_MAX_LUN           255
+#define FCOE_MAX_LUN           0xFFFF
 #define FCOE_MAX_FCP_TARGET    256
 
 #define FCOE_MAX_OUTSTANDING_COMMANDS  1024
 #define FCOE_MIN_XID           0x0000  /* the min xid supported by fcoe_sw */
 #define FCOE_MAX_XID           0x0FFF  /* the max xid supported by fcoe_sw */
 
+/*
+ * Max MTU for FCoE: 14 (FCoE header) + 24 (FC header) + 2112 (max FC payload)
+ * + 4 (FC CRC) + 4 (FCoE trailer) =  2158 bytes
+ */
+#define FCOE_MTU       2158
+
 unsigned int fcoe_debug_logging;
 module_param_named(debug_logging, fcoe_debug_logging, int, S_IRUGO|S_IWUSR);
 MODULE_PARM_DESC(debug_logging, "a bit mask of logging levels");
@@ -98,6 +104,7 @@ struct fcoe_port {
        u8      fcoe_pending_queue_active;
        struct timer_list timer;                /* queue timer */
        struct work_struct destroy_work;        /* to prevent rtnl deadlocks */
+       u8 data_src_addr[ETH_ALEN];
 };
 
 #define fcoe_from_ctlr(fip) container_of(fip, struct fcoe_interface, ctlr)