datapath: Check for proto_data_valid member instead of kernel version.
authorBen Pfaff <blp@nicira.com>
Wed, 18 Nov 2009 23:19:50 +0000 (15:19 -0800)
committerBen Pfaff <blp@nicira.com>
Wed, 18 Nov 2009 23:19:50 +0000 (15:19 -0800)
commit6a33828dbcc9a4f67bd730061b931c77caad2990
tree7ad863ae9b7169e93ccaa75f31f6ea98951b218e
parentd17ee8689bff22541dccaa792b70a848641f3646
datapath: Check for proto_data_valid member instead of kernel version.

Commit 5ef800a69 "datapath: Copy Xen's checksumming fields when doing
skb_copy" should copy proto_data_valid between sk_buffs when that field
is present.  However the check for CONFIG_XEN plus kernel version 2.6.18
isn't sufficient, because SLES 11 kernels are version 2.6.27 but do have
this field.

This commit adds a configure-time check for the presence of the member
instead of attempting to guess based on the kernel version.

Thanks to Ian Campbell for reporting this problem.

CC: <Ian.Campbell@citrix.com>
acinclude.m4
datapath/actions.c