openvswitch: Reset tunnel key between input and output.
authorJesse Gross <jesse@nicira.com>
Wed, 14 Aug 2013 22:50:36 +0000 (15:50 -0700)
committerJesse Gross <jesse@nicira.com>
Wed, 14 Aug 2013 22:50:36 +0000 (15:50 -0700)
commit36bf5cc66d60868bcc10aff209defed5a7b71c1d
tree1754ed6ef77bf8cb67f653339ca8a7705307b760
parent42415c90ceaf50c792e29823e359463bc6d4ee05
openvswitch: Reset tunnel key between input and output.

It doesn't make sense to output a tunnel packet using the same
parameters that it was received with since that will generally
just result in the packet going back to us. As a result, userspace
assumes that the tunnel key is cleared when transitioning through
the switch. In the majority of cases this doesn't matter since a
packet is either going to a tunnel port (in which the key is
overwritten with new values) or to a non-tunnel port (in which
case the key is ignored). However, it's theoreticaly possible that
userspace could rely on the documented behavior, so this corrects
it.

Signed-off-by: Jesse Gross <jesse@nicira.com>
net/openvswitch/actions.c