ixgbe: Fix a set_num_queues() bug that can result in num_(r|t)x_queues = 0
authorPeter P Waskiewicz Jr <peter.p.waskiewicz.jr@intel.com>
Sat, 7 Feb 2009 10:16:59 +0000 (02:16 -0800)
committerDavid S. Miller <davem@davemloft.net>
Sat, 7 Feb 2009 10:16:59 +0000 (02:16 -0800)
commit3e450669cc7060d56d886f53e31182f5fef103c7
treee5c254dc8b3f0049c8f2cb1b0fc636bc7ef66987
parent2813ddd1bfd681a2fcc1d95530b399a92da89556
ixgbe: Fix a set_num_queues() bug that can result in num_(r|t)x_queues = 0

Now that our set_num_queues() routines for each feature are re-entrant, and
can be called at any point, they shouldn't zero out the feature's indices
or mask bits.  Subsequent calls into those routines for those features can
result in zero Rx and Tx queues being assigned, causing a panic later in
driver reinitialization.

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