datapath: Consolidate checksum compatibility code.
authorJesse Gross <jesse@nicira.com>
Mon, 22 Nov 2010 22:17:24 +0000 (14:17 -0800)
committerJesse Gross <jesse@nicira.com>
Sat, 4 Dec 2010 01:40:26 +0000 (17:40 -0800)
commitdd8d6b8cd4d708553037e306d41d1c501d3cecad
treec9067057370331b832feee7066756e0e4643434f
parent29b639ed7522594dac03bd10ad477f2f188ce4b6
datapath: Consolidate checksum compatibility code.

Checksum offloading has changed quite a bit across different kernel
and Xen versions.  Since it is part of the skb data structure it is
unfortunately difficult to separate out into compatibility code.
This consolidates all of the checksum code in one place which makes
it easier read and remove as we prepare for upstreaming.  On newer
kernels it also puts everything in inline functions, eliminating the
need to run through the compat code or make extra function calls.

Signed-off-by: Jesse Gross <jesse@nicira.com>
Acked-by: Ben Pfaff <blp@nicira.com>
datapath/Modules.mk
datapath/actions.c
datapath/actions.h
datapath/checksum.c [new file with mode: 0644]
datapath/checksum.h [new file with mode: 0644]
datapath/datapath.c
datapath/datapath.h
datapath/tunnel.c
datapath/vport-internal_dev.c
datapath/vport-netdev.c