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:29 +0000 (15:34 -0800)
commit4dfbe28cda4067acc155eb4412899edb13d1d3cd
treee18e652b0d855c6b77755f34e7868ce20e0fcef8
parent803d3046195327acbab7101b1a4fefcc14d98942
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