datapath: Add skb_csum_help compatibility function.
authorJesse Gross <jesse@nicira.com>
Thu, 1 Apr 2010 21:34:18 +0000 (17:34 -0400)
committerJesse Gross <jesse@nicira.com>
Mon, 19 Apr 2010 13:11:57 +0000 (09:11 -0400)
commit2d2a0e309f2464fd2cf77a328b15acc62cfc7c09
tree1b5d1e9c7702be2c84c4efef1c1af7d3c9bf061d
parent8d5ebd839b86463c72239fe972001e4f1a367a7b
datapath: Add skb_csum_help compatibility function.

Later kernel versions remove the direction argument from
skb_checksum_help.  This provides a compatibility function so we
can have consistent syntax across versions.

Since CHECKSUM_PARTIAL is the same as CHECKSUM_HW on older kernels
this allows a unified code path for computing checksums.
datapath/datapath.c
datapath/linux-2.6/compat-2.6/include/linux/netdevice.h