diff options
author | Yi-Hung Wei <yihung.wei@gmail.com> | 2017-03-13 11:28:20 -0700 |
---|---|---|
committer | Joe Stringer <joe@ovn.org> | 2017-03-15 14:45:37 -0700 |
commit | 3cddeff01cad5cf61904fed0dcd02e71dacfe3b8 (patch) | |
tree | 5f0a3cd3cbe84309b568bdbd0c4a760a3738953f /lib/ofp-print.c | |
parent | 87450a4e4e1ea3a0212caa75fce2a0cc2e673818 (diff) | |
download | openvswitch-3cddeff01cad5cf61904fed0dcd02e71dacfe3b8.tar.gz |
nx-match: Use vl_mff_map to parse match field.
vl_mff_map is introduced in commit 04f48a68c428 ("ofp-actions: Fix variable
length meta-flow OXMs") to account variable length mf_field, and it is used
to decode variable length mf_field in ofp_action. In this patch, vl_mff_map
is further used to decode the variable length match field as well.
Signed-off-by: Yi-Hung Wei <yihung.wei@gmail.com>
Signed-off-by: Joe Stringer <joe@ovn.org>
Diffstat (limited to 'lib/ofp-print.c')
-rw-r--r-- | lib/ofp-print.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/ofp-print.c b/lib/ofp-print.c index f7f7df26f..80dbf6e16 100644 --- a/lib/ofp-print.c +++ b/lib/ofp-print.c @@ -118,7 +118,7 @@ ofp_print_packet_in(struct ds *string, const struct ofp_header *oh, size_t total_len; enum ofperr error; - error = ofputil_decode_packet_in_private(oh, true, NULL, + error = ofputil_decode_packet_in_private(oh, true, NULL, NULL, &pin, &total_len, &buffer_id); if (error) { ofp_print_error(string, error); @@ -1603,7 +1603,7 @@ ofp_print_flow_stats_request(struct ds *string, const struct ofp_header *oh) struct ofputil_flow_stats_request fsr; enum ofperr error; - error = ofputil_decode_flow_stats_request(&fsr, oh, NULL); + error = ofputil_decode_flow_stats_request(&fsr, oh, NULL, NULL); if (error) { ofp_print_error(string, error); return; |