ethtool.c (a976c2951d8f376112361830aa7762beff83a205) | ethtool.c (32652c2ac2f330d2c159d8259f359da0ee2b0aa3) |
---|---|
1/******************************************************************************* 2 3 Intel(R) 82576 Virtual Function Linux driver 4 Copyright(c) 2009 - 2012 Intel Corporation. 5 6 This program is free software; you can redistribute it and/or modify it 7 under the terms and conditions of the GNU General Public License, 8 version 2, as published by the Free Software Foundation. --- 282 unchanged lines hidden (view full) --- 291 return err; 292} 293 294static int igbvf_link_test(struct igbvf_adapter *adapter, u64 *data) 295{ 296 struct e1000_hw *hw = &adapter->hw; 297 *data = 0; 298 | 1/******************************************************************************* 2 3 Intel(R) 82576 Virtual Function Linux driver 4 Copyright(c) 2009 - 2012 Intel Corporation. 5 6 This program is free software; you can redistribute it and/or modify it 7 under the terms and conditions of the GNU General Public License, 8 version 2, as published by the Free Software Foundation. --- 282 unchanged lines hidden (view full) --- 291 return err; 292} 293 294static int igbvf_link_test(struct igbvf_adapter *adapter, u64 *data) 295{ 296 struct e1000_hw *hw = &adapter->hw; 297 *data = 0; 298 |
299 spin_lock_bh(&hw->mbx_lock); 300 |
|
299 hw->mac.ops.check_for_link(hw); 300 | 301 hw->mac.ops.check_for_link(hw); 302 |
303 spin_unlock_bh(&hw->mbx_lock); 304 |
|
301 if (!(er32(STATUS) & E1000_STATUS_LU)) 302 *data = 1; 303 304 return *data; 305} 306 307static void igbvf_diag_test(struct net_device *netdev, 308 struct ethtool_test *eth_test, u64 *data) --- 167 unchanged lines hidden --- | 305 if (!(er32(STATUS) & E1000_STATUS_LU)) 306 *data = 1; 307 308 return *data; 309} 310 311static void igbvf_diag_test(struct net_device *netdev, 312 struct ethtool_test *eth_test, u64 *data) --- 167 unchanged lines hidden --- |