diff options
author | Jesse Brandeburg <jesse.brandeburg@intel.com> | 2008-08-26 07:27:21 -0400 |
---|---|---|
committer | Jeff Garzik <jgarzik@redhat.com> | 2008-09-03 10:03:34 -0400 |
commit | 96b0e0f63b03153f7f2915f584083b4191b1932d (patch) | |
tree | 0bf2414a865a047bab4cc7b310b3aff9d508b42a /drivers/net/ixgbe/ixgbe.h | |
parent | 22f32b7a5ad34f23eb18f0e089522f1652ae8abc (diff) |
ixgbe: update dca to new interface, fix CONFIG_DCA_MODULE
DCA related fixes
=================
- ixgbe was not compiling and using DCA correctly if dca was a module
- DCA interface changed with new kernel
- ixgbe was not correctly configured to indicate DCA hints to the
correct CPU.
Signed-off-by: Jesse Brandeburg <jesse.brandeburg@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
Signed-off-by: Jeff Garzik <jgarzik@redhat.com>
Diffstat (limited to 'drivers/net/ixgbe/ixgbe.h')
-rw-r--r-- | drivers/net/ixgbe/ixgbe.h | 35 |
1 files changed, 24 insertions, 11 deletions
diff --git a/drivers/net/ixgbe/ixgbe.h b/drivers/net/ixgbe/ixgbe.h index 628f60cf2fb7..90b53830196c 100644 --- a/drivers/net/ixgbe/ixgbe.h +++ b/drivers/net/ixgbe/ixgbe.h | |||
@@ -37,7 +37,7 @@ | |||
37 | #include "ixgbe_type.h" | 37 | #include "ixgbe_type.h" |
38 | #include "ixgbe_common.h" | 38 | #include "ixgbe_common.h" |
39 | 39 | ||
40 | #ifdef CONFIG_DCA | 40 | #if defined(CONFIG_DCA) || defined(CONFIG_DCA_MODULE) |
41 | #include <linux/dca.h> | 41 | #include <linux/dca.h> |
42 | #endif | 42 | #endif |
43 | 43 | ||
@@ -150,7 +150,7 @@ struct ixgbe_ring { | |||
150 | * offset associated with this ring, which is different | 150 | * offset associated with this ring, which is different |
151 | * for DCE and RSS modes */ | 151 | * for DCE and RSS modes */ |
152 | 152 | ||
153 | #ifdef CONFIG_DCA | 153 | #if defined(CONFIG_DCA) || defined(CONFIG_DCA_MODULE) |
154 | /* cpu for tx queue */ | 154 | /* cpu for tx queue */ |
155 | int cpu; | 155 | int cpu; |
156 | #endif | 156 | #endif |
@@ -267,15 +267,28 @@ struct ixgbe_adapter { | |||
267 | * thus the additional *_CAPABLE flags. | 267 | * thus the additional *_CAPABLE flags. |
268 | */ | 268 | */ |
269 | u32 flags; | 269 | u32 flags; |
270 | #define IXGBE_FLAG_RX_CSUM_ENABLED (u32)(1 << 0) | 270 | #define IXGBE_FLAG_RX_CSUM_ENABLED (u32)(1) |
271 | #define IXGBE_FLAG_MSI_ENABLED (u32)(1 << 1) | 271 | #define IXGBE_FLAG_MSI_CAPABLE (u32)(1 << 1) |
272 | #define IXGBE_FLAG_MSIX_ENABLED (u32)(1 << 2) | 272 | #define IXGBE_FLAG_MSI_ENABLED (u32)(1 << 2) |
273 | #define IXGBE_FLAG_RX_PS_ENABLED (u32)(1 << 3) | 273 | #define IXGBE_FLAG_MSIX_CAPABLE (u32)(1 << 3) |
274 | #define IXGBE_FLAG_IN_NETPOLL (u32)(1 << 4) | 274 | #define IXGBE_FLAG_MSIX_ENABLED (u32)(1 << 4) |
275 | #define IXGBE_FLAG_IMIR_ENABLED (u32)(1 << 5) | 275 | #define IXGBE_FLAG_RX_1BUF_CAPABLE (u32)(1 << 6) |
276 | #define IXGBE_FLAG_RSS_ENABLED (u32)(1 << 6) | 276 | #define IXGBE_FLAG_RX_PS_CAPABLE (u32)(1 << 7) |
277 | #define IXGBE_FLAG_VMDQ_ENABLED (u32)(1 << 7) | 277 | #define IXGBE_FLAG_RX_PS_ENABLED (u32)(1 << 8) |
278 | #define IXGBE_FLAG_DCA_ENABLED (u32)(1 << 8) | 278 | #define IXGBE_FLAG_IN_NETPOLL (u32)(1 << 9) |
279 | #define IXGBE_FLAG_DCA_ENABLED (u32)(1 << 10) | ||
280 | #define IXGBE_FLAG_DCA_CAPABLE (u32)(1 << 11) | ||
281 | #define IXGBE_FLAG_IMIR_ENABLED (u32)(1 << 12) | ||
282 | #define IXGBE_FLAG_MQ_CAPABLE (u32)(1 << 13) | ||
283 | #define IXGBE_FLAG_RSS_ENABLED (u32)(1 << 16) | ||
284 | #define IXGBE_FLAG_RSS_CAPABLE (u32)(1 << 17) | ||
285 | #define IXGBE_FLAG_VMDQ_CAPABLE (u32)(1 << 18) | ||
286 | #define IXGBE_FLAG_VMDQ_ENABLED (u32)(1 << 19) | ||
287 | #define IXGBE_FLAG_NEED_LINK_UPDATE (u32)(1 << 22) | ||
288 | #define IXGBE_FLAG_IN_WATCHDOG_TASK (u32)(1 << 23) | ||
289 | |||
290 | /* default to trying for four seconds */ | ||
291 | #define IXGBE_TRY_LINK_TIMEOUT (4 * HZ) | ||
279 | 292 | ||
280 | /* OS defined structs */ | 293 | /* OS defined structs */ |
281 | struct net_device *netdev; | 294 | struct net_device *netdev; |