openvswitch: Fix tracking of flags seen in TCP flows.
authorBen Pfaff <blp@nicira.com>
Tue, 6 May 2014 23:48:38 +0000 (16:48 -0700)
committerPravin B Shelar <pshelar@nicira.com>
Sun, 29 Jun 2014 21:10:51 +0000 (14:10 -0700)
commitad55200734c65a3ec5d0c39d6ea904008baea536
tree22c1e9d24400afb53d774a7b20f4746b0053c18a
parente0bb8c44ed5cfcc56b571758ed966ee48779024c
openvswitch: 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.
This bug is introduced by commit 88d73f6c411ac2f0578 (openvswitch: Use
TCP flags in the flow key for stats.)

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>
Signed-off-by: Pravin B Shelar <pshelar@nicira.com>
net/openvswitch/datapath.c
net/openvswitch/flow.c
net/openvswitch/flow.h