lkml.org 
[lkml]   [2017]   [Mar]   [28]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH 4.9 01/88] net/openvswitch: Set the ipv6 source tunnel key address attribute correctly
    Date
    4.9-stable review patch.  If anyone has any objections, please let me know.

    ------------------

    From: Or Gerlitz <ogerlitz@mellanox.com>


    [ Upstream commit 3d20f1f7bd575d147ffa75621fa560eea0aec690 ]

    When dealing with ipv6 source tunnel key address attribute
    (OVS_TUNNEL_KEY_ATTR_IPV6_SRC) we are wrongly setting the tunnel
    dst ip, fix that.

    Fixes: 6b26ba3a7d95 ('openvswitch: netlink attributes for IPv6 tunneling')
    Signed-off-by: Or Gerlitz <ogerlitz@mellanox.com>
    Reported-by: Paul Blakey <paulb@mellanox.com>
    Acked-by: Jiri Benc <jbenc@redhat.com>
    Acked-by: Joe Stringer <joe@ovn.org>
    Signed-off-by: David S. Miller <davem@davemloft.net>
    Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
    ---
    net/openvswitch/flow_netlink.c | 2 +-
    1 file changed, 1 insertion(+), 1 deletion(-)

    --- a/net/openvswitch/flow_netlink.c
    +++ b/net/openvswitch/flow_netlink.c
    @@ -588,7 +588,7 @@ static int ip_tun_from_nlattr(const stru
    ipv4 = true;
    break;
    case OVS_TUNNEL_KEY_ATTR_IPV6_SRC:
    - SW_FLOW_KEY_PUT(match, tun_key.u.ipv6.dst,
    + SW_FLOW_KEY_PUT(match, tun_key.u.ipv6.src,
    nla_get_in6_addr(a), is_mask);
    ipv6 = true;
    break;

    \
     
     \ /
      Last update: 2017-03-28 14:43    [W:4.453 / U:0.012 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site