kni: fix build with kernel 4.1
authorMiguel Bernal Marin <miguel.bernal.marin@linux.intel.com>
Fri, 26 Jun 2015 22:14:36 +0000 (17:14 -0500)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Fri, 10 Jul 2015 09:58:59 +0000 (11:58 +0200)
commitb90fcf82e8698c7031321c816d017a291f3ec914
tree68ccc2482e3d5778a2142b0d096781e9dc2a15b7
parentb2b5baa02945354b9bade697840f6f24d4d1a722
kni: fix build with kernel 4.1

rebuild member was removed from headers_ops in kernel release
4.1. Therefore kni module compilation breaks.

This patch add the properly checks to fix it.

Linux: d476059e77d1 ("net: Kill dev_rebuild_header")

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/kni_net.c