]> git.proxmox.com Git - mirror_ubuntu-zesty-kernel.git/commit
igb: Remove unnecessary flag setting in igb_set_flag_queue_pairs()
authorShota Suzuki <suzuki_shota_t3@lab.ntt.co.jp>
Fri, 11 Dec 2015 09:43:59 +0000 (18:43 +0900)
committerTim Gardner <tim.gardner@canonical.com>
Wed, 6 Apr 2016 09:20:09 +0000 (10:20 +0100)
commit4ceada24635c7236845a68e5e95143f6b1d1efc6
treeda431bc0a38bfdc7bcf8294e61171cc7d0e5d737
parent9d72ce34c5d9c386d848a0ea0b2781ff0cd0978a
igb: Remove unnecessary flag setting in igb_set_flag_queue_pairs()

BugLink: http://bugs.launchpad.net/bugs/1547674
If VFs are enabled (max_vfs >= 1), both max_rss_queues and
adapter->rss_queues are set to 2 in the case of e1000_82576.
In this case, IGB_FLAG_QUEUE_PAIRS is always set in the default block as a
result of fall-through, thus setting it in the e1000_82576 block is not
necessary.

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>
(cherry picked from net-next commit ceb27759987ec10ba22332bd7fdf1cfb35b86991)
Signed-off-by: Tim Gardner <tim.gardner@canonical.com>
drivers/net/ethernet/intel/igb/igb_main.c