ixgbevf: add spinlocks for MTU change calls
authorEmil Tantilov <emil.s.tantilov@intel.com>
Mon, 29 Aug 2016 23:39:28 +0000 (16:39 -0700)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Fri, 23 Sep 2016 07:16:34 +0000 (00:16 -0700)
commit14b22cd9827ad6765a00ca0b267c3cb0353d9c10
treec1eec3dcbdfda566ed5795bff6c9d56bee4fac99
parentade3ccf9dc75c94c1557108572d445f0300adead
ixgbevf: add spinlocks for MTU change calls

Protect set_rlpml with mailbox lock to make sure the MTU configuration
is handled properly.

This change resolves an issue where set_rlpml can fail when the VF
interface is brought up:
ixgbevf 0000:03:1d.6: Failed to set MTU at 1500

Signed-off-by: Emil Tantilov <emil.s.tantilov@intel.com>
Tested-by: Andrew Bowers <andrewx.bowers@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
drivers/net/ethernet/intel/ixgbevf/ixgbevf_main.c