mirror of
https://github.com/openvswitch/ovs
synced 2025-09-05 00:35:33 +00:00
A recent patch series added support for ERSPAN but left some problems remaining for kernel releases from 4.10 to 4.14. This patch addresses those problems. Of note is that the old cisco gre compat layer code is gone for good. Also, several compat defines in acinclude.m4 were looking for keys in .c source files - this does not work on distros without source code. A more reliable key was already defined so we use that instead. We have pared support for the Linux kernel releases in .travis.yml to reflect that 4.15 is no longer in the LTS list. With this patch the Out of Tree OVS datapath kernel modules can build on kernels up to 4.14.47. Support for kernels up to 4.16.x will be added later. Signed-off-by: Greg Rose <gvrose8192@gmail.com> Acked-by: William Tu <u9012063@gmail.com> Signed-off-by: Ben Pfaff <blp@ovn.org>
21 lines
478 B
C
21 lines
478 B
C
#ifndef __LINUX_COMPILER_H
|
|
#if 0
|
|
/* Disable this check - it no longer makes sense with so many backports
|
|
* due to spectre mitigation
|
|
*/
|
|
#ifndef HAVE_LINUX_COMPILER_TYPES_H
|
|
#error "Please don't include <linux/compiler-gcc.h> directly, include <linux/compiler.h> instead."
|
|
#endif
|
|
#endif
|
|
#endif
|
|
|
|
#include_next <linux/compiler-gcc.h>
|
|
|
|
#ifndef __packed
|
|
#define __packed __attribute__((packed))
|
|
#endif
|
|
|
|
#ifndef __always_unused
|
|
#define __always_unused __attribute__((unused))
|
|
#endif
|