Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 236835
b: refs/heads/master
c: 5348ba8
h: refs/heads/master
i:
  236833: 8f74145
  236831: 2aadb29
v: v3
  • Loading branch information
David S. Miller committed Feb 1, 2011
1 parent 01f77b5 commit 5702ba7
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 11 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 3630b7c050d9c3564f143d595339fc06b888d6f3
refs/heads/master: 5348ba85a02ffe80a8af33a524b6610966760d3d
6 changes: 3 additions & 3 deletions trunk/include/net/ip_fib.h
Original file line number Diff line number Diff line change
Expand Up @@ -228,9 +228,9 @@ extern int fib_sync_up(struct net_device *dev);
extern __be32 __fib_res_prefsrc(struct fib_result *res);
extern void fib_select_multipath(const struct flowi *flp, struct fib_result *res);

/* Exported by fib_{hash|trie}.c */
extern void fib_hash_init(void);
extern struct fib_table *fib_hash_table(u32 id);
/* Exported by fib_trie.c */
extern void fib_trie_init(void);
extern struct fib_table *fib_trie_table(u32 id);

static inline void fib_combine_itag(u32 *itag, struct fib_result *res)
{
Expand Down
8 changes: 4 additions & 4 deletions trunk/net/ipv4/fib_frontend.c
Original file line number Diff line number Diff line change
Expand Up @@ -51,11 +51,11 @@ static int __net_init fib4_rules_init(struct net *net)
{
struct fib_table *local_table, *main_table;

local_table = fib_hash_table(RT_TABLE_LOCAL);
local_table = fib_trie_table(RT_TABLE_LOCAL);
if (local_table == NULL)
return -ENOMEM;

main_table = fib_hash_table(RT_TABLE_MAIN);
main_table = fib_trie_table(RT_TABLE_MAIN);
if (main_table == NULL)
goto fail;

Expand All @@ -82,7 +82,7 @@ struct fib_table *fib_new_table(struct net *net, u32 id)
if (tb)
return tb;

tb = fib_hash_table(id);
tb = fib_trie_table(id);
if (!tb)
return NULL;
h = id & (FIB_TABLE_HASHSZ - 1);
Expand Down Expand Up @@ -1086,5 +1086,5 @@ void __init ip_fib_init(void)
register_netdevice_notifier(&fib_netdev_notifier);
register_inetaddr_notifier(&fib_inetaddr_notifier);

fib_hash_init();
fib_trie_init();
}
5 changes: 2 additions & 3 deletions trunk/net/ipv4/fib_trie.c
Original file line number Diff line number Diff line change
Expand Up @@ -1916,7 +1916,7 @@ int fib_table_dump(struct fib_table *tb, struct sk_buff *skb,
return skb->len;
}

void __init fib_hash_init(void)
void __init fib_trie_init(void)
{
fn_alias_kmem = kmem_cache_create("ip_fib_alias",
sizeof(struct fib_alias),
Expand All @@ -1929,8 +1929,7 @@ void __init fib_hash_init(void)
}


/* Fix more generic FIB names for init later */
struct fib_table *fib_hash_table(u32 id)
struct fib_table *fib_trie_table(u32 id)
{
struct fib_table *tb;
struct trie *t;
Expand Down

0 comments on commit 5702ba7

Please sign in to comment.