]> git.baikalelectronics.ru Git - kernel.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)
commit10676f963ad51ef895005f0b59db5884d7a8264a
tree7182107af01604a5516ba90e748dad16da3d1656
parent6b2941a8f219730662007365b3bbf24315831551
[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