datapath: Properly calculate checksum when updating TOS field.
authorJustin Pettit <jpettit@nicira.com>
Mon, 7 Nov 2011 07:37:21 +0000 (23:37 -0800)
committerJustin Pettit <jpettit@nicira.com>
Wed, 9 Nov 2011 06:37:11 +0000 (22:37 -0800)
commit2d5285e1dfab3d67dd20578b65afc2c4ef6065e9
treea709bff35dbe5bfcfdd0352e7b9e409152d302fd
parentecd12731be2b5a6aa72fba9b987b1e880e5e5ea7
datapath: Properly calculate checksum when updating TOS field.

When updating the IP TOS field, the checksum was not properly calculated
on little endian systems.  This commit fixes the issue.

Signed-off-by: Justin Pettit <jpettit@nicira.com>
Acked-by: Jesse Gross <jesse@nicira.com>
datapath/actions.c
datapath/linux/compat/include/net/checksum.h