blob: 5dd34e1647c416439737aaf7a9d75434fc7a4d02 [file] [log] [blame]
diff --git a/drivers/net/ethernet/intel/igb/igb_ethtool.c b/drivers/net/ethernet/intel/igb/igb_ethtool.c
index 9b15820..9767f11 100644
--- a/drivers/net/ethernet/intel/igb/igb_ethtool.c
+++ b/drivers/net/ethernet/intel/igb/igb_ethtool.c
@@ -2589,6 +2589,7 @@ static int igb_set_rxnfc(struct net_devi
return ret;
}
+#if LINUX_VERSION_CODE >= KERNEL_VERSION(3,6,0)
static int igb_get_eee(struct net_device *netdev, struct ethtool_eee *edata)
{
struct igb_adapter *adapter = netdev_priv(netdev);
@@ -2730,6 +2731,7 @@ static int igb_set_eee(struct net_device
return 0;
}
+#endif /* LINUX_VERSION_CODE >= KERNEL_VERSION(3,6,0) */
static int igb_get_module_info(struct net_device *netdev,
struct ethtool_modinfo *modinfo)
@@ -3018,8 +3020,10 @@ static const struct ethtool_ops igb_etht
.get_ts_info = igb_get_ts_info,
.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
.get_module_info = igb_get_module_info,
.get_module_eeprom = igb_get_module_eeprom,
.get_rxfh_indir_size = igb_get_rxfh_indir_size,