kni: fix build with kernel 3.14
authorAaro Koskinen <aaro.koskinen@nsn.com>
Tue, 4 Feb 2014 12:59:09 +0000 (13:59 +0100)
committerDavid Marchand <david.marchand@6wind.com>
Wed, 26 Feb 2014 10:07:29 +0000 (11:07 +0100)
commit645b0d13c93d1761d7ba2aa138403df817348f30
tree1b04ad8ef733e07ac98f55341bac40b633dcd685
parent205c33c45af62349fcbfa700c7cf5d2b32973498
kni: fix build with kernel 3.14

ether_addr_equal() was added in Linux 3.5. compare_ether_addr() was
deleted in 3.14. Start using ether_addr_equal() and provide an own
implementation for older kernels.

This fixes the compilation with Linux 3.14-rc1.

Signed-off-by: Aaro Koskinen <aaro.koskinen@nsn.com>
Acked-by: Thomas Monjalon <thomas.monjalon@6wind.com>
lib/librte_eal/linuxapp/kni/ethtool/igb/igb_main.c
lib/librte_eal/linuxapp/kni/ethtool/igb/kcompat.h
lib/librte_eal/linuxapp/kni/ethtool/ixgbe/ixgbe_main.c
lib/librte_eal/linuxapp/kni/ethtool/ixgbe/kcompat.h