datapath: Fix checksum update for actions on UDP packets.
authorJesse Gross <jesse@nicira.com>
Tue, 6 Mar 2012 21:09:13 +0000 (13:09 -0800)
committerJesse Gross <jesse@nicira.com>
Wed, 7 Mar 2012 22:34:25 +0000 (14:34 -0800)
commit55ce87bcd542cc26def11000c9dee7690b7c3155
treed216f23117eda4ad03f34e09a439b0ed3e65a1ab
parent39ab07affb2d155aaabfdecaec2ec908f9d05a3a
datapath: Fix checksum update for actions on UDP packets.

When modifying IP addresses or ports on a UDP packet we don't
correctly follow the rules for unchecksummed packets.  This meant
that packets without a checksum can be given a incorrect new checksum
and packets with a checksum can become marked as being unchecksummed.
This fixes it to handle those requirements.

Bug #8937

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