diff options
author | Denis V. Lunev <den@openvz.org> | 2008-01-20 19:46:41 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2008-01-28 18:08:13 -0500 |
commit | 9e3a548781fc1c0da617fc65769a515f074be740 (patch) | |
tree | fee75c4308276a37e6f1c0f55335332463bb3e7e /include/net/fib_rules.h | |
parent | 035923833369e4da5d3c4ad0700bc7c367a0fa37 (diff) |
[NETNS]: FIB rules API cleanup.
Remove struct net from fib_rules_register(unregister)/notify_change
paths and diet code size a bit.
add/remove: 0/0 grow/shrink: 10/12 up/down: 35/-100 (-65)
function old new delta
notify_rule_change 273 280 +7
trie_show_stats 471 475 +4
fn_trie_delete 473 477 +4
fib_rules_unregister 144 148 +4
fib4_rule_compare 119 123 +4
resize 2842 2845 +3
fn_trie_select_default 515 518 +3
inet_sk_rebuild_header 836 838 +2
fib_trie_seq_show 764 766 +2
__devinet_sysctl_register 276 278 +2
fn_trie_lookup 1124 1123 -1
ip_fib_check_default 133 131 -2
devinet_conf_sysctl 223 221 -2
snmp_fold_field 126 123 -3
fn_trie_insert 2091 2086 -5
inet_create 876 870 -6
fib4_rules_init 197 191 -6
fib_sync_down 452 444 -8
inet_gso_send_check 334 325 -9
fib_create_info 3003 2991 -12
fib_nl_delrule 568 553 -15
fib_nl_newrule 883 852 -31
Signed-off-by: Denis V. Lunev <den@openvz.org>
Acked-by: Daniel Lezcano <dlezcano@fr.ibm.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/net/fib_rules.h')
-rw-r--r-- | include/net/fib_rules.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/net/fib_rules.h b/include/net/fib_rules.h index 6910e0195ca5..7f9f4aec8fc8 100644 --- a/include/net/fib_rules.h +++ b/include/net/fib_rules.h | |||
@@ -102,8 +102,8 @@ static inline u32 frh_get_table(struct fib_rule_hdr *frh, struct nlattr **nla) | |||
102 | return frh->table; | 102 | return frh->table; |
103 | } | 103 | } |
104 | 104 | ||
105 | extern int fib_rules_register(struct net *, struct fib_rules_ops *); | 105 | extern int fib_rules_register(struct fib_rules_ops *); |
106 | extern void fib_rules_unregister(struct net *, struct fib_rules_ops *); | 106 | extern void fib_rules_unregister(struct fib_rules_ops *); |
107 | extern void fib_rules_cleanup_ops(struct fib_rules_ops *); | 107 | extern void fib_rules_cleanup_ops(struct fib_rules_ops *); |
108 | 108 | ||
109 | extern int fib_rules_lookup(struct fib_rules_ops *, | 109 | extern int fib_rules_lookup(struct fib_rules_ops *, |