From: Shota Suzuki Date: Fri, 11 Dec 2015 09:44:00 +0000 (+0900) Subject: igb: Unpair the queues when changing the number of queues X-Git-Tag: v4.1.12-105.0.20170622_2100~84 X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=fea471b3d0453151cde7fe6327455005cfa9b74f;p=users%2Fjedix%2Flinux-maple.git 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 Tested-by: Aaron Brown Signed-off-by: Jeff Kirsher (cherry picked from commit 37a5d163fb447b39f7960d0534de30e88ad395bb) Orabug: 26325580 Signed-off-by: Kirtikar Kashyap Reviewed-by: Jack Vogel --- diff --git a/drivers/net/ethernet/intel/igb/igb_main.c b/drivers/net/ethernet/intel/igb/igb_main.c index 0ab4c00226e2..2ec03f266af1 100644 --- a/drivers/net/ethernet/intel/igb/igb_main.c +++ b/drivers/net/ethernet/intel/igb/igb_main.c @@ -2931,6 +2931,8 @@ void igb_set_flag_queue_pairs(struct igb_adapter *adapter, */ if (adapter->rss_queues > (max_rss_queues / 2)) adapter->flags |= IGB_FLAG_QUEUE_PAIRS; + else + adapter->flags &= ~IGB_FLAG_QUEUE_PAIRS; break; } }