Skip to content

Commit 3afcde4

Browse files
committed
datapath: Add support for 4.0 kernel.
Signed-off-by: Joe Stringer <joestringer@nicira.com> Acked-by: Jesse Gross <jesse@nicira.com>
1 parent 37ec7b3 commit 3afcde4

5 files changed

Lines changed: 12 additions & 7 deletions

File tree

.travis.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ env:
1010
- TESTSUITE=1 KERNEL=3.18.1
1111
- TESTSUITE=1 OPTS="--enable-shared"
1212
- BUILD_ENV="-m32" OPTS="--disable-ssl"
13+
- KERNEL=4.0.2
1314
- KERNEL=3.17.7 DPDK=1
1415
- KERNEL=3.17.7 DPDK=1 OPTS="--enable-shared"
1516
- KERNEL=3.17.7

.travis/build.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,9 @@ EXTRA_OPTS=""
99

1010
function install_kernel()
1111
{
12-
if [[ "$1" =~ ^3.* ]]; then
12+
if [[ "$1" =~ ^4.* ]]; then
13+
PREFIX="v4.x"
14+
elif [[ "$1" =~ ^3.* ]]; then
1315
PREFIX="v3.x"
1416
else
1517
PREFIX="v2.6/longterm/v2.6.32"

FAQ.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ A: The following table lists the Linux kernel versions against which the
156156
| 2.0.x | 2.6.32 to 3.10
157157
| 2.1.x | 2.6.32 to 3.11
158158
| 2.3.x | 2.6.32 to 3.14
159-
| 2.4.x | 2.6.32 to 3.19
159+
| 2.4.x | 2.6.32 to 4.0
160160

161161
Open vSwitch userspace should also work with the Linux kernel module
162162
built into Linux 3.3 and later.

NEWS

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ Post-v2.3.0
6565
- Added support for DPDK Tunneling. VXLAN, GRE, and Geneve are supported
6666
protocols. This is generic tunneling mechanism for userspace datapath.
6767
- Support for multicast snooping (IGMPv1 and IGMPv2)
68-
- Support for Linux kernels up to 3.19.x
68+
- Support for Linux kernels up to 4.0.x
6969
- The documentation now use the term 'destination' to mean one of syslog,
7070
console or file for vlog logging instead of the previously used term
7171
'facility'.

acinclude.m4

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -133,12 +133,14 @@ AC_DEFUN([OVS_CHECK_LINUX], [
133133
fi
134134
AC_MSG_RESULT([$kversion])
135135
136-
if test "$version" -ge 3; then
137-
if test "$version" = 3 && test "$patchlevel" -le 19; then
138-
: # Linux 3.x
136+
if test "$version" -ge 4; then
137+
if test "$version" = 4 && test "$patchlevel" -le 0; then
138+
: # Linux 4.x
139139
else
140-
AC_ERROR([Linux kernel in $KBUILD is version $kversion, but version newer than 3.19.x is not supported (please refer to the FAQ for advice)])
140+
AC_ERROR([Linux kernel in $KBUILD is version $kversion, but version newer than 4.0.x is not supported (please refer to the FAQ for advice)])
141141
fi
142+
elif test "$version" = 3; then
143+
: # Linux 3.x
142144
else
143145
if test "$version" -le 1 || test "$patchlevel" -le 5 || test "$sublevel" -le 31; then
144146
AC_ERROR([Linux kernel in $KBUILD is version $kversion, but version 2.6.32 or later is required])

0 commit comments

Comments
 (0)