426-net-mvneta-enable-flow-control-for-fixed-connections.patch 1.0 KB

1234567891011121314151617181920212223242526272829303132
  1. From: Russell King <[email protected]>
  2. Date: Tue, 12 Jul 2016 00:04:13 +0100
  3. Subject: [PATCH] net: mvneta: enable flow control for fixed connections
  4. Allow symetric flow control to be enabled for fixed link connections as
  5. well as other types of connections by setting the supported and
  6. advertised capability bits.
  7. Signed-off-by: Russell King <[email protected]>
  8. ---
  9. --- a/drivers/net/ethernet/marvell/mvneta.c
  10. +++ b/drivers/net/ethernet/marvell/mvneta.c
  11. @@ -3144,6 +3144,8 @@ static void mvneta_validate_support(stru
  12. phylink_set(mask, BNC);
  13. phylink_set(mask, Backplane);
  14. + /* Asymmetric pause is unsupported */
  15. + phylink_set(mask, Pause);
  16. /* Half-duplex at speeds higher than 100Mbit is unsupported */
  17. phylink_set(mask, 1000baseT_Full);
  18. phylink_set(mask, 1000baseX_Full);
  19. @@ -3156,9 +3158,6 @@ static void mvneta_validate_support(stru
  20. phylink_set(mask, 100baseT_Full);
  21. }
  22. - if (mode != MLO_AN_FIXED)
  23. - phylink_set(mask, Pause);
  24. -
  25. bitmap_and(support, support, mask, __ETHTOOL_LINK_MODE_MASK_NBITS);
  26. }