The probe functions try to install a flow without any actions.
For some reason, this only triggers an undefined behavior error after
the next patch in this series.
Fixes: 02bb2824e51d ("dpif-netdev: do hw flow offload in a thread")
Signed-off-by: Eelco Chaudron <[email protected]>
---
lib/dpif-netdev.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lib/dpif-netdev.c b/lib/dpif-netdev.c
index 0efe90ef9..d1fc0223c 100644
--- a/lib/dpif-netdev.c
+++ b/lib/dpif-netdev.c
@@ -3090,7 +3090,7 @@ queue_netdev_flow_put(struct dp_netdev_pmd_thread *pmd,
flow_offload = &item->data->flow;
flow_offload->match = *match;
flow_offload->actions = xmalloc(actions_len);
- memcpy(flow_offload->actions, actions, actions_len);
+ nullable_memcpy(flow_offload->actions, actions, actions_len);
flow_offload->actions_len = actions_len;
flow_offload->orig_in_port = flow->orig_in_port;
--
2.50.1
_______________________________________________
dev mailing list
[email protected]
https://mail.openvswitch.org/mailman/listinfo/ovs-dev