Files
linux/net/ipv6
David Ahern 0bc26d1ca3 net: ipv6: Compare lwstate in detecting duplicate nexthops
commit f06b7549b7 upstream.

Lennert reported a failure to add different mpls encaps in a multipath
route:

  $ ip -6 route add 1234::/16 \
        nexthop encap mpls 10 via fe80::1 dev ens3 \
        nexthop encap mpls 20 via fe80::1 dev ens3
  RTNETLINK answers: File exists

The problem is that the duplicate nexthop detection does not compare
lwtunnel configuration. Add it.

Fixes: 19e42e4515 ("ipv6: support for fib route lwtunnel encap attributes")
Signed-off-by: David Ahern <dsahern@gmail.com>
Reported-by: João Taveira Araújo <joao.taveira@gmail.com>
Reported-by: Lennert Buytenhek <buytenh@wantstofly.org>
Acked-by: Roopa Prabhu <roopa@cumulusnetworks.com>
Tested-by: Lennert Buytenhek <buytenh@wantstofly.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2017-07-21 07:42:19 +02:00
..
2015-08-25 13:37:31 -07:00
2016-11-28 16:13:01 -05:00
2017-03-22 12:43:31 +01:00
2016-05-31 14:07:49 -07:00
2016-09-10 23:12:52 -07:00
2017-06-14 15:05:52 +02:00
2017-07-05 14:40:15 +02:00
2017-06-14 15:05:52 +02:00
2017-02-18 15:11:43 +01:00
2016-06-27 15:06:17 -04:00
2015-11-03 10:52:13 -05:00
2016-09-21 10:09:14 +02:00
2016-09-21 10:09:14 +02:00