summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlin Serdean <aserdean@cloudbasesolutions.com>2017-05-17 13:43:28 +0000
committerGurucharan Shetty <guru@ovn.org>2017-05-23 15:27:12 -0700
commit82db51ef490fc2366b44e8800ac88b0546bef13b (patch)
treec246d870ba551609dc5e7ab8b894a422d5b9051c
parent23bea5ffabea8722d33867ceae4807d5dc65e3bb (diff)
downloadopenvswitch-82db51ef490fc2366b44e8800ac88b0546bef13b.tar.gz
datapath-windows: Report success for conntrack actions over frags
When a conntrack action is applied over an IP fragment we pend the fragment which will be consumed later. This should be transparent to the userspace. Report that the action was applied successfully so it does not spam the ovs-vswitchd log. Signed-off-by: Alin Gabriel Serdean <aserdean@cloudbasesolutions.com> Acked-by: Anand Kumar <kumaranand@vmware.com> Signed-off-by: Gurucharan Shetty <guru@ovn.org>
-rw-r--r--datapath-windows/ovsext/Actions.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/datapath-windows/ovsext/Actions.c b/datapath-windows/ovsext/Actions.c
index ebfb8a3e7..31b451484 100644
--- a/datapath-windows/ovsext/Actions.c
+++ b/datapath-windows/ovsext/Actions.c
@@ -2032,6 +2032,11 @@ OvsDoExecuteActions(POVS_SWITCH_CONTEXT switchContext,
if (status != NDIS_STATUS_PENDING) {
OVS_LOG_ERROR("CT Action failed");
dropReason = L"OVS-conntrack action failed";
+ } else {
+ /* We added a new pending NBL to be consumed later.
+ * Report to the userspace that the action applied
+ * successfully */
+ status = NDIS_STATUS_SUCCESS;
}
goto dropit;
} else if (oldNbl != ovsFwdCtx.curNbl) {