]> git.baikalelectronics.ru Git - kernel.git/commit
ipv4: Restart rt_intern_hash after emergency rebuild (v2)
authorPavel Emelyanov <xemul@openvz.org>
Wed, 24 Mar 2010 21:51:22 +0000 (21:51 +0000)
committerDavid S. Miller <davem@davemloft.net>
Sat, 27 Mar 2010 03:57:35 +0000 (20:57 -0700)
commit6856bcd5b741e495f8b6e44a53d30be4434ff2c1
tree890e8db3cb7c5c8636b10e817b8cdbc5c90e265e
parent86d9efb6eef9451fc5d6a3d16eac15ad7238c905
ipv4: Restart rt_intern_hash after emergency rebuild (v2)

The the rebuild changes the genid which in turn is used at
the hash calculation. Thus if we don't restart and go on with
inserting the rt will happen in wrong chain.

(Fixed Neil's comment about the index passed into the rt_intern_hash)

Signed-off-by: Pavel Emelyanov <xemul@openvz.org>
Reviewed-by: Neil Horman <nhorman@tuxdriver.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv4/route.c