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 9be6f2f..a647644 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;