kni: fix build with kernel 3.16
[dpdk.git] / lib / librte_eal / linuxapp / kni / kni_ethtool.c
index d0673e5..06b6d46 100644 (file)
@@ -213,5 +213,5 @@ struct ethtool_ops kni_ethtool_ops = {
 void
 kni_set_ethtool_ops(struct net_device *netdev)
 {
-       SET_ETHTOOL_OPS(netdev, &kni_ethtool_ops);
+       netdev->ethtool_ops = &kni_ethtool_ops;
 }