net: phylink: add phylink_set_10g_modes() helper
[sfrench/cifs-2.6.git] / drivers / net / phy / phylink.c
index 5a58c77d00022f907e395be0af360586d2a3014c..b32774fd65f858e7370b2477466f1a444c6b7189 100644 (file)
@@ -132,6 +132,17 @@ void phylink_set_port_modes(unsigned long *mask)
 }
 EXPORT_SYMBOL_GPL(phylink_set_port_modes);
 
+void phylink_set_10g_modes(unsigned long *mask)
+{
+       phylink_set(mask, 10000baseT_Full);
+       phylink_set(mask, 10000baseCR_Full);
+       phylink_set(mask, 10000baseSR_Full);
+       phylink_set(mask, 10000baseLR_Full);
+       phylink_set(mask, 10000baseLRM_Full);
+       phylink_set(mask, 10000baseER_Full);
+}
+EXPORT_SYMBOL_GPL(phylink_set_10g_modes);
+
 static int phylink_is_empty_linkmode(const unsigned long *linkmode)
 {
        __ETHTOOL_DECLARE_LINK_MODE_MASK(tmp) = { 0, };