summaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/intel/igb/igb_ethtool.c
diff options
context:
space:
mode:
authorCarolyn Wyborny2013-12-10 08:58:29 +0100
committerJeff Kirsher2013-12-18 07:43:12 +0100
commit02ef6e1d0b00233a89d2c8bced880d8ea39603b6 (patch)
treec11d064ec4a4d7f44b9db3aca92c1ad8834b3f9f /drivers/net/ethernet/intel/igb/igb_ethtool.c
parentixgbe: Start temperature sensor attribute index with 1 (diff)
downloadkernel-qcow2-linux-02ef6e1d0b00233a89d2c8bced880d8ea39603b6.tar.gz
kernel-qcow2-linux-02ef6e1d0b00233a89d2c8bced880d8ea39603b6.tar.xz
kernel-qcow2-linux-02ef6e1d0b00233a89d2c8bced880d8ea39603b6.zip
igb: Fix queue allocation method to accommodate changing during runtime
When changing number of queues using ethtool's set_channels during runtime, a queue allocation could fail, which can leave the device in a down state. In order to preserve the usability of the device in this scenario, this patch changes the driver to allocate the number of queues only if they have not been allocated already. The first allocation is then done for the max number of queues, which is the default queues for this driver. With this change, queue quantity changes are not subject to queue allocation failures. Signed-off-by: Carolyn Wyborny <carolyn.wyborny@intel.com> Tested-by: Aaron Brown <aaron.f.brown@intel.com> Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
Diffstat (limited to 'drivers/net/ethernet/intel/igb/igb_ethtool.c')
0 files changed, 0 insertions, 0 deletions