Make datapath compile with Xen kernel.
authorBen Pfaff <blp@nicira.com>
Tue, 30 Dec 2008 18:01:06 +0000 (10:01 -0800)
committerBen Pfaff <blp@nicira.com>
Tue, 30 Dec 2008 18:01:19 +0000 (10:01 -0800)
commitae2a9a7560f879c79a80c0e954fbe5b372ebafc0
tree2457654cea447979bc5f5c8635306f4fcc1e7f9f
parent660f6596ba31042a63bf31317851356726606fdd
Make datapath compile with Xen kernel.

The Xen kernel is based on 2.6.18 but backports many features from later
kernels.  It is not always possible, therefore, to detect whether we need
to use compatibility code based on LINUX_VERSION_CODE.  This commit fixes
the problem by using configure-time tests to check for the need for the
compatibility code.

Build-tested on Linux 2.6.15 through 2.6.28 with the default configuration
(except that some kernels needed preemption turned off) and with Xen
kernel 2.6.18-92.1.10.el5.xs5.0.0.394.644.

Fixes bug #548.
acinclude.m4
datapath/linux-2.6/Kbuild.in
datapath/linux-2.6/Makefile.main.in
datapath/linux-2.6/compat-2.6/include/asm-generic/bug.h
datapath/linux-2.6/compat-2.6/include/linux/icmp.h
datapath/linux-2.6/compat-2.6/include/linux/if_arp.h
datapath/linux-2.6/compat-2.6/include/linux/ip.h
datapath/linux-2.6/compat-2.6/include/linux/ipv6.h
datapath/linux-2.6/compat-2.6/include/linux/skbuff.h
datapath/linux-2.6/compat-2.6/include/linux/tcp.h
datapath/linux-2.6/compat-2.6/include/linux/udp.h