e1000e: honor pause autoneg flag
Subsystems (3)
PATCH 1/1 e1000e: honor pause autoneg flag
In reply to a message not in the archiveBefore:
ifup eth0
ethtool -A eth0 autoneg off rx on
ethtool -a eth0 # rx on, as expected
ifconfig eth0 up
sleep 5
ethtool -a eth0 # rx off, not expected
After:
rx on with iface up, as expected
--- drivers/net/ethernet/intel/e1000e/mac.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-)
drivers/net/ethernet/intel/e1000e/mac.c +3 -2
@@ -1048,7 +1048,8 @@ s32 e1000e_config_fc_after_link_up(struct e1000_hw *hw)* has completed, and if so, how the PHY and link partner has * flow control configured. */ -if ((hw->phy.media_type == e1000_media_type_copper) && mac->autoneg) { +if ((hw->phy.media_type == e1000_media_type_copper) && mac->autoneg && + hw->adapter->fc_autoneg) {/* Read the MII Status Register and check to see if AutoNeg * has completed. We read this twice because this reg has * some "sticky" (latched) bits.
@@ -1191,7 +1192,7 @@ s32 e1000e_config_fc_after_link_up(struct e1000_hw *hw)* flow control configured. */ if ((hw->phy.media_type == e1000_media_type_internal_serdes) && - mac->autoneg) { + mac->autoneg && hw->adapter->fc_autoneg) {/* Read the PCS_LSTS and check to see if AutoNeg * has completed. */
Signature · 14 lines
2.0.0.526.g5318336 ------------------------------------------------------------------------------ Want fast and easy access to all the code in your enterprise? Index and search up to 200,000 lines of code with a free copy of Black Duck Code Sight - the same software that powers the world's largest code search on Ohloh, the Black Duck Open Hub! Try it now. http://p.sf.net/sfu/bds _______________________________________________ E1000-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/e1000-devel To learn more about Intel® Ethernet, visit http://communities.intel.com/community/wired
Quoted 8 lines · David Decotigny
Before:
ifup eth0
ethtool -A eth0 autoneg off rx on
ethtool -a eth0 # rx on, as expected
ifconfig eth0 up
sleep 5
ethtool -a eth0 # rx off, not expected
Quoted 7 lines
After:
rx on with iface up, as expectedSigned-off-by David Decotigny <[email protected]>--- drivers/net/ethernet/intel/e1000e/mac.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-)
Thanks David, I will add your patch to my queue.
Quoted 16 lines
drivers/net/ethernet/intel/e1000e/mac.c +2
-1@@ -1048,7 +1048,8 @@ s32 e1000e_config_fc_after_link_up(struct e1000_hw *hw)* has completed, and if so, how the PHY and link partner has * flow control configured. */ -if ((hw->phy.media_type == e1000_media_type_copper) && mac->autoneg) { +if ((hw->phy.media_type == e1000_media_type_copper) && mac->autoneg && + hw->adapter->fc_autoneg) {/* Read the MII Status Register and check to see if AutoNeg * has completed. We read this twice because this reg has * some "sticky" (latched) bits.
drivers/net/ethernet/intel/e1000e/mac.c s32 e1000e_config_fc_after_link_up(struct e1000_hw *hw) · line 1198
Quoted 8 lines
drivers/net/ethernet/intel/e1000e/mac.c +1
-1@@ -1191,7 +1192,7 @@ s32 e1000e_config_fc_after_link_up(struct e1000_hw *hw)* flow control configured. */ if ((hw->phy.media_type == e1000_media_type_internal_serdes) && - mac->autoneg) { + mac->autoneg && hw->adapter->fc_autoneg) {/* Read the PCS_LSTS and check to see if AutoNeg * has completed. */
------------------------------------------------------------------------------
Want fast and easy access to all the code in your enterprise? Index and search up to 200,000 lines of code with a free copy of Black Duck Code Sight - the same software that powers the world's largest code search on Ohloh, the Black Duck Open Hub! Try it now.
http://p.sf.net/sfu/bds
_______________________________________________
E1000-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/e1000-devel
To learn more about Intel® Ethernet, visit http://communities.intel.com/community/wired