kni: fix igb build with kernel 4.1
authorMiguel Bernal Marin <miguel.bernal.marin@linux.intel.com>
Fri, 26 Jun 2015 22:14:35 +0000 (17:14 -0500)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Fri, 10 Jul 2015 09:57:56 +0000 (11:57 +0200)
commitb2b5baa02945354b9bade697840f6f24d4d1a722
treecd59e4d64c04cce13d85a8a627572467e75e2b25
parent8ec019a947df93d51dd2ca3a2a0db8d28508c5e7
kni: fix igb build with kernel 4.1

ndo_bridge_getlink has changed in kernel release 4.1. It
adds new parameter which breaks compilation.

This patch add the properly checks to fix it.

Linux: 46c264daaaa5 ("bridge/nl: remove wrong use of NLM_F_MULTI")

Signed-off-by: Miguel Bernal Marin <miguel.bernal.marin@linux.intel.com>
Acked-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