From mboxrd@z Thu Jan 1 00:00:00 1970 From: Lance Richardson Subject: Re: [RFC] [net]openvswitch: Clear the ct flow key for the recirculated packet Date: Thu, 16 Mar 2017 17:11:35 -0400 (EDT) Message-ID: <941889157.2725572.1489698695710.JavaMail.zimbra@redhat.com> References: Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Cc: ovs dev , netdev-u79uwXL29TY76Z2rM5mHXA@public.gmane.org To: Numan Siddique Return-path: In-Reply-To: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: ovs-dev-bounces-yBygre7rU0TnMu66kgdUjQ@public.gmane.org Errors-To: ovs-dev-bounces-yBygre7rU0TnMu66kgdUjQ@public.gmane.org List-Id: netdev.vger.kernel.org > From: "Numan Siddique" > To: netdev-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, "ovs dev" > Cc: "Joe Stringer" , "Andy Zhou" , jarno-LZ6Gd1LRuIk@public.gmane.org > Sent: Thursday, March 16, 2017 8:25:06 AM > Subject: [RFC] [net]openvswitch: Clear the ct flow key for the recirculated packet > > It is possible that the ct flow key information would have > gone stale for the packets received from the userspace due to > clone or ct_clear actions. > > In the case of OVN, it adds ping responder flows, which modifies > the original icmp4 request packet to a reply packet. It uses the > OVS actions - clone and ct_clear. When the reply packet hits the > "ovs_ct_execute" function, and since the ct flow key info is not > cleared, the connection tracker doesn't set the state to > ESTABLISHED state. > > Note: This patch is marked as RFC, as I am not sure if this is the correct > place to address this issue or it should be addressed in ovs-vswitchd > to set the OVS_KEY_ATTR_CT_STATE and other related attributes > properly for ct_clear action. > > Signed-off-by: Numan Siddique > --- Hi Numan, With this patch applied I'm consistently seeing failures for two of the kernel datapath unit tests (via "make check-kernel"): 16: conntrack - force commit FAILED (system-traffic.at:692) 54: conntrack - SNAT with ct_mark change on reply FAILED (system-traffic.at:2446)