diff options
author | Peter P Waskiewicz Jr <peter.p.waskiewicz.jr@intel.com> | 2009-06-04 07:10:35 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2009-06-07 08:20:16 -0400 |
commit | da4dd0f7ca3fa667b7bba5fd34adceaf3fb84a9b (patch) | |
tree | 97c8c08ffe2d6f23b6ea87f539b9326c7b005b5a /drivers/net/ixgbe/ixgbe.h | |
parent | 1479ad4fbfbc801898dce1ac2d4d44f0c774ecc5 (diff) |
ixgbe: Add ethtool offline test support
This patch adds support for the ethtool internal test engine.
Signed-off-by: Peter P Waskiewicz Jr <peter.p.waskiewicz.jr@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ixgbe/ixgbe.h')
-rw-r--r-- | drivers/net/ixgbe/ixgbe.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/drivers/net/ixgbe/ixgbe.h b/drivers/net/ixgbe/ixgbe.h index 05a24055ac2f..c5f73edd5390 100644 --- a/drivers/net/ixgbe/ixgbe.h +++ b/drivers/net/ixgbe/ixgbe.h | |||
@@ -223,6 +223,10 @@ struct ixgbe_q_vector { | |||
223 | #define IXGBE_TX_CTXTDESC_ADV(R, i) \ | 223 | #define IXGBE_TX_CTXTDESC_ADV(R, i) \ |
224 | (&(((struct ixgbe_adv_tx_context_desc *)((R).desc))[i])) | 224 | (&(((struct ixgbe_adv_tx_context_desc *)((R).desc))[i])) |
225 | 225 | ||
226 | #define IXGBE_GET_DESC(R, i, type) (&(((struct type *)((R).desc))[i])) | ||
227 | #define IXGBE_TX_DESC(R, i) IXGBE_GET_DESC(R, i, ixgbe_legacy_tx_desc) | ||
228 | #define IXGBE_RX_DESC(R, i) IXGBE_GET_DESC(R, i, ixgbe_legacy_rx_desc) | ||
229 | |||
226 | #define IXGBE_MAX_JUMBO_FRAME_SIZE 16128 | 230 | #define IXGBE_MAX_JUMBO_FRAME_SIZE 16128 |
227 | #ifdef IXGBE_FCOE | 231 | #ifdef IXGBE_FCOE |
228 | /* Use 3K as the baby jumbo frame size for FCoE */ | 232 | /* Use 3K as the baby jumbo frame size for FCoE */ |
@@ -327,6 +331,10 @@ struct ixgbe_adapter { | |||
327 | struct pci_dev *pdev; | 331 | struct pci_dev *pdev; |
328 | struct net_device_stats net_stats; | 332 | struct net_device_stats net_stats; |
329 | 333 | ||
334 | u32 test_icr; | ||
335 | struct ixgbe_ring test_tx_ring; | ||
336 | struct ixgbe_ring test_rx_ring; | ||
337 | |||
330 | /* structs defined in ixgbe_hw.h */ | 338 | /* structs defined in ixgbe_hw.h */ |
331 | struct ixgbe_hw hw; | 339 | struct ixgbe_hw hw; |
332 | u16 msg_enable; | 340 | u16 msg_enable; |