[ovs-dev] [PATCH V2] datapath: Fix for force/commit action failures

Greg Rose gvrose8192 at gmail.com
Wed Jul 19 13:47:43 UTC 2017


On 07/18/2017 04:29 PM, Joe Stringer wrote:
> On 18 July 2017 at 08:42, Greg Rose <gvrose8192 at gmail.com> wrote:
> > Upstream commit:
> >      commit 8b97ac5bda17cfaa257bcab6180af0f43a2e87e0
> >      Author: Greg Rose <gvrose8192 at gmail.com>
> >      Date:   Fri Jul 14 12:42:49 2017 -0700
> >
> >      openvswitch: Fix for force/commit action failures
> >
> >      When there is an established connection in direction A->B, it is
> >      possible to receive a packet on port B which then executes
> >      ct(commit,force) without first performing ct() - ie, a lookup.
> >      In this case, we would expect that this packet can delete the
> >      existing entry so that we can commit a connection with direction B->A.
> >      However, currently we only perform a check in skb_nfct_cached() for
> >      whether OVS_CS_F_TRACKED is set and OVS_CS_F_INVALID is not set, ie
> >      that a lookup previously occurred. In the above scenario, a lookup
> >      has not occurred but we should still be able to statelessly look
> >      up the existing entry and potentially delete the entry if it is
> >      in the opposite direction.
> >
> >      This patch extends the check to also hint that if the action has the
> >      force flag set, then we will lookup the existing entry so that the
> >      force check at the end of skb_nfct_cached has the ability to delete
> >      the connection.
> >
> >      Fixes: dd41d330b03 ("openvswitch: Add force commit.")
> >      CC: Pravin Shelar <pshelar at nicira.com>
> >      CC: dev at openvswitch.org
> >      Signed-off-by: Joe Stringer <joe at ovn.org>
> >      Signed-off-by: Greg Rose <gvrose8192 at gmail.com>
> >      Signed-off-by: David S. Miller <davem at davemloft.net>
> >
> > Co-authored-by: Joe Stringer <joe at ovn.org>
> > Signed-off-by: Joe Stringer <joe at ovn.org>
> > Signed-off-by: Greg Rose <gvrose8192 at gmail.com>
>
> Thanks for the backport, if you don't mind I'd like to hold off until
> we can assemble the full series to sync with upstream, so we get the
> commits in the same order. I believe you're working on that at the
> moment, so I'll keep an eye out for when that series is available.
>
> Cheers,
> Joe
>
Sure, sounds good.

Thanks!

- Greg


More information about the dev mailing list