kni: disable FDB operations on RHEL 6.5
authorJean-Mickael Guerin <jean-mickael.guerin@6wind.com>
Tue, 15 Apr 2014 13:51:22 +0000 (15:51 +0200)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Thu, 17 Apr 2014 22:20:04 +0000 (00:20 +0200)
commit22367416b006d271fd061d6f5c15feee844e7886
treecc04063f8d0b5c8ff2791161edb5410cde60f1f4
parent74d62e73df92abddb610b1b36bca35cec8ac34a3
kni: disable FDB operations on RHEL 6.5

On RH 6.5:
igb_main.c:2298: error: unknown field ‘ndo_fdb_add’ specified in
initializer

FDB ops are present in RH 6.5 via the extension of netdev, so add the
ifdef inside the netdev ops definition of igb.

However, FDB functions are not set for RHEL 6.5: the implementation
relies on dev_mc_add_excl API which has not been backported.

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/igb_main.c
lib/librte_eal/linuxapp/kni/ethtool/igb/kcompat.h