kni: fix igb build with kernel 4.2
authorPablo de Lara <pablo.de.lara.guarch@intel.com>
Mon, 12 Oct 2015 12:52:58 +0000 (13:52 +0100)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Wed, 4 Nov 2015 01:34:27 +0000 (02:34 +0100)
commit00c14643821c619375bf04264cf3afeb899b1e7a
tree08d383e2926e92daaed3416eeb23ea9b64adc5e2
parent492d31ac02a3df8ff843b7153b4f780af03bf002
kni: fix igb build with kernel 4.2

Kernel 4.2 has introduced two new parameters in ndo_bridge_getlink,
which breaks DPDK compilation.

Linux: 7d4f8d87 ("switchdev: ad VLAN support for ports bridge-getlink")

This patch adds the necessary checks to fix it.

Signed-off-by: Pablo de Lara <pablo.de.lara.guarch@intel.com>
Acked-by: Ferruh Yigit <ferruh.yigit@intel.com>
lib/librte_eal/linuxapp/kni/ethtool/igb/igb_main.c
lib/librte_eal/linuxapp/kni/ethtool/igb/kcompat.h