aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/ixgbe/ixgbe.h
diff options
context:
space:
mode:
authorJeb Cramer <cramerj@intel.com>2008-03-03 18:04:02 -0500
committerJeff Garzik <jeff@garzik.org>2008-03-17 07:49:28 -0400
commitbd0362dde080cef377d99fa5beb5c25308c29c73 (patch)
tree45269ba2224fb3e27d8384e85fd5fc8be7884cb9 /drivers/net/ixgbe/ixgbe.h
parentf494e8faa77bd4147324f7666441e0b780e7db94 (diff)
ixgbe: Add optional DCA infrastructure
82598 cards and up support DCA, which enables the chipset to warm up the caches for upcoming payload data. This code makes the driver plug into the CONFIG_DCA infrastructure that was merged earlier. Signed-off-by: Jeb Cramer <cramerj@intel.com> Signed-off-by: Auke Kok <auke-jan.h.kok@intel.com> Signed-off-by: Jeff Garzik <jeff@garzik.org>
Diffstat (limited to 'drivers/net/ixgbe/ixgbe.h')
-rw-r--r--drivers/net/ixgbe/ixgbe.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/drivers/net/ixgbe/ixgbe.h b/drivers/net/ixgbe/ixgbe.h
index 79f5519e2aa9..d98113472a89 100644
--- a/drivers/net/ixgbe/ixgbe.h
+++ b/drivers/net/ixgbe/ixgbe.h
@@ -36,6 +36,9 @@
36#include "ixgbe_type.h" 36#include "ixgbe_type.h"
37#include "ixgbe_common.h" 37#include "ixgbe_common.h"
38 38
39#ifdef CONFIG_DCA
40#include <linux/dca.h>
41#endif
39 42
40#define IXGBE_ERR(args...) printk(KERN_ERR "ixgbe: " args) 43#define IXGBE_ERR(args...) printk(KERN_ERR "ixgbe: " args)
41 44
@@ -142,6 +145,11 @@ struct ixgbe_ring {
142 u16 reg_idx; /* holds the special value that gets the hardware register 145 u16 reg_idx; /* holds the special value that gets the hardware register
143 * offset associated with this ring, which is different 146 * offset associated with this ring, which is different
144 * for DCE and RSS modes */ 147 * for DCE and RSS modes */
148
149#ifdef CONFIG_DCA
150 /* cpu for tx queue */
151 int cpu;
152#endif
145 struct ixgbe_queue_stats stats; 153 struct ixgbe_queue_stats stats;
146 u8 v_idx; /* maps directly to the index for this ring in the hardware 154 u8 v_idx; /* maps directly to the index for this ring in the hardware
147 * vector array, can also be used for finding the bit in EICR 155 * vector array, can also be used for finding the bit in EICR
@@ -261,6 +269,7 @@ struct ixgbe_adapter {
261#define IXGBE_FLAG_IMIR_ENABLED (u32)(1 << 5) 269#define IXGBE_FLAG_IMIR_ENABLED (u32)(1 << 5)
262#define IXGBE_FLAG_RSS_ENABLED (u32)(1 << 6) 270#define IXGBE_FLAG_RSS_ENABLED (u32)(1 << 6)
263#define IXGBE_FLAG_VMDQ_ENABLED (u32)(1 << 7) 271#define IXGBE_FLAG_VMDQ_ENABLED (u32)(1 << 7)
272#define IXGBE_FLAG_DCA_ENABLED (u32)(1 << 8)
264 273
265 /* OS defined structs */ 274 /* OS defined structs */
266 struct net_device *netdev; 275 struct net_device *netdev;