datapath: Don't compute checksums on partial packets.
authorJesse Gross <jesse@nicira.com>
Sat, 19 Jun 2010 00:11:44 +0000 (17:11 -0700)
committerJesse Gross <jesse@nicira.com>
Sat, 19 Jun 2010 00:11:44 +0000 (17:11 -0700)
commit9fc10ed911312c9cec86ef968877cae568770151
treeab68562c18526c920db9476c5ed974c7eabb0b93
parent9cc8b4e4af67a4871d0c9db67500a0a79a26685f
datapath: Don't compute checksums on partial packets.

If we are only copying part of a packet to userspace don't bother
computing the checksum on that part since it is meaningless.
Instead, fall back to the old method of checksumming before
copying to ensure the correct result.

This was supposed to be part of the previous commit but was left
off.
datapath/datapath.c