Go to the documentation of this file.
26 #define FCOE_MAX_QUEUE_DEPTH 256
27 #define FCOE_MIN_QUEUE_DEPTH 32
29 #define FCOE_WORD_TO_BYTE 4
31 #define FCOE_VERSION "0.1"
32 #define FCOE_NAME "fcoe"
33 #define FCOE_VENDOR "Open-FCoE.org"
35 #define FCOE_MAX_LUN 0xFFFF
36 #define FCOE_MAX_FCP_TARGET 256
38 #define FCOE_MAX_OUTSTANDING_COMMANDS 1024
40 #define FCOE_MIN_XID 0x0000
41 #define FCOE_MAX_XID 0x0FFF
45 #define FCOE_LOGGING 0x01
46 #define FCOE_NETDEV_LOGGING 0x02
48 #define FCOE_CHECK_LOGGING(LEVEL, CMD) \
50 if (unlikely(fcoe_debug_logging & LEVEL)) \
56 #define FCOE_DBG(fmt, args...) \
57 FCOE_CHECK_LOGGING(FCOE_LOGGING, \
58 printk(KERN_INFO "fcoe: " fmt, ##args);)
60 #define FCOE_NETDEV_DBG(netdev, fmt, args...) \
61 FCOE_CHECK_LOGGING(FCOE_NETDEV_LOGGING, \
62 printk(KERN_INFO "fcoe: %s: " fmt, \
63 netdev->name, ##args);)
88 #define fcoe_to_ctlr(x) \
89 (struct fcoe_ctlr *)(((struct fcoe_ctlr *)(x)) - 1)
91 #define fcoe_from_ctlr(x) \
92 ((struct fcoe_interface *)((x) + 1))