kni: more compatibility with RHEL 6.4/6.5
authorJean-Mickael Guerin <jean-mickael.guerin@6wind.com>
Tue, 15 Apr 2014 13:51:23 +0000 (15:51 +0200)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Thu, 17 Apr 2014 22:20:04 +0000 (00:20 +0200)
commit5578ace03cc8b2a9fb41b2180e58c74804d9ddde
tree052a9ed6465eacecd6c11725c3178346fc99d4ae
parent22367416b006d271fd061d6f5c15feee844e7886
kni: more compatibility with RHEL 6.4/6.5

For RH 6.5:
- always include mdio.h to get the definitions of MDIO_EEE, ETHTOOL_GEEE
- is_link_local_ether_addr(), pcie_capability_clear_and_set_word(),  and
  ether_addr_equal() have been backported

For RH 6.4:
- same issue with ether_addr_equal()
- here ETH_GEE is defined without having the functions.

igb_ethtool.c:2441: error: implicit declaration of function ‘mmd_eee_adv_to_ethtool_adv_t’

Signed-off-by: Jean-Mickael Guerin <jean-mickael.guerin@6wind.com>
Acked-by: Thomas Monjalon <thomas.monjalon@6wind.com>
lib/librte_eal/linuxapp/kni/ethtool/igb/kcompat.c
lib/librte_eal/linuxapp/kni/ethtool/igb/kcompat.h
lib/librte_eal/linuxapp/kni/ethtool/ixgbe/kcompat.h