datapath: Correct GRE checksum offset.
authorJesse Gross <jesse@nicira.com>
Fri, 20 Jan 2012 23:12:38 +0000 (15:12 -0800)
committerJesse Gross <jesse@nicira.com>
Fri, 20 Jan 2012 23:34:45 +0000 (15:34 -0800)
commit1fba445bdafea8318707991c4ac1edc3b2528690
tree4d024a3340ae9dae131e59bf9d145e6a306fdd50
parentd80a55abae13fdee776114a4f2fd5fb29fea87f6
datapath: Correct GRE checksum offset.

If a statically defined GRE key is used with checksums then the
checksum will overwrite the key.  This is because the key is set
at header caching time and the checksum is set at packet processing
time and we don't update the offset on packet processing because
we don't do anything with the key.

Reported-by: Christos Argyropoulos <cargious@netmode.ntua.gr>
Signed-off-by: Jesse Gross <jesse@nicira.com>
datapath/vport-gre.c