]> git.baikalelectronics.ru Git - kernel.git/commit
[NETNS]: Lookup in FIB semantic hashes taking into account the namespace.
authorDenis V. Lunev <den@openvz.org>
Fri, 1 Feb 2008 02:50:07 +0000 (18:50 -0800)
committerDavid S. Miller <davem@davemloft.net>
Fri, 1 Feb 2008 03:28:41 +0000 (19:28 -0800)
commit3b501900a14dcb3eb195a9af3babf4e20c6451f6
treeb53996e694125012b202ea35a46fdf3cb39ae1df
parentb6fd565eede06c51e76cd7f288fb7d1deb0df024
[NETNS]: Lookup in FIB semantic hashes taking into account the namespace.

The namespace is not available in the fib_sync_down_addr, add it as a
parameter.

Looking up a device by the pointer to it is OK. Looking up using a
result from fib_trie/fib_hash table lookup is also safe. No need to
fix that at all.  So, just fix lookup by address and insertion to the
hash table path.

Signed-off-by: Denis V. Lunev <den@openvz.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/ip_fib.h
net/ipv4/fib_frontend.c
net/ipv4/fib_semantics.c