igb: Unpair the queues when changing the number of queues
authorShota Suzuki <suzuki_shota_t3@lab.ntt.co.jp>
Fri, 11 Dec 2015 09:44:00 +0000 (18:44 +0900)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Tue, 16 Feb 2016 00:14:50 +0000 (16:14 -0800)
commit37a5d163fb447b39f7960d0534de30e88ad395bb
tree3f1212ebf74e94dbf57533656077e8911eea6478
parentceb27759987ec10ba22332bd7fdf1cfb35b86991
igb: Unpair the queues when changing the number of queues

By the commit 72ddef0506da ("igb: Fix oops caused by missing queue
pairing"), the IGB_FLAG_QUEUE_PAIRS flag can now be set when changing the
number of queues by "ethtool -L", but it is never cleared unless the igb
driver is reloaded.
This patch clears it if queue pairing becomes unnecessary as a result of
"ethtool -L".

Signed-off-by: Shota Suzuki <suzuki_shota_t3@lab.ntt.co.jp>
Tested-by: Aaron Brown <aaron.f.brown@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
drivers/net/ethernet/intel/igb/igb_main.c