]> git.droids-corp.org - dpdk.git/blobdiff - lib/librte_eal/linuxapp/kni/kni_ethtool.c
kni: fix build with kernel 3.16
[dpdk.git] / lib / librte_eal / linuxapp / kni / kni_ethtool.c
index d0673e5787c42a27e34a7900ceab89f23f9b0d67..06b6d46362f9b61bfb81979f276a784dfa68f527 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;
 }