datapath: Relax set header validation.
[cascardo/ovs.git] / lib / odp-util.c
index b46549d..1c2caf2 100644 (file)
@@ -1978,7 +1978,7 @@ static void
 commit_set_port_action(const struct flow *flow, struct flow *base,
                        struct ofpbuf *odp_actions)
 {
-    if (!base->tp_src || !base->tp_dst) {
+    if (!base->tp_src && !base->tp_dst) {
         return;
     }