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:33:47 +0000 (15:33 -0800)
commit1820db11c2e9160bd95dd1ff9376813836e57cab
treef239c29bf9ed23ee71242a427e0c7e0055cbbe28
parentd0cf3c6bf15af1eaad945fc57f1d9b0ab98d6d4b
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