aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/ixgbe/ixgbe.h
diff options
context:
space:
mode:
authorJesse Brandeburg <jesse.brandeburg@intel.com>2010-02-03 09:18:50 -0500
committerDavid S. Miller <davem@davemloft.net>2010-02-03 22:48:35 -0500
commit1a6c14a2c7c313c584f26730e67f062f474bb744 (patch)
tree0f318d7c67e64b7925f5055bf618dc3bfa1caa82 /drivers/net/ixgbe/ixgbe.h
parentdbb5aaebc44ce7f64b12904c58fbc1dd487982a7 (diff)
ixgbe: Allocate driver resources per NUMA node
The default policy for the current driver is to do all its memory allocation on whatever processor is running insmod/modprobe. This is less than optimal. This driver's default mode of operation will be to use each node for each subsequent transmit/receive queue. The most efficient allocation will be to then have the interrupts bound in such a way as to match up the interrupt of the queue to the cpu where its memory was allocated. Signed-off-by: Jesse Brandeburg <jesse.brandeburg@intel.com> 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.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/net/ixgbe/ixgbe.h b/drivers/net/ixgbe/ixgbe.h
index 55a319e3a57a..33b79e812b4d 100644
--- a/drivers/net/ixgbe/ixgbe.h
+++ b/drivers/net/ixgbe/ixgbe.h
@@ -399,6 +399,8 @@ struct ixgbe_adapter {
399 u32 wol; 399 u32 wol;
400 u16 eeprom_version; 400 u16 eeprom_version;
401 401
402 int node;
403
402 /* SR-IOV */ 404 /* SR-IOV */
403 DECLARE_BITMAP(active_vfs, IXGBE_MAX_VF_FUNCTIONS); 405 DECLARE_BITMAP(active_vfs, IXGBE_MAX_VF_FUNCTIONS);
404 unsigned int num_vfs; 406 unsigned int num_vfs;