]> git.proxmox.com Git - ovs.git/commit
compat: Fix upstream 4.4.119 kernel
authorGreg Rose <gvrose8192@gmail.com>
Fri, 20 Apr 2018 18:13:07 +0000 (11:13 -0700)
committerPravin B Shelar <pshelar@ovn.org>
Wed, 9 May 2018 00:26:43 +0000 (17:26 -0700)
commitf86ff468866d6bbfc80fda0d2c3e51a6b56c4e15
treedbdbe871fc895618986e61ecc42f022b4d3965ca
parentcc6ab7d9afe5b76d12158dd60da4bfdfb1123efd
compat: Fix upstream 4.4.119 kernel

The Linux 4.4.119 kernel (and perhaps others) from kernel.org
backports some dst_cache code that breaks the openvswitch kernel
due to a duplicated name "dst_cache_destroy".  For most cases the
"USE_UPSTREAM_TUNNEL" covers this but in this case the dst_cache
feature needs to be separated out.

Add the necessary compatibility detection layer in acinclude.m4 and
then fixup the source files so that if the built-in kernel includes
dst_cache support then exclude our own compatibility code.

Signed-off-by: Greg Rose <gvrose8192@gmail.com>
Acked-by: Pravin B Shelar <pshelar@ovn.org>
acinclude.m4
datapath/linux/compat/dst_cache.c
datapath/linux/compat/include/net/dst_cache.h