kni: fix build with kernel 4.0
authorPablo de Lara <pablo.de.lara.guarch@intel.com>
Tue, 28 Apr 2015 17:37:42 +0000 (18:37 +0100)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Mon, 11 May 2015 09:01:42 +0000 (11:01 +0200)
commitd5368d3cb8348919d8162b9229c835f37b5c87cb
tree8e26f1b17c82f15d1d50790314a96d94ed46ea9c
parentcddae880b69155f76efa3241d02437fc69fade45
kni: fix build with kernel 4.0

Due to API changes in function pointer ndo_bridge_setlink
(commit ad41faa8) and the rename of functions vlan_tx_*
(commit df8a39de) in kernel 4.0, DPDK would not build.

This patch adds the properly checks to fix the compilation.

Reported-by: Stephen Hemminger <stephen@networkplumber.org>
Signed-off-by: Pablo de Lara <pablo.de.lara.guarch@intel.com>
lib/librte_eal/linuxapp/kni/ethtool/igb/igb_main.c
lib/librte_eal/linuxapp/kni/ethtool/igb/kcompat.h