ixgbe: Refactor set_num_queues() and cache_ring_register()
authorPeter P Waskiewicz Jr <peter.p.waskiewicz.jr@intel.com>
Fri, 6 Feb 2009 07:53:59 +0000 (23:53 -0800)
committerDavid S. Miller <davem@davemloft.net>
Fri, 6 Feb 2009 07:53:59 +0000 (23:53 -0800)
commitbc97114d3f998a040876695a9b2b5be0b1a5320b
tree52ad12f26046d32d3cd0cbd2105d41fb82836a68
parent56035022d86fff45299288cb372a42f752ba23fa
ixgbe: Refactor set_num_queues() and cache_ring_register()

The current code to determine the number of queues the device will want
on driver initialization is ugly and difficult to maintain.  It also
doesn't allow for easy expansion for future features or future hardware.
This patch refactors these routines, and make them easier to deal with.

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>
drivers/net/ixgbe/ixgbe_main.c