tunneling: Access correct IP header when processing ECN.
authorJesse Gross <jesse@nicira.com>
Sat, 4 Dec 2010 03:17:20 +0000 (19:17 -0800)
committerJesse Gross <jesse@nicira.com>
Fri, 10 Dec 2010 01:43:35 +0000 (17:43 -0800)
commita2a96c04cb5d7c4df7578aca5ac073d4ef05ca08
treeae5a8fca7fb5dc7c49a9d22fafba1eadc91a6f30
parent9851dd6727c99f25838781a8ff208c28eb0604db
tunneling: Access correct IP header when processing ECN.

We attempt to copy the ECN bits from the outside of the tunnel to
the inside on receive if we are encapsulating IP traffic.  However,
we were previously looking at the inner IP header as the source of
the ECN bits, when it should have been the outer header.  This
corrects that and cleans up the function a little bit.

Signed-off-by: Jesse Gross <jesse@nicira.com>
Acked-by: Ben Pfaff <blp@nicira.com>
datapath/tunnel.c