OpenVZ Forum


Home » Mailing lists » Devel » [PATCH] Explicitly call fib_get_table() in fib_frontend.c
Re: [PATCH] Explicitly call fib_get_table() in fib_frontend.c [message #22243 is a reply to message #22157] Wed, 24 October 2007 04:17 Go to previous message
davem is currently offline  davem
Messages: 463
Registered: February 2006
Senior Member
From: Pavel Emelyanov <xemul@openvz.org>
Date: Mon, 22 Oct 2007 19:56:04 +0400

> In case the "multiple tables" config option is y, the ip_fib_local_table
> is not a variable, but a macro, that calls fib_get_table(RT_TABLE_LOCAL).
> 
> Some code uses this "variable" *3* times in one place, thus implicitly
> making 3 calls. Fix it.
> 
> Signed-off-by: Pavel Emelyanov <xemul@openvz.org>

Good catch, applied.
 
Read Message
Read Message
Previous Topic: [PATCH 3/3] Use BUILD_BUG_ON in net/core/flowi.c
Next Topic: [PATCH] Cleanup the IPv6 addresses printing in /proc files
Goto Forum:
  


Current Time: Sun Aug 31 02:59:28 GMT 2025

Total time taken to generate the page: 0.13310 seconds