aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/odp-execute.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/odp-execute.c b/lib/odp-execute.c
index 185cf319..19fcc1c1 100644
--- a/lib/odp-execute.c
+++ b/lib/odp-execute.c
@@ -200,7 +200,9 @@ odp_execute_actions(void *dp, struct ofpbuf *packet, struct flow *key,
break;
case OVS_ACTION_ATTR_USERSPACE: {
- userspace(dp, packet, key, a);
+ if (userspace) {
+ userspace(dp, packet, key, a);
+ }
break;
}