]> git.droids-corp.org - dpdk.git/blobdiff - lib/librte_eal/linuxapp/kni/ethtool/ixgbe/kcompat.h
kni: fix build with kernel < 3.3 with netdev_features_t backport
[dpdk.git] / lib / librte_eal / linuxapp / kni / ethtool / ixgbe / kcompat.h
index 112226d6d110de7181aa8a39066f2da4d5ecda48..3fe777ae579d58718ef3731396bae794849a30d2 100644 (file)
@@ -3082,8 +3082,9 @@ static inline void __kc_skb_frag_unref(skb_frag_t *frag)
 
 /*****************************************************************************/
 #if ( LINUX_VERSION_CODE < KERNEL_VERSION(3,3,0) )
-typedef u32 netdev_features_t;
+typedef u32 kni_netdev_features_t;
 #else /* ! < 3.3.0 */
+typedef netdev_features_t kni_netdev_features_t;
 #define HAVE_INT_NDO_VLAN_RX_ADD_VID
 #ifdef ETHTOOL_SRXNTUPLE
 #undef ETHTOOL_SRXNTUPLE