Skip to content

Commit

Permalink
datapath: net/openvswitch: Set the ipv6 source tunnel key address att…
Browse files Browse the repository at this point in the history
…ribute correctly

Upstream commit:
    net/openvswitch: Set the ipv6 source tunnel key address attribute correctly

    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 <[email protected]>
    Reported-by: Paul Blakey <[email protected]>
    Acked-by: Jiri Benc <[email protected]>
    Acked-by: Joe Stringer <[email protected]>
    Signed-off-by: David S. Miller <[email protected]>

Upstream: 3d20f1f7bd575 ("net/openvswitch: Set the ipv6 source tunnel key address attribute correctly")

Fixes: 8a2d490 ("datapath: Add support for IPv6 tunnels.")

Signed-off-by: Andy Zhou <[email protected]>
Acked-by: Joe Stringer <[email protected]>
  • Loading branch information
ogerlitz authored and azhou-nicira committed Apr 19, 2017
1 parent 09b26cc commit 5c54ca4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions AUTHORS.rst
Original file line number Diff line number Diff line change
Expand Up @@ -226,6 +226,7 @@ Nithin Raju [email protected]
Niti Rohilla [email protected]
Numan Siddique [email protected]
Ofer Ben-Yacov [email protected]
Or Gerlitz [email protected]
Ori Shoshan [email protected]
Padmanabhan Krishnan [email protected]
Panu Matilainen [email protected]
Expand Down
2 changes: 1 addition & 1 deletion datapath/flow_netlink.c
Original file line number Diff line number Diff line change
Expand Up @@ -606,7 +606,7 @@ static int ip_tun_from_nlattr(const struct nlattr *attr,
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;
Expand Down

0 comments on commit 5c54ca4

Please sign in to comment.