igb: Wait 10ms just once after TX queues reset
authorSergey Nemov <sergey.nemov@intel.com>
Fri, 18 May 2018 09:58:40 +0000 (11:58 +0200)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Mon, 4 Jun 2018 17:11:14 +0000 (10:11 -0700)
commit06140c793db51476585ee9abf032845e221982cb
treee87b3f9b92083f17b59f935ec1304d7cd30d2de1
parent1ec2297c5cacefd9198a3cc4a27751b6a2203cf3
igb: Wait 10ms just once after TX queues reset

Move 10ms sleep out of function resetting TX queue.
Reset all the TX queues in one turn and
wait for all of them just once.

Use usleep_range() instead of mdelay() in order not to
affect transmission on other interfaces.

Signed-off-by: Sergey Nemov <sergey.nemov@intel.com>
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