summaryrefslogtreecommitdiff
path: root/utilities
diff options
context:
space:
mode:
authorYi-Hung Wei <yihung.wei@gmail.com>2017-05-15 10:04:55 -0700
committerBen Pfaff <blp@ovn.org>2017-05-31 14:54:09 -0700
commit35eb6326d5d0f04fe7916b018eeb110a6018843f (patch)
treefd3bec96a8beb6b54bf22ac982fa530da6611f55 /utilities
parent07ed329cb6f0f7dcf4f70bf9b7a419f924b6dde4 (diff)
downloadopenvswitch-35eb6326d5d0f04fe7916b018eeb110a6018843f.tar.gz
ofp-util: Add flow metadata to ofputil_packet_out
This patch adds flow metadata to ofputil_packet_out. It does not make any functional change. The flow metadata will be useful to support new packet-out message format in OpenFlow 1.5. Signed-off-by: Yi-Hung Wei <yihung.wei@gmail.com> Signed-off-by: Ben Pfaff <blp@ovn.org>
Diffstat (limited to 'utilities')
-rw-r--r--utilities/ovs-ofctl.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/utilities/ovs-ofctl.c b/utilities/ovs-ofctl.c
index 1a5e2345b..17ee64649 100644
--- a/utilities/ovs-ofctl.c
+++ b/utilities/ovs-ofctl.c
@@ -2078,6 +2078,7 @@ ofctl_packet_out(struct ovs_cmdl_context *ctx)
struct ofpbuf *opo;
char *error;
+ match_init_catchall(&po.flow_metadata);
/* Use the old syntax when more than 4 arguments are given. */
if (ctx->argc > 4) {
struct ofpbuf ofpacts;
@@ -2091,7 +2092,8 @@ ofctl_packet_out(struct ovs_cmdl_context *ctx)
}
po.buffer_id = UINT32_MAX;
- po.in_port = str_to_port_no(ctx->argv[1], ctx->argv[2]);
+ match_set_in_port(&po.flow_metadata,
+ str_to_port_no(ctx->argv[1], ctx->argv[2]));
po.ofpacts = ofpacts.data;
po.ofpacts_len = ofpacts.size;