blob: ed435d92676aa6eefa9bae7e58b216c4741032ff (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
--- a/drivers/net/ethernet/intel/igb/igb_ethtool.c
+++ b/drivers/net/ethernet/intel/igb/igb_ethtool.c
@@ -2450,8 +2450,13 @@ static int igb_get_rss_hash_opts(struct
return 0;
}
+#if LINUX_VERSION_CODE >= KERNEL_VERSION(3,2,0)
static int igb_get_rxnfc(struct net_device *dev, struct ethtool_rxnfc *cmd,
u32 *rule_locs)
+#else
+static int igb_get_rxnfc(struct net_device *dev, struct ethtool_rxnfc *cmd,
+ void *rule_locs)
+#endif /* LINUX_VERSION_CODE >= KERNEL_VERSION(3,2,0) */
{
struct igb_adapter *adapter = netdev_priv(dev);
int ret = -EOPNOTSUPP;
|