tunnel: Add to nw_tos bits instead of replacing them in tnl_port_send().
authorBen Pfaff <blp@nicira.com>
Wed, 22 Oct 2014 21:57:39 +0000 (14:57 -0700)
committerBen Pfaff <blp@nicira.com>
Thu, 23 Oct 2014 15:27:50 +0000 (08:27 -0700)
commitcb85b49c4b7e610ccea2b03b9d62184f6247f4ba
tree2472173c8f34cf03fa7b2f1666c053488d34bc88
parent2c26eabfb71cc8de7b5f84570e18e2816e867df1
tunnel: Add to nw_tos bits instead of replacing them in tnl_port_send().

We normally only add 1-bits to wc->masks for datapath flow matching
purposes, never removing them.  In this case, the bits that get set to
zero will be set back to 1 later on in the function, so this does not fix
any actual bug, but the principle of only setting to 1, not to 0, seems
sound to me.

Signed-off-by: Ben Pfaff <blp@nicira.com>
Acked-by: Justin Pettit <jpettit@nicira.com>
ofproto/tunnel.c