]> git.karo-electronics.de Git - karo-tx-linux.git/commit
[IPV4] fib_trie: apply fixes from fib_hash
authorJulian Anastasov <ja@ssi.bg>
Tue, 29 Jan 2008 05:18:06 +0000 (21:18 -0800)
committerDavid S. Miller <davem@davemloft.net>
Fri, 1 Feb 2008 03:27:10 +0000 (19:27 -0800)
commit936f6f8e1bc46834bbb3e3fa3ac13ab44f1e7ba6
tree7182107af01604a5516ba90e748dad16da3d1656
parentc18865f39276435abb9286f9a816cb5b66c99a00
[IPV4] fib_trie: apply fixes from fib_hash

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>
net/ipv4/fib_trie.c