]> bbs.cooldavid.org Git - net-next-2.6.git/commit - net/ipv4/route.c
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)
commit6a2bad70d546cf30a46bc6d9ec0cb9a0891a38eb
tree890e8db3cb7c5c8636b10e817b8cdbc5c90e265e
parentb35ecb5d404c00f2420221ccbb1bbba1139353a4
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