summaryrefslogtreecommitdiff
path: root/lib/nx-match.h
diff options
context:
space:
mode:
authorJarno Rajahalme <jarno@ovn.org>2017-03-08 17:18:23 -0800
committerJarno Rajahalme <jarno@ovn.org>2017-03-08 17:23:04 -0800
commit7befb20d0f70b1e695d3b14def9fef803ec3ae8d (patch)
tree7f4681742faa81e0c322528e6298812767c061aa /lib/nx-match.h
parent2a28ccc8f56cf10e924f1b2c065237cab18b4126 (diff)
downloadopenvswitch-7befb20d0f70b1e695d3b14def9fef803ec3ae8d.tar.gz
ofp-util: Ignore unknown fields in ofputil_decode_packet_in2().
The decoder of packet_in messages should not fail on encountering unknown metadata fields. This allows the switch to add new features without breaking controllers. The controllers should, however, copy the metadata fields from the packet_int to packet_out so that the switch gets back the full metadata. OVN is already doing this. Signed-off-by: Jarno Rajahalme <jarno@ovn.org> Acked-by: Joe Stringer <joe@ovn.org>
Diffstat (limited to 'lib/nx-match.h')
-rw-r--r--lib/nx-match.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/nx-match.h b/lib/nx-match.h
index 631ab4896..b599731f1 100644
--- a/lib/nx-match.h
+++ b/lib/nx-match.h
@@ -61,8 +61,8 @@ enum ofperr oxm_pull_match(struct ofpbuf *, const struct tun_table *,
struct match *);
enum ofperr oxm_pull_match_loose(struct ofpbuf *, const struct tun_table *,
struct match *);
-enum ofperr oxm_decode_match(const void *, size_t, const struct tun_table *,
- struct match *);
+enum ofperr oxm_decode_match_loose(const void *, size_t,
+ const struct tun_table *, struct match *);
enum ofperr oxm_pull_field_array(const void *, size_t fields_len,
struct field_array *);