datapath: Relax set header validation.
[openvswitch] / lib / odp-util.c
index 7caab09c5c3694ae4667ddd57ac29e011b9b1dac..901dac3b4c80cba5649ff5a58af604632fde2127 100644 (file)
@@ -1976,7 +1976,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;
     }