diff options
author | Greg Rose <gvrose8192@gmail.com> | 2017-07-14 12:42:49 -0700 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2017-07-15 14:40:21 -0700 |
commit | 8b97ac5bda17cfaa257bcab6180af0f43a2e87e0 (patch) | |
tree | 391a4203f636d166f68f67c5301f5a957d9ff3e1 /net/ipv4 | |
parent | b1f5bfc27a19f214006b9b4db7b9126df2dfdf5a (diff) | |
download | op-kernel-dev-8b97ac5bda17cfaa257bcab6180af0f43a2e87e0.zip op-kernel-dev-8b97ac5bda17cfaa257bcab6180af0f43a2e87e0.tar.gz |
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@nicira.com>
CC: dev@openvswitch.org
Signed-off-by: Joe Stringer <joe@ovn.org>
Signed-off-by: Greg Rose <gvrose8192@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv4')
0 files changed, 0 insertions, 0 deletions