From: Ben Pfaff Date: Sun, 2 Mar 2014 01:15:00 +0000 (-0800) Subject: tunnel: Do not set padding bits in tunnel mask. X-Git-Tag: sliver-openvswitch-2.2.90-1~9^2 X-Git-Url: http://git.onelab.eu/?a=commitdiff_plain;h=87972a8fcd0f339c7229a014edd4c75fd9c1356c;hp=87972a8fcd0f339c7229a014edd4c75fd9c1356c;p=sliver-openvswitch.git tunnel: Do not set padding bits in tunnel mask. On most architectures other than 32-bit x86, struct flow_tnl ends with 4 padding bytes. Until now, tnl_xlate_init() set those bytes to nonzero values in the wildcard mask. When the wildcard mask passed through Netlink attributes and back to userspace, the padding bytes of course became zero again, which caused a wildcard mask mismatch and premature deletion of the flow in revalidation. This commit fixes the problem. Bug #1192516. Reported-by: Krishna Miriyala Signed-off-by: Ben Pfaff Acked-by: Ethan Jackson ---