blob: 116b5db81445a4f4bec86bf014af2f137a621fd0 [file] [log] [blame]
diff --git a/drivers/net/ethernet/intel/igb/igb_ethtool.c b/drivers/net/ethernet/intel/igb/igb_ethtool.c
index 9767f11..3cf9600 100644
--- a/drivers/net/ethernet/intel/igb/igb_ethtool.c
+++ b/drivers/net/ethernet/intel/igb/igb_ethtool.c
@@ -2354,6 +2354,7 @@ static void igb_get_strings(struct net_d
}
}
+#if LINUX_VERSION_CODE >= KERNEL_VERSION(3,5,0)
static int igb_get_ts_info(struct net_device *dev,
struct ethtool_ts_info *info)
{
@@ -2409,6 +2410,7 @@ static int igb_get_ts_info(struct net_de
return -EOPNOTSUPP;
}
}
+#endif /* LINUX_VERSION_CODE >= KERNEL_VERSION(3,5,0) */
static int igb_get_rss_hash_opts(struct igb_adapter *adapter,
struct ethtool_rxnfc *cmd)
@@ -2733,6 +2735,7 @@ static int igb_set_eee(struct net_device
}
#endif /* LINUX_VERSION_CODE >= KERNEL_VERSION(3,6,0) */
+#if LINUX_VERSION_CODE >= KERNEL_VERSION(3,5,0)
static int igb_get_module_info(struct net_device *netdev,
struct ethtool_modinfo *modinfo)
{
@@ -2811,6 +2814,7 @@ static int igb_get_module_eeprom(struct
return 0;
}
+#endif /* LINUX_VERSION_CODE >= KERNEL_VERSION(3,5,0) */
static int igb_ethtool_begin(struct net_device *netdev)
{
@@ -3017,15 +3021,19 @@ static const struct ethtool_ops igb_etht
.get_ethtool_stats = igb_get_ethtool_stats,
.get_coalesce = igb_get_coalesce,
.set_coalesce = igb_set_coalesce,
+#if LINUX_VERSION_CODE >= KERNEL_VERSION(3,5,0)
.get_ts_info = igb_get_ts_info,
+#endif
.get_rxnfc = igb_get_rxnfc,
.set_rxnfc = igb_set_rxnfc,
#if LINUX_VERSION_CODE >= KERNEL_VERSION(3,6,0)
.get_eee = igb_get_eee,
.set_eee = igb_set_eee,
#endif
+#if LINUX_VERSION_CODE >= KERNEL_VERSION(3,5,0)
.get_module_info = igb_get_module_info,
.get_module_eeprom = igb_get_module_eeprom,
+#endif
.get_rxfh_indir_size = igb_get_rxfh_indir_size,
.get_rxfh_indir = igb_get_rxfh_indir,
.set_rxfh_indir = igb_set_rxfh_indir,