]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
ipv6: add support of equal cost multipath (ECMP)
authorNicolas Dichtel <nicolas.dichtel@6wind.com>
Mon, 22 Oct 2012 03:42:09 +0000 (03:42 +0000)
committerDavid S. Miller <davem@davemloft.net>
Tue, 23 Oct 2012 06:38:32 +0000 (02:38 -0400)
commit51ebd3181572af8d5076808dab2682d800f6da5d
tree41bce53f5ed82791ea5975f6ce708f54729659b4
parentd94ce9b283736a876b2e6dec665c68e5e8b5d55e
ipv6: add support of equal cost multipath (ECMP)

Each nexthop is added like a single route in the routing table. All routes
that have the same metric/weight and destination but not the same gateway
are considering as ECMP routes. They are linked together, through a list called
rt6i_siblings.

ECMP routes can be added in one shot, with RTA_MULTIPATH attribute or one after
the other (in both case, the flag NLM_F_EXCL should not be set).

The patch is based on a previous work from
Luc Saillard <luc.saillard@6wind.com>.

Signed-off-by: Nicolas Dichtel <nicolas.dichtel@6wind.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/ip6_fib.h
net/ipv6/ip6_fib.c
net/ipv6/route.c