ofproto-dpif: Emit set_tunnel when required to.
authorEthan Jackson <ethan@nicira.com>
Mon, 12 Sep 2011 23:56:21 +0000 (16:56 -0700)
committerEthan Jackson <ethan@nicira.com>
Tue, 13 Sep 2011 23:16:58 +0000 (16:16 -0700)
commitc5e3adc986cd6e44d69170ad9a84c0970653665f
treee65b8fea6db878cade46ced6acffd1bffbd5ace7
parent7bbb970161407c4fbb386bcdc97f95eac5298ddd
ofproto-dpif: Emit set_tunnel when required to.

ofproto-dpif assumed that the datapath initialized the tun_id of a
flow on egress, to its tun_id on ingress.  For this reason, if
OpenFlow actions set the tun_id to a flow's ingress tun_id,
ofproto-dpif would fail to emit a set_tunnel action.

Reported-by: Igor Ganichev <iganichev@nicira.com>
Reported-by: Pankaj Thakkar <thakkar@nicira.com>
ofproto/ofproto-dpif.c