tun-metadata: Provide error messages during auto-allocation.
authorJesse Gross <jesse@nicira.com>
Mon, 31 Aug 2015 21:20:17 +0000 (14:20 -0700)
committerJesse Gross <jesse@nicira.com>
Wed, 9 Sep 2015 16:43:43 +0000 (09:43 -0700)
commit4f7b100c2b52f39eb686888c181ed0e57a574e23
tree23831d0ab65336917a2e3658da917db208f8f464
parent0eede6b600dcf946e1d5de0fab508d09ec27b86b
tun-metadata: Provide error messages during auto-allocation.

In cases where we don't have a map of tunnel metadata options (such
as with ovs-ofctl) we dynamically allocate them as part of the match.
However, dynamic allocation brings the possibility of errors such as
duplicate entries or running out of space. Up until now, anything that
would cause an error was silently ignored. Since that is not very user
friendly, this adds a mechanism for reporting these types of errors.

Signed-off-by: Jesse Gross <jesse@nicira.com>
Acked-by: Ben Pfaff <blp@nicira.com>
lib/meta-flow.c
lib/meta-flow.h
lib/nx-match.c
lib/ofp-parse.c
lib/tun-metadata.c
lib/tun-metadata.h
tests/tunnel.at