datapath: Fix tracking of flags seen in TCP flows.
authorBen Pfaff <blp@nicira.com>
Tue, 8 Apr 2014 22:39:18 +0000 (15:39 -0700)
committerBen Pfaff <blp@nicira.com>
Tue, 8 Apr 2014 22:39:18 +0000 (15:39 -0700)
commita5b8d49bc61cf6d7ad2277f08aea05dd25eaca4c
treef9af67b0414363b8c56b8fce761dfba301321666
parent3f976e12a003c3f739ec6f09bdc7b11ae153392b
datapath: Fix tracking of flags seen in TCP flows.

Flow statistics need to take into account the TCP flags from the packet
currently being processed (in 'key'), not the TCP flags matched by the
flow found in the kernel flow table (in 'flow').

This bug made the Open vSwitch userspace fin_timeout action have no effect
in many cases.

Bug #1219516.
Reported-by: Len Gao <leng@vmware.com>
Signed-off-by: Ben Pfaff <blp@nicira.com>
Acked-by: Jarno Rajahalme <jrajahalme@nicira.com>
Acked-by: Jesse Gross <jesse@nicira.com>
datapath/datapath.c
datapath/flow.c
datapath/flow.h