]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit2e15477af71b9a18d674765ce60bdbd4abe97fce
tree3f1212ebf74e94dbf57533656077e8911eea6478
parent74735b0d802e8e2c3826fa88442ea13db96c1e97
igb: Unpair the queues when changing the number of queues

By the commit 2d930631190d ("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