]> bbs.cooldavid.org Git - net-next-2.6.git/commitdiff
ixgbe: change default ring size
authorJesse Brandeburg <jesse.brandeburg@intel.com>
Thu, 3 Dec 2009 11:33:07 +0000 (11:33 +0000)
committerDavid S. Miller <davem@davemloft.net>
Thu, 3 Dec 2009 23:43:21 +0000 (15:43 -0800)
decrease the memory utilization of the tx / rx queue allocation
by changing the default ring size to 512 (from 1024).  At
1024 rx entries of 2KB each (from 4kB slab) with 16 queues
ixgbe was using 64 MB of memory per port, which is not
necessary.

Users can still change queue lengths with ethtool -k.

Signed-off-by: Jesse Brandeburg <jesse.brandeburg@intel.com>
Acked-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>
drivers/net/ixgbe/ixgbe.h

index 7e35e97227bdad9d8da95e71b490a6ff71c2b273..91d80b731352e25596c53c6ce4d4f4bac985b132 100644 (file)
                __func__ , ## args)))
 
 /* TX/RX descriptor defines */
-#define IXGBE_DEFAULT_TXD                 1024
+#define IXGBE_DEFAULT_TXD                  512
 #define IXGBE_MAX_TXD                     4096
 #define IXGBE_MIN_TXD                       64
 
-#define IXGBE_DEFAULT_RXD                 1024
+#define IXGBE_DEFAULT_RXD                  512
 #define IXGBE_MAX_RXD                     4096
 #define IXGBE_MIN_RXD                       64