igb: move initialization of number of queues into set_interrupt_capability
commit83b7180d0da2a8ff92baa6a35f6871aeb74d9bec
authorAlexander Duyck <alexander.h.duyck@intel.com>
Fri, 6 Feb 2009 23:15:45 +0000 (6 23:15 +0000)
committerDavid S. Miller <davem@davemloft.net>
Sat, 7 Feb 2009 10:43:02 +0000 (7 02:43 -0800)
tree6f4595828de78f1bb412941507e228f932bd6308
parentdb76176215ec5af7a67386e0eacb5ea53e040f10
igb: move initialization of number of queues into set_interrupt_capability

This patch moves the initialization of the number of queues into
set_interrupt_capability.  This allows the number of queues to increase in
the unlikely event that the system initially fails to allocate enough msi-x
interrupts, does a suspend/resume, and then can allocate enough interrupts
on resume.

Signed-off-by: Alexander Duyck <alexander.h.duyck@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/igb/igb_main.c