]> git.karo-electronics.de Git - karo-tx-linux.git/commit
IPV4: fib: fix route replacement, fib_info is shared
authorJulian Anastasov <ja@ssi.bg>
Fri, 15 Feb 2008 09:38:53 +0000 (01:38 -0800)
committerGreg Kroah-Hartman <gregkh@suse.de>
Tue, 26 Feb 2008 00:18:36 +0000 (16:18 -0800)
commitf52a4f4ea2c5ea3dc17561d32d839a3051e47b0c
treea8a1ac3942fcf40183aa1a2ce50811fa755c716d
parent3eb4493a1c64bb9c63979f73d471eba255cfa78c
IPV4: fib: fix route replacement, fib_info is shared

Upstream commit: c18865f39276435abb9286f9a816cb5b66c99a00

fib_info can be shared by many route prefixes but we don't want
duplicate alternative routes for a prefix+tos+priority. Last change
was not correct to check fib_treeref because it accounts usage from
other prefixes. 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_hash.c