]> git.baikalelectronics.ru Git - kernel.git/commit
Merge branch 'ipv6_ecmp_fixes'
authorDavid S. Miller <davem@davemloft.net>
Wed, 20 May 2015 16:02:26 +0000 (12:02 -0400)
committerDavid S. Miller <davem@davemloft.net>
Wed, 20 May 2015 16:02:26 +0000 (12:02 -0400)
commit5b51d23dd23c67031443743dca4e56f471d105dd
tree2151136cf03e0dadcff04de695f10f91633acf4f
parent1484e8a047820249be7f92ba6f61caa4b8de64ca
parentd0719a67f882c53ed62f4cbc92b61d6863b608e7
Merge branch 'ipv6_ecmp_fixes'

Michal Kubecek says:

====================
IPv6 ECMP route add/replace fixes

(1) When adding a nexthop of a multipath route fails (e.g. because of a
conflict with an existing route), we are supposed to delete nexthops
already added. However, currently we try to also delete all nexthops we
haven't even tried to add yet so that a "ip route add" command can
actually remove pre-existing routes if it fails.

(2) Attempt to replace a multipath route results in a broken siblings
linked list. Following commands (like "ip route del") can then either
follow a link into freed memory or end in an infinite loop (if the slab
object has been reused).

v2: fix an omission in first patch

v3: change the semantics of replace operation to better match IPv4
====================

Signed-off-by: David S. Miller <davem@davemloft.net>