[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <4F45638B.30305@fb.com>
Date: Wed, 22 Feb 2012 13:52:11 -0800
From: Arun Sharma <asharma@...com>
To: Julian Anastasov <ja@....bg>
CC: <netdev@...r.kernel.org>, LKML <linux-kernel@...r.kernel.org>,
"David S. Miller" <davem@...emloft.net>,
Stephen Hemminger <shemminger@...tta.com>
Subject: Re: route add default fails with ESRCH?
On 2/22/12 1:27 PM, Julian Anastasov wrote:
> Why the subnet is deleted from table main (254) in
> the same second ?
The machine was in single user mode. All I did was execute
# service network start
dhclient is the only user process I see running on the system.
>
> First default route is removed:
>
> [ 44.351839] Deleting 00000000/0 tos=0 t=ffff880212b846a0
> [ 44.351843] entering trie_leaf_remove(ffff880213d120e0)
> [ 44.351846] In tnode_resize ffff880213d0a5a0 inflate_threshold=50
> threshold=25
>
> Then link route 10.47.46.0/24:
>
> [ 44.351852] Deleting 0a2f2e00/24 tos=0 t=ffff880212b846a0
> [ 44.351855] entering trie_leaf_remove(ffff880211585150)
>
> Insert tries to find if GW 10.47.46.1 is reachable,
> there must be 10.47.46.0/24 in table main but it was
> deleted just before adding the IP.
>
> [ 69.189627] Insert table=254 00000000/0
>
All of this was done by my network startup scripts. These scripts should
be fairly standard and used by lots of other people. The only thing
that's special about my setup is:
# grep LINKDELAY /etc/sysconfig/network
LINKDELAY=20
Without this my eth0 driver complains about link not being ready.
>> # cat /proc/net/fib_trie
>
> Where is "Main:" here?
I think answering this is key.
This is the main difference between systems that work and the ones that
don't. Systems that work have a non-empty Main table:
# cat /proc/net/fib_trie
Main:
+-- 0.0.0.0/0 4 3 10
+-- 0.0.0.0/4 1 0 0
|-- 0.0.0.0
/0 universe THROW
I'll try to figure out why my RT_TABLE_MAIN was empty after my network
startup scripts finished. But given my experience with 2.6.38, fib_hash
handled this case just fine and fib_trie broke it :(
-Arun
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists