kni: fix build with kernel 3.14
[dpdk.git] / lib / librte_eal / linuxapp / kni / ethtool / ixgbe / kcompat.h
index 3fe777a..3fb6b14 100644 (file)
@@ -3107,6 +3107,10 @@ typedef netdev_features_t kni_netdev_features_t;
 
 /*****************************************************************************/
 #if ( LINUX_VERSION_CODE < KERNEL_VERSION(3,5,0) )
+static inline bool ether_addr_equal(const u8 *addr1, const u8 *addr2)
+{
+       return !compare_ether_addr(addr1, addr2);
+}
 #else
 #define HAVE_FDB_OPS
 #endif /* < 3.5.0 */