diff options
author | Alin Serdean <aserdean@cloudbasesolutions.com> | 2017-07-14 04:40:53 +0000 |
---|---|---|
committer | Ben Pfaff <blp@ovn.org> | 2017-08-02 11:27:19 -0700 |
commit | 9264367cd5490b3503dba277e99b481777792396 (patch) | |
tree | 3240722e274136310f3b87dad6390559d8865026 /datapath-windows/ovsext/Actions.c | |
parent | 5a3cb5148f1ec663fb4252545eaafe5c47b245d0 (diff) | |
download | openvswitch-9264367cd5490b3503dba277e99b481777792396.tar.gz |
datapath-windows: Add an assert in recirculation
`ovsFwdCtx.switchContext` can't be null since it is passed from actions.
Add an assert to keep the static analyzer happy.
Signed-off-by: Alin Gabriel Serdean <aserdean@cloudbasesolutions.com>
Signed-off-by: Ben Pfaff <blp@ovn.org>
Acked-by: Shashank Ram <rams@vmware.com>
Diffstat (limited to 'datapath-windows/ovsext/Actions.c')
-rw-r--r-- | datapath-windows/ovsext/Actions.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/datapath-windows/ovsext/Actions.c b/datapath-windows/ovsext/Actions.c index ebe8264aa..684b3166f 100644 --- a/datapath-windows/ovsext/Actions.c +++ b/datapath-windows/ovsext/Actions.c @@ -2373,6 +2373,7 @@ OvsDoRecirc(POVS_SWITCH_CONTEXT switchContext, srcPortNo, 0, NET_BUFFER_LIST_SWITCH_FORWARDING_DETAIL(curNbl), completionList, layers, TRUE); + ASSERT(ovsFwdCtx.switchContext); flow = OvsLookupFlow(&ovsFwdCtx.switchContext->datapath, key, &hash, FALSE); if (flow) { |