diff options
author | Yi Zou <yi.zou@intel.com> | 2011-02-01 02:22:16 -0500 |
---|---|---|
committer | Jeff Kirsher <jeffrey.t.kirsher@intel.com> | 2011-03-07 21:04:35 -0500 |
commit | 68a683cf6a5ff09faa366fc1fcf967add0211fe8 (patch) | |
tree | ce031702ba79d9039bb4f0843a8f056885ba94e4 /drivers/net/ixgbe/ixgbe_fcoe.h | |
parent | 4ea09c9caaebc98d06a39c435d4359912cfbb5e2 (diff) |
ixgbe: add support to FCoE DDP in target mode
Add support to the ndo_fcoe_ddp_target() to allow the Intel 82599 device to
also provide DDP offload capability when the upper FCoE protocol stack is
operating as a target.
Signed-off-by: Yi Zou <yi.zou@intel.com>
Signed-off-by: Kiran Patil <kiran.patil@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
Diffstat (limited to 'drivers/net/ixgbe/ixgbe_fcoe.h')
-rw-r--r-- | drivers/net/ixgbe/ixgbe_fcoe.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/net/ixgbe/ixgbe_fcoe.h b/drivers/net/ixgbe/ixgbe_fcoe.h index 02a00d2415d9..5a650a4ace66 100644 --- a/drivers/net/ixgbe/ixgbe_fcoe.h +++ b/drivers/net/ixgbe/ixgbe_fcoe.h | |||
@@ -52,6 +52,9 @@ | |||
52 | /* fcerr */ | 52 | /* fcerr */ |
53 | #define IXGBE_FCERR_BADCRC 0x00100000 | 53 | #define IXGBE_FCERR_BADCRC 0x00100000 |
54 | 54 | ||
55 | /* FCoE DDP for target mode */ | ||
56 | #define __IXGBE_FCOE_TARGET 1 | ||
57 | |||
55 | struct ixgbe_fcoe_ddp { | 58 | struct ixgbe_fcoe_ddp { |
56 | int len; | 59 | int len; |
57 | u32 err; | 60 | u32 err; |
@@ -66,6 +69,7 @@ struct ixgbe_fcoe { | |||
66 | u8 tc; | 69 | u8 tc; |
67 | u8 up; | 70 | u8 up; |
68 | #endif | 71 | #endif |
72 | unsigned long mode; | ||
69 | atomic_t refcnt; | 73 | atomic_t refcnt; |
70 | spinlock_t lock; | 74 | spinlock_t lock; |
71 | struct pci_pool *pool; | 75 | struct pci_pool *pool; |