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:08 +0000 (15:34 -0800)
commit50d63168f50d4d0e8007cb1c81112ea3c7e1d111
treebe4def4aa5c4cc7145959a4fd312051dd6848e12
parentc2e49e3f650245fc04715bce527d95e682075623
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