tunnel: Treat in_key=0 the same as a missing in_key.
authorEthan Jackson <ethan@nicira.com>
Fri, 8 Feb 2013 02:39:24 +0000 (18:39 -0800)
committerEthan Jackson <ethan@nicira.com>
Fri, 8 Feb 2013 21:31:27 +0000 (13:31 -0800)
commitbaa73637907696c9f0a0a124eba2ce55a4af8e2b
treee4defdff460df633281234d7b619e44ea2c407f3
parent74a99109015a68a469539d7fa04b8f6c13a437bf
tunnel: Treat in_key=0 the same as a missing in_key.

The documented behavior of ovs is that a missing key is the
same as a zero key.  However, the tunneling code actually treated
them differently.  This could cause problems with tunneling modes
such as vxlan which always have a key.  Specifically, a tunnel with
no key configured, would send have to send traffic with a key of
zero.  However, the same tunnel would drop incoming traffic with a
zero key because it was expecting there to be none at all.

Signed-off-by: Ethan Jackson <ethan@nicira.com>
ofproto/tunnel.c