|
@@ -163,6 +163,16 @@ extern int
|
|
__ethtool_get_link_ksettings(struct net_device *dev,
|
|
__ethtool_get_link_ksettings(struct net_device *dev,
|
|
struct ethtool_link_ksettings *link_ksettings);
|
|
struct ethtool_link_ksettings *link_ksettings);
|
|
|
|
|
|
|
|
+/**
|
|
|
|
+ * ethtool_intersect_link_masks - Given two link masks, AND them together
|
|
|
|
+ * @dst: first mask and where result is stored
|
|
|
|
+ * @src: second mask to intersect with
|
|
|
|
+ *
|
|
|
|
+ * Given two link mode masks, AND them together and save the result in dst.
|
|
|
|
+ */
|
|
|
|
+void ethtool_intersect_link_masks(struct ethtool_link_ksettings *dst,
|
|
|
|
+ struct ethtool_link_ksettings *src);
|
|
|
|
+
|
|
void ethtool_convert_legacy_u32_to_link_mode(unsigned long *dst,
|
|
void ethtool_convert_legacy_u32_to_link_mode(unsigned long *dst,
|
|
u32 legacy_u32);
|
|
u32 legacy_u32);
|
|
|
|
|