2
0
mirror of https://github.com/openvswitch/ovs synced 2025-10-23 14:57:06 +00:00

dpif: Log each operation in dpif_operate().

Without logging of operation groups, it becomes more difficult to debug
problems related to flow setups, since those go through operation groups.

Signed-off-by: Ben Pfaff <blp@nicira.com>
This commit is contained in:
Ben Pfaff
2011-12-26 14:42:48 -08:00
parent 89625d1efb
commit f23d28456f

View File

@@ -992,6 +992,20 @@ dpif_operate(struct dpif *dpif, struct dpif_op **ops, size_t n_ops)
if (dpif->dpif_class->operate) {
dpif->dpif_class->operate(dpif, ops, n_ops);
for (i = 0; i < n_ops; i++) {
struct dpif_op *op = ops[i];
switch (op->type) {
case DPIF_OP_FLOW_PUT:
log_flow_put_message(dpif, &op->u.flow_put, op->error);
break;
case DPIF_OP_EXECUTE:
log_execute_message(dpif, &op->u.execute, op->error);
break;
}
}
return;
}