]> git.baikalelectronics.ru Git - kernel.git/commit
ixgbe: Do not allocate too many netdev txqueues
authorJohn Fastabend <john.r.fastabend@intel.com>
Thu, 25 Feb 2010 23:15:21 +0000 (23:15 +0000)
committerDavid S. Miller <davem@davemloft.net>
Fri, 26 Feb 2010 10:10:11 +0000 (02:10 -0800)
commitc2b83e0407bd4ff2ecd191ec1c8e4d1b09f61c65
tree57e66d2461ca7dec9ac38f289dca5d14f4feebd2
parentbe20a69aa8362a4e7709e27a300021660e9f0071
ixgbe: Do not allocate too many netdev txqueues

Instead of allocating 128 struct netdev_queue per device, use the
minimum value between 128 and the number of possible txq's, to
reduce ram usage and "tc -s -d class shod dev .." output.

This patch fixes Eric Dumazet's patch to set the TX queues to
the correct minimum.

Signed-off-by: John Fastabend <john.r.fastabend@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_main.c