mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-14 08:36:12 -04:00
ixgbevf: Remove mailbox spinlock from the reset function
The spinlocks are not required during reset. There won't be any contention for the mailbox resource. Signed-off-by: Greg Rose <gregory.v.rose@intel.com> Tested-by: Sibai Li <sibai.li@intel.com> Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
This commit is contained in:
parent
92fe0bf7d0
commit
31571757a4
1 changed files with 0 additions and 4 deletions
|
|
@ -1702,15 +1702,11 @@ void ixgbevf_reset(struct ixgbevf_adapter *adapter)
|
|||
struct ixgbe_hw *hw = &adapter->hw;
|
||||
struct net_device *netdev = adapter->netdev;
|
||||
|
||||
spin_lock_bh(&adapter->mbx_lock);
|
||||
|
||||
if (hw->mac.ops.reset_hw(hw))
|
||||
hw_dbg(hw, "PF still resetting\n");
|
||||
else
|
||||
hw->mac.ops.init_hw(hw);
|
||||
|
||||
spin_unlock_bh(&adapter->mbx_lock);
|
||||
|
||||
if (is_valid_ether_addr(adapter->hw.mac.addr)) {
|
||||
memcpy(netdev->dev_addr, adapter->hw.mac.addr,
|
||||
netdev->addr_len);
|
||||
|
|
|
|||
Loading…
Reference in a new issue