aboutsummaryrefslogtreecommitdiffstats
path: root/net/ipv4/fib_frontend.c
diff options
context:
space:
mode:
authorDavid S. Miller <davem@davemloft.net>2012-07-13 11:21:29 -0400
committerDavid S. Miller <davem@davemloft.net>2012-07-13 11:21:29 -0400
commit85b91b0339e764f7e56ff5968fa10d85451378b4 (patch)
tree539c368948900b35ee8d474829724a796b482d44 /net/ipv4/fib_frontend.c
parentd01cb20711e3c2df41677ee270d6bdeff24e9902 (diff)
ipv4: Don't store a rule pointer in fib_result.
We only use it to fetch the rule's tclassid, so just store the tclassid there instead. This also decreases the size of fib_result by a full 8 bytes on 64-bit. On 32-bits it's a wash. Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv4/fib_frontend.c')
-rw-r--r--net/ipv4/fib_frontend.c8
1 files changed, 0 insertions, 8 deletions
diff --git a/net/ipv4/fib_frontend.c b/net/ipv4/fib_frontend.c
index 81f85716a894..7a31194ec633 100644
--- a/net/ipv4/fib_frontend.c
+++ b/net/ipv4/fib_frontend.c
@@ -169,10 +169,6 @@ static inline unsigned int __inet_dev_addr_type(struct net *net,
169 if (ipv4_is_multicast(addr)) 169 if (ipv4_is_multicast(addr))
170 return RTN_MULTICAST; 170 return RTN_MULTICAST;
171 171
172#ifdef CONFIG_IP_MULTIPLE_TABLES
173 res.r = NULL;
174#endif
175
176 local_table = fib_get_table(net, RT_TABLE_LOCAL); 172 local_table = fib_get_table(net, RT_TABLE_LOCAL);
177 if (local_table) { 173 if (local_table) {
178 ret = RTN_UNICAST; 174 ret = RTN_UNICAST;
@@ -934,10 +930,6 @@ static void nl_fib_lookup(struct fib_result_nl *frn, struct fib_table *tb)
934 .flowi4_scope = frn->fl_scope, 930 .flowi4_scope = frn->fl_scope,
935 }; 931 };
936 932
937#ifdef CONFIG_IP_MULTIPLE_TABLES
938 res.r = NULL;
939#endif
940
941 frn->err = -ENOENT; 933 frn->err = -ENOENT;
942 if (tb) { 934 if (tb) {
943 local_bh_disable(); 935 local_bh_disable();