datapath: backport: openvswitch: correct encoding of set tunnel action attributes
authorPravin B Shelar <pshelar@ovn.org>
Fri, 8 Jul 2016 23:24:29 +0000 (16:24 -0700)
committerPravin B Shelar <pshelar@ovn.org>
Sat, 9 Jul 2016 02:27:50 +0000 (19:27 -0700)
commit29e7e7d04428ebbef20ccc0ee082250253d3cbc8
tree745414c2633d4a549a8ef33e2ac479be840dc2ef
parente02c0ed70fb786d8b60b3cba87dcc9375c103639
datapath: backport: openvswitch: correct encoding of set tunnel action attributes

upstream commit:
    commit e905eabc90a5b787d8708df164543ee295bea5f2
    Author: Simon Horman <simon.horman@netronome.com>

    openvswitch: correct encoding of set tunnel action attributes

    In a set action tunnel attributes should be encoded in a
    nested action.

    I noticed this because ovs-dpctl was reporting an error
    when dumping flows due to the incorrect encoding of tunnel attributes
    in a set action.

    Fixes: fc4099f17240 ("openvswitch: Fix egress tunnel info.")
Signed-off-by: Simon Horman <simon.horman@netronome.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Pravin B Shelar <pshelar@ovn.org>
Acked-by: Jesse Gross <jesse@kernel.org>
datapath/flow_netlink.c