]> git.proxmox.com Git - mirror_ovs.git/commit - lib/tun-metadata.c
tun-metadata: Always set option present when copying data.
authorJesse Gross <jesse@nicira.com>
Wed, 12 Aug 2015 01:46:14 +0000 (18:46 -0700)
committerJesse Gross <jesse@nicira.com>
Fri, 21 Aug 2015 21:27:23 +0000 (14:27 -0700)
commit2234a7db33539500dc439a41243b70083f28ba54
tree184584304c49c4af2fb76557397ba4e0c45123ec
parentf0b12cd75dc98ff1bfdfbbfe298b5ed9c5a4ed02
tun-metadata: Always set option present when copying data.

Whenever we write into a tunnel option field, we also need to mark
it as significant. If we don't, then the data will later be ignored.

We currently do this in every case except for flow metadata. This causes
us to not correctly serialize the tunnel metadata for Packet Ins to the
controller.

Rather than separately writing the data and marking the options as present,
it is better to combine the two steps to ensure that one can never be
done without the other.

Signed-off-by: Jesse Gross <jesse@nicira.com>
Acked-by: Ben Pfaff <blp@nicira.com>
lib/tun-metadata.c
tests/tunnel-push-pop.at