From 7befb20d0f70b1e695d3b14def9fef803ec3ae8d Mon Sep 17 00:00:00 2001 From: Jarno Rajahalme Date: Wed, 8 Mar 2017 17:18:23 -0800 Subject: 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 Acked-by: Joe Stringer --- lib/nx-match.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib/nx-match.h') 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 *); -- cgit v1.2.1