]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
IPV4: fib_trie: apply fixes from fib_hash
authorJulian Anastasov <ja@ssi.bg>
Fri, 15 Feb 2008 09:39:42 +0000 (01:39 -0800)
committerGreg Kroah-Hartman <gregkh@suse.de>
Tue, 26 Feb 2008 00:18:35 +0000 (16:18 -0800)
commit3eb4493a1c64bb9c63979f73d471eba255cfa78c
tree31beb0820c5cae875d22a776110abc5bca56bfd9
parent5fb7ba76544d95bfa05199f7394a442de5660be7
IPV4: fib_trie: apply fixes from fib_hash

Upstream commit: 936f6f8e1bc46834bbb3e3fa3ac13ab44f1e7ba6

Update fib_trie with some fib_hash fixes:
- check for duplicate alternative routes for prefix+tos+priority when
replacing route
- properly insert by matching tos together with priority
- fix alias walking to use list_for_each_entry_continue for insertion
and deletion when fa_head is not NULL
- copy state from fa to new_fa on replace (not a problem for now)
- additionally, avoid replacement without error if new route is same,
as Joonwoo Park suggests.

Signed-off-by: Julian Anastasov <ja@ssi.bg>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
net/ipv4/fib_trie.c