]> git.droids-corp.org - dpdk.git/blobdiff - lib/librte_eal/linuxapp/kni/ethtool/igb/igb_main.c
kni: fix build with kernel < 3.3 with netdev_features_t backport
[dpdk.git] / lib / librte_eal / linuxapp / kni / ethtool / igb / igb_main.c
index 9be6f2f01d917f83bc3964cc5fa8466564a0314a..a647644f2f576fc323574aef5a53eeea4cc9390d 100644 (file)
@@ -2057,8 +2057,8 @@ void igb_reset(struct igb_adapter *adapter)
 }
 
 #ifdef HAVE_NDO_SET_FEATURES
-static netdev_features_t igb_fix_features(struct net_device *netdev,
-                                         netdev_features_t features)
+static kni_netdev_features_t igb_fix_features(struct net_device *netdev,
+                                             kni_netdev_features_t features)
 {
        /*
         * Since there is no support for separate tx vlan accel
@@ -2080,7 +2080,7 @@ static netdev_features_t igb_fix_features(struct net_device *netdev,
 }
 
 static int igb_set_features(struct net_device *netdev,
-                           netdev_features_t features)
+                           kni_netdev_features_t features)
 {
        u32 changed = netdev->features ^ features;